Skip to content

Instantly share code, notes, and snippets.

View chrisjaure's full-sized avatar

Chris Jaure chrisjaure

  • WI
View GitHub Profile
@chrisjaure
chrisjaure / recipe.rb
Created July 10, 2014 19:44
Fix apt-get install
execute "compile-time-apt-get-update" do
command "apt-get update"
ignore_failure true
action :nothing
end.run_action(:run)
@chrisjaure
chrisjaure / Default (OSX).sublime-keymap
Last active December 22, 2015 20:49
My user ST3 OS X settings
[
{ "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+shift+k"], "command": "find_under_expand" },
{ "keys": ["ctrl+shift+s", "ctrl+shift+k"], "command": "find_under_expand_skip" },
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}}
]
@chrisjaure
chrisjaure / AngularJS Controller Test.sublime-snippet
Last active December 30, 2016 09:15
AngularJS Jasmine test snippets for Sublime Text 2.
<snippet>
<content><![CDATA[
describe('${1:SuiteName}', function() {
var scope, \$httpBackend, initController;
beforeEach(function() {
module('${2:ModuleName}', function(\$provide){
});
@chrisjaure
chrisjaure / .bashrc
Last active December 12, 2015 09:59
my git aliases
# add these to add branch autocompletion on a couple complex aliases
function _git_db() {
_git_branch
}
function _git_dbf {
_git_branch
}
@chrisjaure
chrisjaure / .bash_prompt
Created February 1, 2013 22:56
My Mac Terminal bash prompt.
# Set the prompt
# This will show something like:
#
# chris@chris-ubuntu in ~
# ›
PS1='\n\[\033[01;35m\]\u@\h\[\033[00m\] in \[\033[01;34m\]\w\[\033[00m\]\n› '
case "$TERM" in
xterm*|rxvt*)
@chrisjaure
chrisjaure / output
Created September 10, 2012 18:28
Output from yeoman
› curl -L get.yeoman.io | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10835 100 10835 0 0 22599 0 --:--:-- --:--:-- --:--:-- 22599
You are using apt-get. I'll assume you have Linux with that.
Installing on Linux.
.-:/+ossyhhhddddddddhhhysso+/:-.
@chrisjaure
chrisjaure / deploy.js
Created July 29, 2012 17:16
Deploying nodejs apps with haibu and git
#! /path/to/node
var haibu = require('/path/to/haibu');
var client = new haibu.drone.Client();
process.stdin.resume();
process.stdin.on('data', function(data){
var package = JSON.parse(data.toString());
@chrisjaure
chrisjaure / dabblet.css
Created March 16, 2012 01:05
cool buttons
/**
* cool buttons
*/
body {
background: #fefefe;
}
ul {
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
@chrisjaure
chrisjaure / dabblet.css
Created March 12, 2012 02:24
cool buttons
/**
* cool buttons
*/
body {
background: #fefefe;
}
ul {
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
@chrisjaure
chrisjaure / .bashrc
Created January 10, 2012 20:50
byobu statuses and tweaks
# make window name in byobu show current git branch
# git repo doesn't need to be hard-coded but overwrites custom window name
case "$TERM" in
screen*)
GIT_PS1_SHOWDIRTYSTATE=true
PROMPT_COMMAND='echo -ne "\033k$(__git_ps1)\033"'
;;
esac