Skip to content

Instantly share code, notes, and snippets.

View thephw's full-sized avatar
❤️
Building software with love

Patrick Howard Wiseman thephw

❤️
Building software with love
View GitHub Profile
@thephw
thephw / jameswhitemanifesto.txt
Created April 30, 2020 17:17 — forked from coliver/jameswhitemanifesto.txt
James White Manifesto
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
@thephw
thephw / schema_change.sh
Last active November 9, 2015 18:04 — forked from hwhelchel/schema_change.sh
Undesired Rails Schema Changed (Column moved etc.)
pg_dump --create --column-inserts melody_development > melody_development_dump.sql # or whatever your database is called
# edit dump.sql and change the column order
# stop webserver
be rake db:drop
be rake db:create
psql -f melody_development_dump.sql melody_development
be rake db:migrate
be rake db:test:prepare
@thephw
thephw / es.sh
Last active December 17, 2015 13:49 — forked from rajraj/es.sh
Install elasticsearch on Amazon linux AMI.
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.i686 -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/share