Skip to content

Instantly share code, notes, and snippets.

View edwinestrada's full-sized avatar
🗽
freeing oppressed teams

Edwin Estrada edwinestrada

🗽
freeing oppressed teams
View GitHub Profile
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@edwinestrada
edwinestrada / tmux.md
Created February 23, 2014 22:20 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
#!/bin/sh
BRANCH_NAME=$(git symbolic-ref --short HEAD)
if [ -n "$BRANCH_NAME" ] && [ "$BRANCH_NAME" != "master" ]; then
sed -i.bak -e "1s/^/[$BRANCH_NAME] /" $1
fi
@edwinestrada
edwinestrada / gist:8a4c696833b5337c33b5
Last active August 29, 2015 14:17 — forked from ryanjbonnell/gist:4611642
Installing lynx on MAC osx
cd /usr/local/src
curl -O http://lynx.isc.org/lynx2.8.7/lynx2.8.7.tar.gz
tar -xzvf lynx2.8.7.tar.gz
cd lynx2-8-7
./configure --mandir=/usr/share/man
make
sudo make install

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
<!doctype html>
<html ng-app="Demo">
<head>
<meta charset="utf-8" />
<title>
Preloading Images In AngularJS With Promises
</title>
</head>
<body ng-controller="AppController">

.tmux.config

# Mouse support - set to on if you want to use the mouse
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g mouse-select-window on

set -g default-terminal "xterm-256color"

# ----------------------
@edwinestrada
edwinestrada / gist:6f5cc8add949d5974ded
Created July 19, 2015 22:04
Express - Static File Server
var express = require('express'),
app = express();
app.use(express.static('./'));
app.listen(1337);
console.log('Listening on port ' + 1337 + '...');
@edwinestrada
edwinestrada / .gitconfig
Last active January 23, 2016 01:52
Edwin's .gitconfig
[core]
excludesfile = /Users/edwin/.gitignore_global
editor = vim
[alias]
d = diff
ha = log --all --format='%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset' --graph --date=short
hs = log --all --format='%s%C(red)%d%Creset' --graph --date=short
rmrepair = status --porcelain | awk '/^.D .*$/ {print $2}' | xargs git rm
last = log --name-status HEAD^..HEAD
a = add .