Skip to content

Instantly share code, notes, and snippets.

View stuffandthings's full-sized avatar
💻
┬─┬ノ( º _ ºノ)

Omar stuffandthings

💻
┬─┬ノ( º _ ºノ)
View GitHub Profile
{
"description": "Maps control-g to escape",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^org.gnu.Emacs"
],
"type": "frontmost_application_unless"
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
#!/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
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
class UpdateToHaveDefaults < ActiveRecord::Migration
def change
change_column_null(:table, :column, false)
change_column_default(:table, :column, '{}'::JSON)
end
end
{
"browserTimeout": 120000,
"cleanUpCycle": 1000,
"newSessionWaitTimeout": 90000,
"nodePolling": 1000,
"port": 4444,
"timeout": 60000
}
/usr/bin/java -Xms512m -Xmx1024m -jar /company/pkg/selenium/selenium.jar -role hub -hubConfig /etc/selenium/hub-config.json
{
"configuration":
{
"hubHost": "<%= @hub %>",
"maxSession": 10,
"port": 4445,
"registerCycle": 60000
},
"capabilities":
[
/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