I hereby claim:
- I am orleika on github.
- I am orleika (https://keybase.io/orleika) on keybase.
- I have a public key whose fingerprint is 1007 C011 3893 0FCA 6DED 1D82 26D7 5F1F C7EB D852
To claim this, I am signing this object:
| <?php | |
| namespace App\Http\Middleware; | |
| use Response; | |
| use Exception; | |
| class CSV | |
| { | |
| /** | |
| * downlaod csv file |
| const readFile = (...args) => { | |
| return new Promise((resolve, reject) => { | |
| fs.readFile(...args, (err, data) => { | |
| if (err) reject(err) | |
| resolve(data) | |
| }) | |
| }) | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| tor_ip_list=`curl https://check.torproject.org/exit-addresses` | |
| if [ $? -ne 0 ]; then | |
| exit 1 | |
| fi | |
| echo "${tor_ip_list}" | grep "ExitAddress" | while read line; do | |
| ip=`echo "${line}" | sed -e "s/^ExitAddress \([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*/\1/g"` |
| sudo sh -c 'echo "127.0.0.1 localhost test" >> /etc/hosts' && sudo sh -c 'echo "127.0.0.1 localhost test" >> /etc/hosts' && sudo apt-get update && sudo apt-get install nginx -y && sudo sh -c 'echo {\"status\": \"OK\"} > /var/www/html/check.json' && sudo sh -c 'cat << EOS > /etc/nginx/sites-available/default | |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| root /var/www/html; | |
| index index.html index.htm index.nginx-debian.html; | |
| location / { | |
| try_files \$uri \$uri.json \$uri/ =404; | |
| } | |
| } |
| docker run -it --rm -p 443:443 -p 80:80 --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" quay.io/letsencrypt/letsencrypt:latest certonly --text --agree-tos --email $email --rsa-key-size 4096 --renew-by-default -d $domain --verbose |