Get a entry level burstable instance with alicloud with ubuntu 18.04 on it.
- Install ocserv, easy-rsa and firewalld
apt-get update apt install ocserv git firewalld git clone https://github.com/OpenVPN/easy-rsa
xattr -d com.apple.quarantine /path/to/file |
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
Various unicode utilities | |
https://www.online-toolz.com/tools/text-unicode-entities-convertor.php |
tcpdump -A -s 10240 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g'
tcpdump -i ens4 -A -s 10240 'dst 172.21.43.252 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
sudo tcpdump -i lo -s0 -nl -w- dst port postgres | strings -n8
"use strict"; | |
/* | |
* Emulates Java's PBEWITHMD5ANDDES for node.js | |
*/ | |
var crypto = require('crypto'); | |
var pbewithmd5anddes = { | |
KDF: function(password,salt,iterations) { |
## To fetch a cert chain and make server.crt ## | |
openssl s_client -showcerts -verify 5 -servername aaacertificateservices.test.certificatetest.com -connect aaacertificateservices.test.certificatetest.com:443 | |
## To view validity | |
echo | openssl s_client -servername api.snapp.site -connect api.snapp.site:443 2>/dev/null | openssl x509 -noout -dates | |
#!/bin/bash | |
# Run sudo visudo and whitelist your user, eg | |
#qasim ALL=(ALL) NOPASSWD: /usr/local/bin/openfortivpn | |
#qasim ALL=(ALL) NOPASSWD: /usr/bin/killall -2 openfortivpn | |
VPN_EXECUTABLE=/usr/local/bin/openfortivpn | |
VPN_EXECUTABLE_PARAMS="-c $HOME/vpn" # Optional | |
VPN_INTERFACE=ppp0 | |
# Command to determine if VPN is connected or disconnected | |
VPN_CONNECTED="/sbin/ifconfig | egrep -A1 $VPN_INTERFACE | grep inet" |
echo "show errors" | socat unix-connect:/var/lib/haproxy/run/haproxy.sock stdio | more