Skip to content

Instantly share code, notes, and snippets.

this is the police

Mike Taylor miketaylr

this is the police
Block or report user

Report or block miketaylr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vladikoff / bugzilla.css
Last active Aug 29, 2015
GitHub-like CSS override skin for Bugzilla
View bugzilla.css
* {
font-family: Consolas, monospace!important;
body {
background: white;
font-size: 11px;
.bz_group_visibility_section {
DATE=`date +%Y%m%d`
echo "Downloading Alexa top site data for $COUNTRY_CODE"
View gist:7280160
if [ $1 == "android" ]; then
UA='Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0'
shift # removes the first argument if it's "android"
UA='Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0'
while [ "$#" -gt "0" ]
dan-blanchard /
Last active May 11, 2018
Quicker Travis builds that rely on numpy and scipy using Miniconda

For ETS's SKLL project, we found out the hard way that Travis-CI's support for numpy and scipy is pretty abysmal. There are pre-installed versions of numpy for some versions of Python, but those are seriously out of date, and scipy is not there are at all. The two most popular approaches for working around this are to (1) build everything from scratch, or (2) use apt-get to install more recent (but still out of date) versions of numpy and scipy. Both of these approaches lead to longer build times, and with the second approach, you still don't have the most recent versions of anything. To circumvent these issues, we've switched to using Miniconda (Anaconda's lightweight cousin) to install everything.

A template for installing a simple Python package that relies on numpy and scipy using Miniconda is provided below. Since it's a common s

View .bashrc
# MAC manipulators
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`'
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE'
jjgod /
Last active May 27, 2019
Using ccache for Mac builds


ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.

In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.


To install ccache with [homebrew](http://mxcl.

View javascript-type-stuff.js
// ============================================================
// Objects vs Primitives
// To make a long story short, use primitives wherever you can.
// ============================================================
// Primitive types: Null, Undefined, Number, Boolean, String.
var num1 = 9000,
num2 = new Number( 9000 ),
str1 = "hello world",
# Tips for jQuery Bug Patching
# There are some assumptions made here, one being that you're
# set up with some form of "localhost" http server and that it's running.
# -
# - sudo apt-get install apache2
# Get it running:
# On Mac:
View besen-console.js
* Console object for BESEN
* @author Dmitry A. Soshnikov <>
(function initConsole(global) {
// helpers
var getClass = Object.prototype.toString;
var timeMap = {};
View ie9build.rb
#!/usr/bin/env ruby
require 'ftools'
require 'fileutils'
require 'rubygems'
require 'RMagick'
include Magick
require 'open3'
def merge( files = [] )
You can’t perform that action at this time.