This file contains hidden or 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
Warning: require(/var/www/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/public/index.php on line 24 | |
Fatal error: require(): Failed opening required '/var/www/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/public/index.php on line 24 |
This file contains hidden or 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/bash | |
# Remove exited containers | |
for exited in $(docker ps -a | grep Exited | cut -d ' ' -f 1); do | |
docker rm $exited; | |
done | |
# Remove intermediate images | |
for img in $(docker images | grep "<none>" | awk "{print \$3}"); do | |
docker rmi -f $img; |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"html/template" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" | |
"log" | |
"net/http" | |
"os" |
This file contains hidden or 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
if defined?(Pry || PryDebugger) | |
Pry.commands.alias_command 'c', 'continue' | |
Pry.commands.alias_command 's', 'step' | |
Pry.commands.alias_command 'n', 'next' | |
Pry.commands.alias_command 'f', 'finish' | |
end |
This file contains hidden or 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
searchkick callbacks: :async, | |
word_start: [:name, :customer_name, :studio_name], | |
merge_mappings: true, | |
settings: { | |
analysis: { | |
analyzer: { | |
custom_chars: { | |
type: 'custom', | |
tokenizer: 'whitespace', | |
filter: ['lowercase', 'custom_filter'] |
This file contains hidden or 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
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
alias gst="git status" | |
alias gpr="git pull --rebase" | |
alias dev="git checkout develop" |
This file contains hidden or 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
find . -name '*.DS_Store' -type f -delete | |
cd /opt/boxen/rbenv/plugins/ruby-build/ && git pull |
This file contains hidden or 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
var sys = require('sys'), | |
exec = require('child_process').exec; | |
// fs = require('fs'); | |
// ecsv = require('ecsv') | |
function Queue () { | |
var waiting = []; | |
this.max = -1; | |
this.current = 0; | |
//run checks if we're under the max processors, and runs if there is room. |
This file contains hidden or 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
require 'tempfile' | |
require 'java' if defined?(JRUBY_VERSION) | |
require 'test/unit' | |
require 'fileutils' | |
class TestTempfilesCleanUp < Test::Unit::TestCase | |
def setup | |
@tmpdir = "tmp_#{$$}" | |
Dir.mkdir @tmpdir rescue nil |
This file contains hidden or 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
thor merb:gem:list | |
Installed local gems: | |
~ ParseTree-3.0.2 | |
~ RubyInline-3.8.1 | |
~ ZenTest-3.11.0 | |
~ abstract-1.0.0 | |
~ addressable-1.0.4 | |
~ data_objects-0.9.6 | |
~ dm-aggregates-0.9.6 | |
~ dm-core-0.9.6 |