Skip to content

Instantly share code, notes, and snippets.

View mwarkentin's full-sized avatar
😃

Michael Warkentin mwarkentin

😃
View GitHub Profile
@mwarkentin
mwarkentin / watchman-pingdom.md
Last active August 29, 2015 13:57
django-watchman blog post
  1. Create a new check in Pingdom
  2. Give it a name that you'll remember, like accounting-watchman
  3. Set your check interval. We recommend 1m or 5m checks.
  4. Plug in the endpoint url, like `https://accounting.waveapps.com/watchman/
  5. Open up Optional Settings. Under Check for string, change the first dropdown to Should not contain, and add "ok": false in the input field
  6. Test your check, and then save it if everything looks good!
@mwarkentin
mwarkentin / 0_reuse_code.js
Created January 7, 2014 15:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

@mwarkentin
mwarkentin / Brewfile
Last active January 10, 2022 01:52
My Brewfile
# brew installs
install bash-completion
install git
install hub
install mackup
install node
install rbenv
install redis
install ruby-build
install sqlite
@mwarkentin
mwarkentin / math.go
Created May 20, 2013 17:37
Go test failure
package math
import m "math"
// Finds the minimum value in a slice of numbers
func Min(xs []float64) float64 {
if len(xs) == 0 {
return m.NaN()
}
min := xs[0]
@mwarkentin
mwarkentin / gist:4754740
Created February 11, 2013 14:36
Discourse vagrant log
mwarkentin@Michaels-iMac discourse (master) $ VAGRANT_LOG=DEBUG vagrant up
INFO global: Vagrant version: 1.0.6
INFO vagrant: `vagrant` invoked: ["up"]
DEBUG vagrant: Creating Vagrant environment
INFO environment: Environment initialized (#<Vagrant::Environment:0x000001020bfa88>)
INFO environment: - cwd: /Users/mwarkentin/dev/discourse
INFO environment: Home path: /Users/mwarkentin/.vagrant.d
INFO plugin: Searching and loading any available plugins...
INFO plugin: Loaded 0 plugins.
DEBUG vagrant: Loading environment
@mwarkentin
mwarkentin / gist:4677956
Created January 30, 2013 22:40
bower / grunt install issue
(wa-deploy)mwarkentin@Michaels-MacBook-Air waveaccounting (AC-2093-combine-move-transfer) $ sudo npm install -g bower grunt-cli@latest
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/bower
npm http 200 https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.6.tgz
npm http 200 https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower/-/bower-0.6.8.tgz
npm http 200 https://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.6.tgz
npm http 200 https://registry.npmjs.org/bower/-/bower-0.6.8.tgz
@mwarkentin
mwarkentin / gist:4590461
Created January 21, 2013 23:17
Playing with Clojure in Lighttable
;; Anything you type in here will be executed
;; immediately with the results shown on the
;; right.
(if true 5)
"hello world"
true
*file*
+
@mwarkentin
mwarkentin / payload.json
Created January 19, 2013 15:19
Sample payload from github-services
{
"compare": "http://github.com/mojombo/grit/compare/4c8124f...a47fd41",
"pusher": {
"name": "rtomayko"
},
"repository": {
"owner": {
"name": "mojombo",
"email": "[email protected]"
},
@mwarkentin
mwarkentin / Vangrantfile
Last active December 11, 2015 08:19
Vagrant set up for github-services
# -*- mode: ruby -*-
# vi: set ft=ruby :
HERE = File.join(File.dirname(__FILE__))
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
# Forward a port from the guest to the host, which allows for outside
# computers to access the VM, whereas host only networking does not.