This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /usr/local/etc/php | |
$ git clone https://github.com/xdebug/xdebug.git | |
$ cd xdebug | |
$ arch -x86_64 phpize | |
$ arch -x86_64 ./configure --enable-xdebug | |
$ arch -x86_64 sudo make | |
$ arch -x86_64 sudo make install | |
$ echo 'zend_extension = "/usr/local/lib/php/pecl/20210902/xdebug.so"' >> /usr/local/etc/php/8.1/php.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import requests | |
endpoint = 'https://zut.io/api' | |
username = 'JohnDoe' | |
password = 'YWNlZGVjZDAwNjdiNjRkNjkyYWNkZTVmYjA4MGE3OTY' | |
payload = { 'url': 'http://www.yahoo.co.uk/' } | |
response = requests.post(endpoint, json=payload, auth=(username, password)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ opkg update | |
$ opkg install stubby | |
$ /etc/init.d/stubby enable | |
$ nano /etc/config/dhcp | |
# add to dnsmasq section: | |
option noresolv '1' | |
list server '127.0.0.1#5453' | |
$ /etc/init.d/stubby start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# move from /usr/local/var/postgres to .. | |
$ nano /usr/local/opt/postgres/homebrew.postgresql.service /usr/local/opt/postgres/homebrew.mxcl.postgresql.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Squid required: | |
Mount HD (15GB min) on /tmp/cache, chmod -R 777 /tmp/cache | |
Firewall section: | |
config redirect | |
option src 'lan' | |
option proto 'tcp' | |
option src_ip '!192.168.1.1' | |
option src_dport '80' | |
option dest_ip '192.168.1.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install docker docker-compose kubectl kubectx | |
$ brew install colima | |
$ colima start --cpu 1 --memory 2 --disk 10 | |
# colima stop | |
# colima start --cpu 4 --memory 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nfsd checkexports | |
sandbox_check failed. nfsd has no read access to "/dir" | |
# open System Preferences > Security & Privacy > Full Disk Access | |
# add /sbin/nfsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# be careful, goofys does not support fsync, software performing check will return an error | |
$ wget https://github.com/kahing/goofys/releases/latest/download/goofys | |
$ chmod +x goofys | |
$ mv goofys /usr/bin/goofys | |
$ mkdir /root/.aws | |
$ echo -e "[default]\naws_access_key_id = $accesskey\naws_secret_access_key = $secretkey" > /root/.aws/credentials | |
$ echo 'goofys#bucket /mnt/bucket-name fuse _netdev,allow_other,--endpoint=https://s3.fr-par.scw.cloud/,--file-mode=0755,--dir-mode=0755,--uid=65534,--gid=65534 0 0' >> /etc/fstab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server=/netflix.com/# | |
address=/netflix.com/:: | |
server=/netflix.net/# | |
address=/netflix.net/:: | |
server=/nflxext.com/# | |
address=/nflxext.com/:: | |
server=/nflximg.net/# | |
address=/nflximg.net/:: | |
server=/nflxvideo.net/# | |
address=/nflxvideo.net/:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker stop $container | |
docker plugin disable -f $pluginid | |
docker plugin set $pluginid ENV=value | |
docker plugin enable $pluginid | |
docker start $container |