Skip to content

Instantly share code, notes, and snippets.

View edwelker's full-sized avatar

Eddie Welker edwelker

View GitHub Profile
@edwelker
edwelker / SerpentRidge.md
Last active August 29, 2015 14:05
SerpentRidge.md

Serpent Ridge Vineyard

Only 2.5 acres of land. Only 4 years old as of now, and getting their first harvest just now.

Seyval Blanc 5 glass / 18 bottle

Very dry, a slighty sour aroma to start. A little acid, but still very good. Grapes from Demascus.

import com.twitter.finagle.{Http, Service}
import com.twitter.util.{Await, Future}
import java.net.InetSocketAddress
import org.jboss.netty.handler.codec.http._
object Client extends App {
val client: Service[HttpRequest, HttpResponse] =
Http.newService("localhost:8080/failures")
val request = new DefaultHttpRequest(
HttpVersion.HTTP_1_1, HttpMethod.GET, "/")
@edwelker
edwelker / centos
Last active August 29, 2015 14:04
centos
https://fedoraproject.org/wiki/EPEL
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm && yum install tmux
#need general development tools on image
yum groupinstall -y development
#additional tools
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel xz-libs

Keybase proof

I hereby claim:

  • I am edwelker on github.
  • I am edwelker (https://keybase.io/edwelker) on keybase.
  • I have a public key whose fingerprint is 17E5 B3DA 4F43 340E C572 FB56 ADFE B0ED B235 A975

To claim this, I am signing this object:

@edwelker
edwelker / bash_history
Last active August 29, 2015 13:58
Bash history
History event commands
! - history substitution
!! - last command
!n - nth command
!-n - nth previous command
!string - command that starts with string
!?string[?] - command that contains string
^old^new^ - quick substitution of command
RED=$'\e[31;40m'
BLUE=$'\e[0;34m'
D=$'\e[37;40m' # set this to what makes sense for your terminal color scheme
shopt -s histappend
pre_prompt() {
local exit_code=$?;
history -a;
history -n;
Extra assertions for django_nose
***
assert_redirects(response, expected_url, status_code=302, target_status_code=200, host=None, msg_prefix='')
assert_contains(response, text, count=None, status_code=200, msg_prefix='')
assert_not_contains(response, text, count=None, status_code=200, msg_prefix='')
assert_form_error(response, form, field, errors, msg_prefix='')
Bash: override noclobber >|
Tmux usage:
C-a ! == break pane off into new window
: join-pane -s :0 == join pane to window 0

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname