Skip to content

Instantly share code, notes, and snippets.

View itsthatguy's full-sized avatar
✌️
Love.

Kevin Altman itsthatguy

✌️
Love.
View GitHub Profile
@itsthatguy
itsthatguy / octal.sh
Last active August 29, 2015 14:16
Shows octal permissions for 'path(s)'
# Shows octal permissions for 'path(s)'
#
# example:
# $ octal /usr/local/foo myfile myotherfile
# 0644 /usr/local/foo
# 0500 myfile
# 0666 myotherfile
# OSX
alias octal="stat -f '%Mp%Lp %N' $*"
@itsthatguy
itsthatguy / foo.coffee
Last active August 29, 2015 14:16
Coffeescript Classes: object.prototype.function and object.function demonstrated
# Run the following command in shell:
# curl -s https://gist.githubusercontent.com/itsthatguy/48d9b47dba05b300c65b/raw/80b1111bb5273697d1db4f5662eb763aa4a80cdc/foo.coffee | coffee --stdio
class Foo
name: 'abott'
@myFunction: ->
console.log "\n# start"
console.log "\nFoo"
console.log "this.name:", this.name
myOtherFunction: ->
console.log "\nfoo (instance of Foo)"
@itsthatguy
itsthatguy / install-ember-cli-node-webkit.md
Last active August 29, 2015 14:16
Installing ember-cli-node-webkit

Install ember-cli-node-webkit

1. install ember-cli (0.2.0-beta.1)

npm install -g [email protected]

2. get the ember-cli-node-webkit addon

" Delete character should not squash paste buffer
nnoremap <silent> x "_x
vnoremap <silent> x "_x
" xp should still function as transpose
nnoremap <silent> xp xph
vnoremap <silent> xp xph
@itsthatguy
itsthatguy / vimrc-markdown-auto-preview.vim
Last active August 29, 2015 14:13
Use http://marked2app.com/ or your favorite markdown previewer
" Use :MarkedOpen to launch Marked
" Requires: Use http://marked2app.com/
Bundle 'itspriddle/vim-marked'
" Syntax highlighting on .md files
Bundle 'tpope/vim-markdown'
" Used to autosave markdown files
Bundle 'vim-scripts/vim-auto-save'
%nav.primary-navigation
.brand-banner
.left
%p Marketing message here
.right
%p Questions? 1-800-555-1234
.main-navigation
%h1 My Title
%a.menu(href="")
# ~/.tmux.conf
source ~/.tmux/airline
@itsthatguy
itsthatguy / clear_font_cache.sh
Created November 9, 2014 20:38
easily clear mac font cache
#!/usr/bin/env bash
# Script to clear font cache
color() {
echo -e "\e[$1;38;5;$2m"
}
no_color() {
echo -e "\e[0m"
}
" Vim color file
" Converted from Textmate theme itg.dark using Coloration v0.3.3 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
export CC=/usr/bin/gcc
ruby-install ruby 2.1.4
<reload shell>
chruby ruby 2.1.4
ruby-install rbx 2.1.10