Skip to content

Instantly share code, notes, and snippets.

View clowder's full-sized avatar

Chris Lowder clowder

  • London
View GitHub Profile
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active May 20, 2024 21:37
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@mtowers
mtowers / README.md
Last active February 24, 2022 17:19
Google Analytics Website Visitor Count Widget for Dashing with OAuth2 Authentication
@willurd
willurd / web-servers.md
Last active May 21, 2024 09:23
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@bf4
bf4 / ruby_learning.md
Last active July 17, 2021 08:06
Some Ruby Learning Resources
@mudge
mudge / active_record_helper.rb
Created June 26, 2012 15:49
A bare-bones spec helper for testing Active Record classes without the rest of Rails.
require "active_record"
require "database_cleaner"
require "rspec/rails/extensions"
# Note that this *will not load your Rails configuration* which means things like
# mass assignment protection by default, etc. will not be set.
RSpec.configure do |config|
config.before(:suite) do
ActiveRecord::Base.configurations =
@bhenerey
bhenerey / ideal ops.md
Created May 23, 2012 19:40
ideal ops checklist

In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:

Documentation

  • Accurate / up-to-date systems architecture diagram

  • Accurate / up-to-date network diagram

  • Out-of-hours support plan

  • Incident management plan

@marcinbunsch
marcinbunsch / codewall.badges.js
Created March 10, 2012 22:18
Coderwall - display missing badges
// How to use this:
// 1. Go to the desired profile page on coderwall, like http://coderwall.com/marcinbunsch
// 2. Paste this gist in the JS console
//
// You can also probably use this in greasemonkey and dot.js
//
// Also, it was tested in Chrome, Firefox and Safari, it probably will
// not work in IE, but I just don't care about it ;)
//
// UPDATE: Coderwall made changes to the site and I cannot retrieve the achievements, so they are hardcoded, taken from a cached version of the achievements page
#!/bin/sh
set -e
if [ -z "$1" ]; then
ruby-build --definitions
exit 1
fi
if [ -z "$2" ]; then
rev=1
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@mislav
mislav / TextMate gemspec snippet.png
Created April 5, 2010 15:24
TextMate snippet to quickly populate a fresh gemspec
TextMate gemspec snippet.png