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
{ | |
"description": "Maps control-g to escape", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org.gnu.Emacs" | |
], | |
"type": "frontmost_application_unless" |
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
call plug#begin('~/.vim/plugged') | |
Plug 'kien/ctrlp.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'chriskempson/base16-vim' | |
call plug#end() | |
set nocompatible " be iMproved, required | |
filetype off " required |
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/bash | |
echo "Installing ElasticSearch Version 2.4.0" | |
mkdir -p tmp_es_dir && cd tmp_es_dir | |
curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/2.4.0/elasticsearch-2.4.0.zip &> /dev/null | |
unzip elasticsearch-2.4.0.zip | |
cp -R elasticsearch-2.4.0 /usr/local/share | |
# Make symlink so you can run version 2.4.0 with 'elasticsearch2' | |
ln -s /usr/local/share/elasticsearch-2.4.0/bin/elasticsearch /usr/local/bin/elasticsearch2 | |
# Cleanup, remove the downloaded files |
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 UpdateNullConstraint < ActiveRecord::Migration | |
def change | |
change_column_null(:table, :column, false, '{}') | |
end | |
end | |
Error: | |
PG::NotNullViolation: ERROR: null value in column "column" violates not-null constraint |
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 UpdateToHaveDefaults < ActiveRecord::Migration | |
def change | |
change_column_null(:table, :column, false) | |
change_column_default(:table, :column, '{}'::JSON) | |
end | |
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
{ | |
"browserTimeout": 120000, | |
"cleanUpCycle": 1000, | |
"newSessionWaitTimeout": 90000, | |
"nodePolling": 1000, | |
"port": 4444, | |
"timeout": 60000 | |
} |
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/java -Xms512m -Xmx1024m -jar /company/pkg/selenium/selenium.jar -role hub -hubConfig /etc/selenium/hub-config.json |
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
{ | |
"configuration": | |
{ | |
"hubHost": "<%= @hub %>", | |
"maxSession": 10, | |
"port": 4445, | |
"registerCycle": 60000 | |
}, | |
"capabilities": | |
[ |
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/sh /usr/bin/xvfb-run /usr/bin/java -Xms512m -Xmx1024m -jar /company/pkg/selenium/selenium.jar -role node -nodeConfig /etc/selenium/node-config.json -Dwebdriver.firefox.bin=/usr/bin/firefox -Djava.io.tmpdir=/company/tmp |