Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Yujin Boby serverok

🌴
On vacation
Block or report user

Report or block serverok

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ,tmux.conf
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
set-window-option -g window-status-current-bg white
View gist:bfcbdfab886cf166a6d8beba7aa97410
wpwebsi2@wpwebsitehosting.com [~/public_html/runlandpainting/wp-admin/includes]# stat network.php
File: `network.php'
Size: 39815 Blocks: 80 IO Block: 4096 regular file
Device: 841h/2113d Inode: 93328926 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 602/wpwebsi2) Gid: ( 603/wpwebsi2)
Access: 2018-09-10 00:28:59.000000000 -0600
Modify: 2018-09-10 00:28:59.000000000 -0600
Change: 2019-06-05 01:11:03.986426686 -0600
wpwebsi2@wpwebsitehosting.com [~/public_html/runlandpainting/wp-admin/includes]# date
Wed Jun 5 12:00:29 MDT 2019
View gist:f514e46b26d1530466abd313e9661498
2nd disk is not working (/dev/sdb)
[root@konglingre ~]# parted -l
Model: ATA Crucial_CT120M50 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ext3 boot
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
You can’t perform that action at this time.