Put flip somewhere in your $PATH and chmod a+x it.
Copy fuck into ~/.bashrc.
| before 'deploy', 'deploy:good_luck' | |
| before 'deploy:migration', 'deploy:good_luck' | |
| task :good_luck, roles: :app, except: { no_release: true } do | |
| if Time.now.wday == 5 | |
| logger.debug('') | |
| logger.debug('┓┏┓┏┓┃') | |
| logger.debug('┛┗┛┗┛┃\○/') | |
| logger.debug('┓┏┓┏┓┃ / Friday') | |
| logger.debug('┛┗┛┗┛┃ノ)') |
| # This simplest thing is to clone Jim's repo (https://github.com/jimweirich/gilded_rose_kata) and then | |
| # put this file in the root directory. | |
| gem 'minitest', '~> 4.7' | |
| require "minitest/autorun" | |
| require "minitest/reporters" | |
| MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new | |
| require_relative './gilded_rose' |
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |
| gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p327/ |
| $stack, $draws = [], {} | |
| def method_missing *args | |
| return if args[0][/^to_/] | |
| $stack << args.map { |a| a or $stack.pop } | |
| $draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
| end | |
| class Array | |
| def +@ |
| #!/bin/sh | |
| # | |
| # Usage | |
| # copy_dotfiles user@machine | |
| # | |
| FILES=".vim .vimrc .inputrc .gitconfig" | |
| cd $HOME | |
| tar cL $FILES | ssh -C $1 'tar vx' |
| #!/usr/bin/env ruby -w | |
| # pnginator.rb: pack a .js file into a PNG image with an HTML payload; | |
| # when saved with an .html extension and opened in a browser, the HTML extracts and executes | |
| # the javascript. | |
| # Usage: ruby pnginator.rb input.js output.png.html | |
| # By Gasman <http://matt.west.co.tt/> | |
| # from an original idea by Daeken: http://daeken.com/superpacking-js-demos |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2299719/hack.sh | sh | |
| # |