» 2020 » November の記事

function make_fat_library {
# Will smash 2 static libs together
# make_fat_library in1 in2 out
lipo -remove arm64 "${2}" -output "${2}" 
xcrun lipo -create "${1}" "${2}" -output "${3}"
}

~ nginx repo on centos 7 ~

connie 2020.11.27 | centos | | No Comments

nano /etc/yum.repos.d/nginx.repo

[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true

yum update && yum upgrade
rpm -qa | grep nginx
yum remove nginx-mod-http-image-filter nginx-mod-stream nginx-mod-mail nginx-mod-http-perl nginx-all-modules nginx-mod-http-xslt-filter nginx-filesystem

service nginx restart

nano /etc/yum.repos.d/MariaDB.repo

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

yum update && yum upgrade

nano /etc/my.cnf

Change
log_slow_queries = /var/log/mysql/mysql-slow.log
From
slow-query-log-file = /var/log/mysql/mysql-slow.log

systemctl start mariadb

mysql_upgrade -u root -p

mysql -V

~ sourcetree pushing git very slow ~

connie 2020.11.26 | git | | No Comments

open termial and ssh to the remote server, and create trhe RSA key for the first time connection, then you may push the git smootly

~ add devicesupport on old version Xcode ~

connie 2020.11.03 | xcode | | No Comments

Download the file from the git
https://github.com/iGhibli/iOS-DeviceSupport
copy the folder to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
reboot Xcode

add JavaScriptCore.framework 

| HOME |

Smiley face

November 2020
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930