Skip to content

Instantly share code, notes, and snippets.

View ryanschwartz's full-sized avatar

Ryan Schwartz ryanschwartz

View GitHub Profile
@ryanschwartz
ryanschwartz / -
Created May 23, 2013 02:21 — forked from anonymous/-
strano diff
diff --git a/Gemfile b/Gemfile
index 30c8aab..451aa31 100644
--- a/Gemfile
+++ b/Gemfile
@@ -12,6 +12,11 @@ group :assets do
gem 'uglifier', '>= 1.0.3'
end
+#uhhhhhhhhhhhhhhhhhhhhhhhhh...
+gem 'therubyracer', '=0.11.4'
@ryanschwartz
ryanschwartz / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ryanschwartz
ryanschwartz / README.md
Last active November 1, 2016 19:58 — forked from adambom/README.md
Backup Kubernetes Cluster State

Run this in order to backup all you k8s cluster data. It will be saved in a folder bkp. To restore the cluster, you can run kubectl apply -f bkp.

Please note: this recovers all resources correctly, including dynamically generated PV's. However, it will not recover ELB endpoints. You will need to update any DNS entries manually, and manually remove the old ELB's.

Please note: This has not been tested with all resource types. Supported resource types include:

  • services
  • replicationcontrollers
  • secrets
  • deployments
  • horizontal pod autoscalers