Skip to content

Instantly share code, notes, and snippets.

View mlafeldt's full-sized avatar

Mathias Lafeldt mlafeldt

View GitHub Profile
@gilligan
gilligan / vimrc
Created February 7, 2013 20:10
mlafeldt vimrc fiddling
" Based on Gary Bernhardt's .vimrc file:
" https://github.com/garybernhardt/dotfiles/blob/master/.vimrc
" vim: set ts=2 sts=2 sw=2 expandtab:
"
" global settings {{{
"
" enter vim mode
set nocompatible
" allow unsaved background buffers and remember marks/undo for them
I am starting the very early phases of writing a book
about the human side of software development. It'll cover
things like:
* Usability
* Maintainability
* Writing understandable code + building understandable products
* Team dynamics
* Technical writing and communication
* Measuring and assessing productivity
@s0enke
s0enke / index.md
Last active February 25, 2016 10:40
Searching for books/papers on lean and systems thinking in SaaS organizations

Any book recommendations on lean and systems thinking in SaaS organizations?

  • integrating dev/ops into customer support and other way round
  • metrics for "customer happiness"
  • team boundaries: rights and responsibilities: what to do if conflicting goals? How does the system find out that it might have conflicting goals.
  • sustainable business focussing on flow rather than ob short time profit. What are the cultural and technical foundations of a sustainable SaaS business.

I already read "Web Operations", "Kanban", "Agile Management for Software Engineering: Applying the Theory of Constraints for Business Results" but there is too little focus on SaaS IMHO.

@benhoskings
benhoskings / ruby-2-cert-issue-fix.sh
Last active March 21, 2016 18:30
Ruby 2.0 CA cert issue fix
# If you're having cert issues on ruby 2.0.0-p0, the issue is most likely that ruby can't
# find the required intermediate certificates. If you built it via rbenv/ruby-build, then
# the certs are already on your system, just not where ruby expects them to be.
# When ruby-build installs openssl, it installs the CA certs here:
~/.rbenv/versions/2.0.0-p0/openssl/ssl/cacert.pem
# Ruby is expecting them here:
$(ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE')
# Which for me, is this path:
@thomaswitt
thomaswitt / deploy_to_opsworks.rake
Last active April 25, 2016 02:59
Deploy to opsworks via rake
# Put this into lib/tasks
require 'rubygems'
require 'bundler'
require 'aws-sdk'
require 'socket'
require 'os'
if Rails.env.development?
@adamclerk
adamclerk / coverage.sh
Created November 9, 2015 04:23
gb coverage script
#!/bin/sh
# Generate test coverage statistics for Go packages.
#
# Works around the fact that `go test -coverprofile` currently does not work
# with multiple packages, see https://code.google.com/p/go/issues/detail?id=6909
#
# Usage: script/coverage [--html|--coveralls]
#
# --html Additionally create HTML report and open it in browser
# --coveralls Push coverage statistics to coveralls.io
@jstorimer
jstorimer / port_scanner.rb
Created August 30, 2012 03:40
Simple, parallel port scanner in Ruby built with connect_nonblock and IO.select.
require 'socket'
# Set up the parameters.
PORT_RANGE = 1..512
HOST = 'archive.org'
TIME_TO_WAIT = 5 # seconds
# Create a socket for each port and initiate the nonblocking
# connect.
sockets = PORT_RANGE.map do |port|
@mitchellh
mitchellh / new.go
Created April 5, 2013 06:29
Sudo wrapper that ships with Fusion provider for Vagrant, rewritten in Go.
// This is a dead simple wrapper that can have setuid set on it so that
// the sudo helper is run as root. It is expected to run in the same CWD
// as the actual Ruby sudo helper. Any arguments to this script are forwarded
// to the Ruby sudo helper script.
package main
import (
"fmt"
"os"
"path/filepath"
@sosedoff
sosedoff / Gemfile
Created July 27, 2012 05:12
Travis build notifications for Apple Notification Center
source :rubygems
gem 'terminal-notifier'
gem 'pusher-client', :git => 'git://github.com/pusher/pusher-ruby-client.git'
@roidrage
roidrage / wrap.rb
Last active May 3, 2018 04:46
A simple wrapper that forks off a child and prints out a progress dot every X seconds
#!/usr/bin/env ruby
pid = Kernel.fork do
`#{ARGV.join(" ")}`
exit
end
trap(:CHLD) do
print "\n"
exit