This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set noautofocus " The opposite of autofocus; this setting stops | |
" sites from focusing on an input box when they load | |
map d closeTab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup SSH | |
eval $(ssh-agent -s) | |
ssh-add ~/.ssh/github | |
# Tool allowing to clean git repository history | |
alias bfg='java -jar C:/bfg-repo-cleaner/bfg-1.13.0.jar' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Purpose: Update AWS security group using IP of machine where script is executed | |
# Usage: ./update_aws_sg.sh <security group id> <protocol> <port> <rule description> | |
# Standardised error process, prints errors to STDERR | |
function exit_with_error() { | |
echo -e "[ERROR] ${1}" >&2; | |
exit 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import re | |
import time | |
def delete(): | |
stm = [ | |
'mysql', | |
'-u', 'test', | |
'--password=dummypassword', | |
'-e', "DELETE FROM mcm.test ORDER BY id LIMIT 1000", |