I hereby claim:
- I am OmarTrigui on github.
- I am cipheredbytes (https://keybase.io/cipheredbytes) on keybase.
- I have a public key whose fingerprint is 47A4 6711 5F27 1E20 0659 85F2 2EC1 3F4A 2C01 0303
To claim this, I am signing this object:
var aop = function(schema) { | |
schema.aop = []; | |
var executePre = function(functions, index, context, next) { | |
if (functions.length == index) { | |
next(); | |
} else { | |
functions[index](context, function() { | |
executePre(functions, index + 1, context, next); |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh -e | |
if [ $# != 3 ] | |
then | |
echo "usage: $0 <src-port> <dest-host> <dest-port>" | |
exit 0 | |
fi | |
TMP=`mktemp -d` | |
BACK=$TMP/pipe.back |
# Let's encrypt must be installed and port 443 must not be used for a short period | |
certbot auth --text --agree-tos --standalone --email user@domain.com -d domain.com -d mail.domain.com | |
cat /etc/letsencrypt/live/domain.com/privkey.pem > /etc/postfix/postfix_default.pem | |
cat /etc/letsencrypt/live/domain.com/fullchain.pem >> /etc/postfix/postfix_default.pem | |
/usr/local/psa/admin/sbin/mailmng --restart-service | |
# For the other Let's encrypt alternatives : https://wpguru.co.uk/2014/12/plesk-mail-ssl/ |
var nodemailer = require('nodemailer'); | |
var smtpConfig = { | |
host: 'domain.com', | |
port: 587, | |
auth: { | |
user: 'user@domain.com', | |
pass: 'password' | |
} | |
}; |
#!/bin/bash | |
mount -t ext4 /dev/sdaX /mnt/ | |
mount -t proc none /mnt/proc | |
mount -o bind /dev /mnt/dev | |
mount -o bind /sys/ /mnt/sys | |
chroot /mnt/ /bin/bash | |
echo 'nameserver 8.8.4.4' | sudo tee -a /etc/resolv.conf |
upstream sample { | |
server 127.0.0.1:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name my-domain.com; | |
location / { | |
return 301 https://$host$request_uri; |
sudo apt-get install yasm libfdk-aac-dev libmp3lame-dev libvorbis-dev libvorbis-dev libx264-dev libxvidcore-dev libopus-dev libx265-dev | |
./configure --extra-libs=-ldl --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libxvid --enable-libopus --enable-libmp3lame |
[client] | |
ssh-keygen -t rsa -b 2048 -v | |
ssh-copy-id -i ~/sample.pub root@12.34.56.78 | |
[server] |
#!/bin/bash | |
service nginx stop; | |
certbot auth --text --agree-tos --standalone --email mail@domain.com -d domain.com -d mail.domain.com --non-interactive --fo | |
rce-renewal; | |
service nginx start; | |
cat /etc/letsencrypt/live/domain.com/privkey.pem > /etc/postfix/postfix_default.pem; | |
cat /etc/letsencrypt/live/domain.com/fullchain.pem >> /etc/postfix/postfix_default.pem; | |
/usr/local/psa/admin/sbin/mailmng --restart-service; |