Skip to content

Instantly share code, notes, and snippets.

View taylor's full-sized avatar
🐢
🌊

Taylor Carpenter taylor

🐢
🌊
View GitHub Profile
#
# mmm m m mmm mmm mmm mmmmm mmm
# " # "m m m" #" # # " #" "# # # # #" #
# m"""# #m#m# #"""" """m # # # # # #""""
# "mm"# # # "#mm" "mmm" "#m#" # # # "#mm"
#
# nginx configuration For Ruby/Rack web applications
#
# Cooked up with style, care and a bit of *secret*
# nerdy spice. :-)

Docker Cheat Sheet

Why

Why Should I Care (For Developers)

"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."

TL;DR, I just want a dev environment

@taylor
taylor / tmux-vi-bindings.mkd
Last active January 11, 2020 22:56
tmux with VI keybindings

VI keybindings for tmux -taylor

This is for the setup in my .tmux.conf

My tmux prefixes are Ctrl-B and DELETE (not backspace). Either one can be used. I'll refer them both as PREFIX

Some of the key bindings are listed below.


@taylor
taylor / heartbleed_bug-tools-and-references.md
Last active August 29, 2015 13:58
Heartbleed bug quick info
@taylor
taylor / gist:10000885
Last active March 1, 2016 20:01
initializers/devise.rb change for to support Devise secret_key as an environment variable.
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index cbe1fbd..358f9c3 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -5,6 +5,11 @@ Devise.setup do |config|
# random tokens. Changing this key will render invalid all existing
# confirmation, reset password and unlock tokens in the database.
# config.secret_key = '13844ee05eb483442eef5ace6cd3a7ba60cf65bf0165dad57ed09150e6a1cb62913ca593bd68debb6235e79f04e5c587c
+ if Rails.env.production?
+ config.secret_key = ENV['DEVISE_SECRET_KEY']

10 Erlang one liners to impress your friends

  1. Multiple Each Item in a List by 2:

[X * 2 || X <- lists:seq(1, 11)].
@taylor
taylor / erlang-and-elixir-install-with-kiex-on-fedora19.md
Last active June 26, 2017 11:10
Installing Erlang with kerl and Elixir with kiex on Fedora 19

Install basic dev env tools/libs

yum install -y vim-enhanced tmux
yum groupinstall 'Development Tools' -y
yum install -y ncurses-devel ncurses

Setup kerl

# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
@taylor
taylor / gist:9823216
Created March 28, 2014 01:33
tips: monitoring multiple java apps with newrelic via app name config
If you have more than one java process to monitor with newrelic you can name the app config so they show up as different feeds.
```
-Dnewrelic.config.app_name="My Application"
```
@taylor
taylor / .tmate.conf
Created March 27, 2014 15:02
tmate config with a different prefix to avoid tmux and a few sane defaults
## tmate
#set -g prefix C-a
set -g prefix C-]
bind-key ] send-prefix
# Use: C-b C-b to change to last window
#bind-key C-b last-window
bind-key C-] last-window
#####