Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Jaure chrisjaure

View GitHub Profile
@chrisjaure
chrisjaure / recipe.rb
Created Jul 10, 2014
Fix apt-get install
View recipe.rb
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 Dec 22, 2015
My user ST3 OS X settings
View Default (OSX).sublime-keymap
[
{ "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 Dec 30, 2016
AngularJS Jasmine test snippets for Sublime Text 2.
View AngularJS Controller Test.sublime-snippet
<snippet>
<content><![CDATA[
describe('${1:SuiteName}', function() {
var scope, \$httpBackend, initController;
beforeEach(function() {
module('${2:ModuleName}', function(\$provide){
});
@chrisjaure
chrisjaure / .bashrc
Last active Dec 12, 2015
my git aliases
View .bashrc
# 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 Feb 1, 2013
My Mac Terminal bash prompt.
View .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 Sep 10, 2012
Output from yeoman
View output
› 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 Jul 29, 2012
Deploying nodejs apps with haibu and git
View deploy.js
#! /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());
View dabblet.css
/**
* cool buttons
*/
body {
background: #fefefe;
}
ul {
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
View dabblet.css
/**
* cool buttons
*/
body {
background: #fefefe;
}
ul {
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
@chrisjaure
chrisjaure / .bashrc
Created Jan 10, 2012
byobu statuses and tweaks
View .bashrc
# 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