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
function current_dir() { | |
local current_dir=$PWD | |
if [[ $current_dir == $HOME ]]; then | |
current_dir="~" | |
else | |
current_dir=${current_dir##*/} | |
fi | |
echo $current_dir | |
} |
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
ExecStart=/usr/bin/docker run --name fml --rm -v /var/run/postgresql:/tmp/ --network=clevername -e DB_URL -e RACK_ENV -p9292:9292 fml:production |
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 bash | |
set -e | |
VERSION=$(git -C /home/fml/fml.git log --notes=tinyci-result --format="%H %N" --reverse | grep success | tail -n1 | cut -f1 -d' ') | |
echo "new commit: $VERSION" | |
read -n1 -r -p "is this ok? " | |
echo |
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
build: VERSION=<%= commit %> docker-compose build --force-rm test | |
test: export VERSION=<%= commit %> && docker-compose run --rm test && docker-compose down | |
hooks: | |
after_test_success: VERSION=<%= commit %> docker-compose build app | |
after_all: rm -rf <%= export %>; docker rmi fml:<%= commit %>-test |
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
begin | |
raise FooError, "abc" | |
rescue FooError => e | |
raise e if e.message == "abc" | |
rescue => e | |
# i want to get here | |
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
// ==UserScript== | |
// @id fix-google-favicon | |
// @name fix-google-favicon | |
// @version 1.0 | |
// @namespace jonniecache | |
// @author jonniecache | |
// @description Put back the 2012 google favicon so you can find your tabs | |
// @include *.google.* | |
// @run-at document-end | |
// ==/UserScript== |
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
>>>RACK_ENV=test be rspec spec ⏎ ✭ ✱ ◼ | |
Launching Redacted in test mode | |
Run options: include {:focus=>true} | |
All examples were filtered out; ignoring {:focus=>true} | |
Geocoders::Mapquest | |
with some ungeocoded exposures |
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
-/macro fio-dec system, june 1963 | |
007652 640500 szm=sza sma-szf | |
007652 650500 spq=szm i | |
007652 761200 clc=cma+cla-opr | |
- define senseswitch A | |
- repeat 3, A=A+A | |
- szs A | |
- term | |
- define init A,B | |
- law B |
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
class Foo | |
class << self #anything inside this is executed in the context of the class object | |
attr_accessor :bar | |
def upcase_bar | |
@bar.upcase | |
end | |
end | |
def self.downcase_bar #also, in the class definition, self also refers to the class object |
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
Bundler could not find compatible versions for gem "railties": | |
In Gemfile: | |
coffee-rails (~> 3.1.1) ruby depends on | |
railties (~> 3.1.0) ruby | |
spree (>= 0) ruby depends on | |
railties (3.2.0.rc2) |
NewerOlder