Simple way to quickly see what's in your current $PATH variable.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
ruby '2.1.2' | |
gem 'rails', '4.2.0' | |
gem 'sass-rails', '~> 5.0' | |
gem 'uglifier', '>= 1.3.0' | |
gem 'coffee-rails', '~> 4.1.0' | |
gem 'jquery-rails' | |
gem 'turbolinks' | |
gem 'jbuilder', '~> 2.0' | |
gem 'bcrypt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Validates that you don't commit forbidden keywords to the repo | |
# You can skip this checking with 'git commit --no-verify' | |
exit 0 if ARGV.include?('--no-verify') | |
# Update this list with your own forbidden keywords | |
KEYWORDS = %w(binding.pry console.log debugger) | |
def red(text) "\033[31m#{text}\033[0m"; end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
sudo apt-get -y update | |
sudo apt-get -y install curl git-core python-software-properties ruby-dev libpq-dev build-essential nginx libsqlite3-0 libsqlite3-dev libxml2 libxml2-dev libxslt1-dev nodejs imagemagick | |
sudo apt-get -y install libcurl4-openssl-dev | |
sudo apt-get -y install libc6 zlib1q | |
sudo apt-get -y install postgresql postgresql-contrib | |
# System prerequisites |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test Chrome Autofill Hack</title> | |
</head> | |
<style media="screen"> | |
.hidden { | |
/*display: none;*/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
set the_application to (path to frontmost application as Unicode text) | |
repeat 5 times | |
tell application "System Events" | |
key code 107 | |
end tell | |
end repeat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set shiftwidth=2 | |
set number | |
set tabstop=2 | |
set backspace=2 | |
set paste | |
set hlsearch | |
set ruler | |
set laststatus=2 | |
nnoremap <C-L> :nohl<CR><C-L> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "test file line one" > ~/Desktop/test.txt | |
echo "test file line two" >> ~/Desktop/test.txt | |
#echo "<a> | |
username="$(whoami)" | |
url="atm://open?url=file://%2FUsers%2F$username%2FDesktop%2Ftest.txt&line=2" | |
htmlfile="/Users/$username/Desktop/test.html" | |
touch $htmlfile | |
echo "<a href='$url'>$url</a>" > $htmlfile | |
open $htmlfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved | |
" For vundle | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#rc() | |
call vundle#begin() | |
" Dependencies of snipmate | |
Bundle "MarcWeber/vim-addon-mw-utils" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: Ruby | |
" Maintainer: Doug Kearns <[email protected]> | |
" URL: https://github.com/vim-ruby/vim-ruby | |
" Release Coordinator: Doug Kearns <[email protected]> | |
" ---------------------------------------------------------------------------- | |
" | |
" Previous Maintainer: Mirko Nasato | |
" Thanks to perl.vim authors, and to Reimer Behrends. :-) (MN) | |
" ---------------------------------------------------------------------------- |
OlderNewer