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
cd tmp/; | |
curl -L https://github.com/jcupitt/libvips/releases/download/v8.5.8/vips-8.5.8.tar.gz | tar xz; \ | |
cd vips-8.5.8; \ | |
dpkg --configure -a; \ | |
echo "/usr/local/lib/" >> /etc/ld.so.conf.d/local.conf; \ | |
./configure; \ | |
make; \ | |
sudo make install; |
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
# add to app/initializers/annotate_models.rb | |
module AnnotateModels | |
class << self | |
# add your type | |
MATCHED_TYPES = %w(test fixture factory serializer scaffold controller helper serializable).freeze | |
# the directory they live in, can be more than 1 here | |
SERIALIZABLE_DIR = File.join('app', "serializers") |
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
dist: trusty | |
before_script: | |
- wget http://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip | |
- unzip chromedriver_linux64.zip | |
- sudo apt-get install libnss3 | |
- sudo apt-get --only-upgrade install google-chrome-stable | |
- sudo cp chromedriver /usr/local/bin/. | |
- sudo chmod +x /usr/local/bin/chromedriver | |
- export DISPLAY=:99.0 |
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
#! /bin/zsh | |
function dotenv () { | |
regex="DOT_ENV\=(\w+)" | |
if [[ $1 =~ $regex ]]; then | |
env="${match[1]}" | |
file_name=".env.${env}" | |
if [[ -f $file_name ]]; then | |
source_env $file_name | |
return |
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
# The Computer Language Benchmarks Game | |
# http://benchmarksgame.alioth.debian.org | |
# | |
# Optimized for Ruby by Jesse Millikan | |
# From version ported by Michael Neumann from the C gcc version, | |
# which was written by Christoph Bauer. | |
require 'benchmark' | |
puts Benchmark.measure { |
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
git clone https://sourceware.org/git/valgrind.git; | |
cd valgrind/ | |
# time to edit some files (see below) | |
./autogen.sh | |
./configure --disable-dependency-tracking --enable-only64bit --build=amd64-darwin | |
./make | |
./make install | |
# done. |
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
Foo: | |
- interactions/foo/ | |
- interactions/user/bar/ | |
- interactions/baz.rb | |
Bar: | |
- interactions/bar/ | |
- interactions/user/bar/ |
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
namespace :migrations do | |
desc 'Generate clean SQL migrations from lol_dba' | |
task clean_sql: :environment do | |
Rake::Task["db:migrate_sql"].invoke | |
sql_migration_files = Dir[Rails.root.join("db", "migrate_sql")+"*.sql"] | |
sql_migration_files.each_with_index do |sql_file,i| |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
;F10 | |
^F10:: | |
Sendinput, {F10} | |
Return |
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
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |