Skip to content

Instantly share code, notes, and snippets.

View Tucker-Eric's full-sized avatar
🤦‍♂️
Crushing It

Eric Tucker Tucker-Eric

🤦‍♂️
Crushing It
View GitHub Profile
server {
listen 127.0.0.1:80;
server_name 127.0.0.1;
location /nginx_status {
stub_status on;
allow 127.0.0.1;
deny all;
}
}
abbr -a g 'git'
abbr -a ga 'git add'
abbr -a gaa 'git add --all'
abbr -a gapa 'git add --patch'
abbr -a gb 'git branch'
abbr -a gba 'git branch -a'
abbr -a gbda 'git branch --merged | command grep -vE "^(\*|\s*master\s*\$)" | command xargs -n 1 git branch -d'
abbr -a gbl 'git blame -b -w'
abbr -a gbnm 'git branch --no-merged'
abbr -a gbr 'git branch --remote'
@Tucker-Eric
Tucker-Eric / cloudflare-ips.conf
Last active December 7, 2016 17:17
Nginx config file to show a user's IP through cloudflare proxy
set_real_ip_from 103.21.244.0/22
set_real_ip_from 103.22.200.0/22
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 173.245.48.0/20;
@Tucker-Eric
Tucker-Eric / arrange_files.vbs
Last active October 29, 2015 20:43
Arrange Files Into Client Folders
Dim fso,f,strPathBuild,destFolder,clientFolder,newFile
'This is where we searching for the files to move
'This is also where the sub directories are located
destFolder = "F:\envista_data_files\Client Data"
'Create the File System Object that will do all file/folder manipulations
Set fso=CreateObject("Scripting.FileSystemObject")
'Create the folder object we are going to start searching in
Set f = fso.GetFolder(destFolder)
'Regular Expression to identify client id/code