Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
" Vim syntax file | |
" Language: LESS Cascading Style Sheets | |
" Maintainer: Leaf Corcoran <[email protected]> | |
" Modifier: Bryan J Swift <[email protected]> | |
" URL: http://leafo.net/lessphp/vim/less.vim | |
" URL: http://gist.github.com/161047 | |
" Last Change: 2009 August 4 | |
" LESS by Leaf Corcoran | |
" CSS2 by Nikolai Weibull | |
" Full CSS2, HTML4 support by Yeti |
#Handy Git stuff | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
function git-track { | |
CURRENT_BRANCH=$(parse_git_branch) | |
git-config branch.$CURRENT_BRANCH.remote $1 | |
git-config branch.$CURRENT_BRANCH.merge refs/heads/$CURRENT_BRANCH | |
} |
# Defaults that we'll need | |
include_recipe "apt" | |
package "vim" | |
package "screen" | |
package "git-core" | |
package "mercurial" | |
package "subversion" | |
package "python" |
SQL_PARSER_REGEXP = /^(\w+)\s(\w+)\s\W*(\w+)/ | |
ActiveSupport::Notifications.subscribe "sql.active_record" do |name, start, finish, id, payload| | |
if payload[:name] == "SQL" | |
if Thread.current[:stats_context] # where I store the name of the request context | |
payload[:sql] =~ SQL_PARSER_REGEXP # $1 will be the query type, $3 the table | |
Statsd.timing("#{Thread.current[:stats_context]}.sql.#{$3}.#{$1}.query_time", | |
(finish - start) * 1000, 1) | |
end | |
end |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
A while ago I did some rage tweeting about job ads. Here is a list of helpful things people sent me to read then and since:
General key themes:
Hiring is really hard. You’re not just hiring a “Rails Engineer” or a “Python Programmer” you’re hiring someone who can help you change the world. Tell them why! Talk about the hard problems you’re solving. 2/3 of these talks give ideas and insight into hiring from sourcing to actual interview processes.
Rewriting systems is hard. People think they are going to replace their broken down horse and buggie with a bullet train and this often ends up in disaster. Successful rewrites require an incremental approach that takes months/years and often runs way over schedule. 2/3 of these talks go over how to handle rewrites not only from a high level technical perspective but a cultural/management perspective as well.
Leave suggestions in the comments below
Practical / Tactical
Be on time to meetings or alert an hour ahead of time if you'll be late
Meetings need a goal and a runner to get that goal accomplished
Defend your time from distractions and use it effectively on moving product forward
Prefer Slack over email over in person interruptions over a set block of time
Copenhagen Street Food: big indoor street food place in Paper Island. Tons of options, but the duck fat fries from Copper and Wheat are amazing.
Musiksmag: decent little cafe / bar / record shop in Nørrebro.
Ruby: great cocktail bar.
Kalaset: fun place for brunch. Close to: