Skip to content

Instantly share code, notes, and snippets.

View bigandy's full-sized avatar

Andrew Hudson bigandy

View GitHub Profile
@bigandy
bigandy / .aliases
Created October 4, 2017 19:42
Home .aliases
# Aliases
alias desk="cd ~/Desktop"
alias down="cd ~/downloads"
alias drop="cd ~/Dropbox"
alias sites="cd /Users/andrew/Sites"
alias vagrantsites="sites && cd vagrant-local/www"
alias restart="sudo apachectl restart"
alias zero="ssh pi@192.168.1.88"
alias pi="ssh pi@192.168.1.88"
@bigandy
bigandy / .hyper.js
Created October 3, 2017 10:56
Home .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 18,
// font family with optional fallbacks
@bigandy
bigandy / .bash_profile
Created October 3, 2017 10:52
Home .bash_profile
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob;
@bigandy
bigandy / .functions
Created October 3, 2017 10:50
Home .functions
function gm() {
git commit -am "$1"
}
function gam() {
git add -A :/ && git commit -m "$1"
}
function take() {
mkdir $1 && cd $1
@bigandy
bigandy / .bash_prompt
Created October 3, 2017 10:48
Home .bash_prompt
# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Screenshot: http://cloud.gf3.ca/M5rG
# A big thanks to \amethyst on Freenode
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color
elif [[ $TERM != dumb ]] && infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color
fi
if tput setaf 1 &> /dev/null; then
tput sgr0
@bigandy
bigandy / shoes-socks-slippers.txt
Created October 29, 2016 14:48
Shoes/Socks/Slippers - French
chaussures - shoes
chaussettes - socks
chaussons - slippers
@bigandy
bigandy / twitter-stylish.css
Last active October 20, 2017 09:19
Twitter Stylish
.ProfileCardStats,
.ProfileSidebar--withRightAlignment,
.ProfileNav-value,
.notifications,
.js-moments-tab,
.dashboard-right,
.Trends,
.wtf-module.has-content,
.top-timeline-tweetbox [data-you-follow="false"] {
display: none;
@bigandy
bigandy / .hyperterm.js
Last active August 19, 2016 10:29
Hyperterm Config
module.exports = {
config: {
fontSize: 16,
fontFamily: '"Source Code Pro"',
cursorColor: 'rgba(248,28,229,0.75)',
cursorShape: 'BLOCK',
foregroundColor: '#fff',
backgroundColor: '#000',
borderColor: '#000',
css: `
# How to use css calc
left: ~'calc(50% - 25px)';
[
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["ctrl+super+w"], "command": "close_all" },
{ "keys": ["super+ctrl+e"], "command": "open_file", "args": {"file": "${project}" } },
// { "keys": ["super+down"], "command": "goto_definition" },
{ "keys": ["f4"], "command": "goto_next_error" },
{ "keys": ["shift+f4"], "command": "goto_prev_error" },
{ "keys": ["super+b"], "command": "toggle_side_bar" },
{