Skip to content

Instantly share code, notes, and snippets.

# NOTE: To test asset pipeline in development set the following config.assets.* below in
# your config/environments/development.rb and then run:
#
# $ RAILS_ENV=development rake assets:precompile
#
# It is recommended you rm -rf public/assets and turn off these settings in development when
# you are finished or this may cause issues with assets in your local development environment
#
# config.assets.compress = true
# config.assets.compile = false

Operable Software

What does it mean to make software that doesn't just run, but is operable?

Good question! This represents some current thinking on the topic; there's tons of details in each of these things, so this list is expected to change and get more detailed over time.

Operable Software seems to involve (at a minimum) thinking a lot harder about and making sure there is a strategy (and code where appropriate) for:

  • Metrics
  • Logging
@duff
duff / bootstrap.lua
Last active December 12, 2015 08:08 — forked from ntalbott/bootstrap.lua
local url = "https://gist.github.com/duff/4741476/raw/gfs.lua"
local body = http.get(url).readAll()
local handle = fs.open("/gfs", "w")
handle.write(body)
handle.close()
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
@duff
duff / post-merge
Created June 26, 2009 15:34 — forked from austintaylor/post-merge
Show the diff after a git merge
#!/bin/sh
# Print out what changed in a nice format.
git log @{1}.. --pretty=format:"%Cblue%an%Creset %ar: %Cred\"%s%b\"%Creset (%h)" --reverse
@duff
duff / gist:132557
Created June 19, 2009 10:55 — forked from defunkt/gist:132456
Bash snippet to open new shells in recent directory
# Bash snippet to open new shells in most recently visited dir.
# Useful if you want to open a new terminal tab at the present
# tab's location.
#
# Put this in your .bashrc or whatever.
pathed_cd () {
if [ "$1" == "" ]; then
cd
else
@duff
duff / .bashrc
Created January 26, 2009 18:53 — forked from henrik/.bashrc
Git branch and dirty state (using git-completion.bash) and colored
# [ ~/develop/dir ] master $ # clean working directory
# [ ~/develop/dir ] master* $ # dirty working directory
# [ ~/some_dir ] $ # not a git repo
source ~/bin/.git-completion.sh # Copied the contrib/completion/git-completion.bash file in the git distribution
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
PS1='\e[0m[ \e[32m\w\e[0m ]$(__git_ps1 " \e[33m%s\e[31m$(parse_git_dirty)\e[0m") $ '