Skip to content

Instantly share code, notes, and snippets.

View mrPsycho's full-sized avatar

Yaroslav Nakonechnikov mrPsycho

  • @e-legion
View GitHub Profile
@mrPsycho
mrPsycho / dom.ru_ip_list.txt
Last active April 27, 2017 18:17
dom.ru ip block list
5.164.64.0/22
5.164.64.0/21
5.164.64.0/20
5.164.64.0/19
5.164.64.0/18
5.164.68.0/22
5.164.72.0/22
5.164.72.0/21
5.164.76.0/22
5.164.80.0/22
@mrPsycho
mrPsycho / php-fpm.sh
Last active November 28, 2017 22:56 — forked from kain-jy/gist:4138784
[phpenv][php-build] php-fpm's init file
#! /bin/sh
#
# run as current user
# > mkdir ~/.phpenv/init
# > vim 5.3.19
#
# before, you should edit php-fpm.conf
# and comment out [www] user and group.
PHP_BASE=$HOME/.phpenv/versions/`cat ~/.php-version`
@mrPsycho
mrPsycho / amazon
Last active May 4, 2018 13:22
whitelist
103.246.148.0/23
103.246.150.0/23
103.4.8.0/21
103.8.172.0/22
107.20.0.0/14
107.23.255.0/26
122.248.192.0/18
13.112.0.0/14
13.112.191.184/29
13.113.203.0/24
@mrPsycho
mrPsycho / imapfwd
Created May 17, 2018 23:27
imapfwd
#!/usr/bin/env python
# Copyright 2009 (C) Pierre Duquesne <[email protected]>
# Licensed under the BSD Revised License.
import imaplib
import smtplib
import sys
import optparse
import getpass
@mrPsycho
mrPsycho / robots.txt
Created December 25, 2018 14:08
robots.txt
User-agent: *
Disallow: /
@mrPsycho
mrPsycho / delete-recovery-points.sh
Created January 15, 2020 16:15
Very easy way to delete all recovery points from AWS Backup vault
export VAULT=$1
for arn in $(aws backup list-recovery-points-by-backup-vault --backup-vault-name=$VAULT --output=text --query 'RecoveryPoints[].RecoveryPointArn')
do
aws backup delete-recovery-point --backup-vault-name=$VAULT --recovery-point-arn $arn
done