Skip to content

Instantly share code, notes, and snippets.

View gist:21154d138cefff69e104c7939d22c5d0
# https://www.serverok.in/ubuntu-php-72
apt-get install software-properties-common python-software-properties
add-apt-repository ppa:ondrej/php
apt update
apt -y upgrade
apt install php7.2
View gist:b2ef14a1cd1d9e994641e9bb0f03a0a4
boby@sok-01:~$ dig +norec @demand.delta.aridns.net.au. braithwaites.ltd. NS
; <<>> DiG 9.11.3-1ubuntu1.5-Ubuntu <<>> +norec @demand.delta.aridns.net.au. braithwaites.ltd. NS
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61763
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
View gist:410a4e36962b5f43f666115ff010ce41
$ openssl req -new -newkey rsa:2048 -nodes -keyout multi-domain.key -out multi-domain.csr
Generating a RSA private key
..........................................................................+++++
.........................................+++++
writing new private key to 'multi-domain.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
View ispconfig fail2ban
[pure-ftpd]
enabled = true
port = ftp
filter = pure-ftpd
logpath = /var/log/syslog
maxretry = 3
[dovecot]
enabled = true
filter = dovecot
View ISPConfig Debian 9
MAILTO=root
#*/10 * * * * www-data [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
# Generate static reports:
#10 03 * * * www-data [ -x /usr/share/awstats/tools/buildstatic.sh ] && /usr/share/awstats/tools/buildstatic.sh
View iperf
root@NLDW3-4-29-23:~# iperf3 -c iperf.worldstream.nl -t 60 -P 8 -i 0
Connecting to host iperf.worldstream.nl, port 5201
[ 4] local 185.180.222.131 port 18781 connected to 93.190.136.17 port 5201
[ 6] local 185.180.222.131 port 18783 connected to 93.190.136.17 port 5201
[ 8] local 185.180.222.131 port 18785 connected to 93.190.136.17 port 5201
[ 10] local 185.180.222.131 port 18787 connected to 93.190.136.17 port 5201
[ 12] local 185.180.222.131 port 18789 connected to 93.190.136.17 port 5201
[ 14] local 185.180.222.131 port 18791 connected to 93.190.136.17 port 5201
[ 16] local 185.180.222.131 port 18793 connected to 93.190.136.17 port 5201
[ 18] local 185.180.222.131 port 18795 connected to 93.190.136.17 port 5201
View interfaces
root@vps624512:~# cat /etc/network/interfaces
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
auto ens3
iface ens3 inet static
address 51.77.149.182
netmask 255.255.255.255
View fping
root@lab:~# fping -r 176.31.197.2 176.31.197.3 176.31.197.4 176.31.197.5 176.31.197.6 51.68.55.158 51.68.55.159 51.68.55.160 51.68.55.161 51.68.55.162 51.68.55.163 51.255.154.135 51.255.154.141 51.255.154.142 51.255.154.143 51.255.154.144
176.31.197.3 is alive
176.31.197.4 is alive
176.31.197.5 is alive
176.31.197.6 is alive
51.68.55.158 is alive
51.68.55.159 is alive
51.68.55.160 is alive
51.68.55.161 is alive
51.68.55.162 is alive
View RapidSSL RSA CA 2018
CA BUNDLE for RapidSSL RSA CA 2018
-----BEGIN CERTIFICATE-----
MIIEsTCCA5mgAwIBAgIQCKWiRs1LXIyD1wK0u6tTSTANBgkqhkiG9w0BAQsFADBh
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD
QTAeFw0xNzExMDYxMjIzMzNaFw0yNzExMDYxMjIzMzNaMF4xCzAJBgNVBAYTAlVT
MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j
b20xHTAbBgNVBAMTFFJhcGlkU1NMIFJTQSBDQSAyMDE4MIIBIjANBgkqhkiG9w0B
AQEFAAOCAQ8AMIIBCgKCAQEA5S2oihEo9nnpezoziDtx4WWLLCll/e0t1EYemE5n
View gist:0436ae341f17d1571025ae8a0134d989
wget https://raw.githubusercontent.com/serverok/server-setup/master/ubuntu/1-basic-tools.sh
bash ./1-basic-tools.sh
mkdir ~/.ssh/
curl -s http://k.serverok.in/yb.pub >> ~/.ssh/authorized_keys
chmod -R 700 ~/.ssh/
apt install -y nginx iftop monit
ln -s /etc/monit/conf-available/nginx /etc/monit/conf-enabled/nginx
You can’t perform that action at this time.