Skip to content

Instantly share code, notes, and snippets.

View bitcrazed's full-sized avatar
💭
Helping improve the Windows developer platform.

Rich Turner bitcrazed

💭
Helping improve the Windows developer platform.
View GitHub Profile
@bitcrazed
bitcrazed / gist:2249725
Created March 30, 2012 08:33
GIT script to rewrite committer's email addresses
git filter-branch -f --env-filter "GIT_AUTHOR_EMAIL='newemail'; GIT_COMMITTER_EMAIL='newemail';" HEAD
@bitcrazed
bitcrazed / keybase.md
Created August 13, 2014 22:05
keybase.md

Keybase proof

I hereby claim:

  • I am bitcrazed on github.
  • I am bitcrazed (https://keybase.io/bitcrazed) on keybase.
  • I have a public key whose fingerprint is AB76 BFE8 E943 3B72 FE82 CAD0 5B36 FECE 9012 1CEB

To claim this, I am signing this object:

@bitcrazed
bitcrazed / IE-JSON.reg
Created September 30, 2014 15:12
Configure IE to display JSON in the browser
Windows Registry Editor Version 5.00
;
; Tell IE to display JSON documents in the browser.
; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .
; Source: http://stackoverflow.com/questions/2483771/how-can-i-convince-ie-to-simply-display-application-json-rather-than-offer-to-do
;
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00
@bitcrazed
bitcrazed / boxstarter.ps1
Last active November 3, 2022 21:31
Boxstarter script
# Description: Boxstarter Script
# Author: Rich Turner <rich@bitcrazed.com>
# Last Updated: 2019-07-08
#
# Run this Boxstarter by calling the following from an **ELEVATED PowerShell instance**:
# `set-executionpolicy Unrestricted`
# `. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force`
# `Install-BoxstarterPackage -DisableReboots -PackageName <URL-TO-RAW-GIST>`
#---- TEMPORARY ---
@bitcrazed
bitcrazed / boxstarter-vm.ps1
Last active August 29, 2015 14:08
Windows VM Boxstarter
# Description: Boxstarter Virtual Machine Script
# Author: Rich Turner <rich@bitcrazed.com>
# Last Updated: 2014-11-06
#--- Windows subsystems/Features ---
# cinst Microsoft-Hyper-V-All -source windowsFeatures
# cinst IIS-WebServerRole -source windowsfeatures
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
@bitcrazed
bitcrazed / gist:187752188cfc07d40158
Last active August 29, 2015 14:08
Start a BoxStarter session
START http://boxstarter.org/package/nr/url?<URL to RAW Gist>
# Physical BoxStarter
START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/bitcrazed/ee67ef93381d7f29d20e/raw/6c1a8bb7416e86772d7919be57498d843206724b/boxstarter-vm.ps1
# VM BoxStarter
START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/bitcrazed/ee67ef93381d7f29d20e/raw/16fe032551357ed51f8fca22eb3bca1f90724a7e/boxstarter-vm.ps1
@bitcrazed
bitcrazed / clojure-match.clj
Last active March 7, 2020 21:41 — forked from ckirkendall/clojure-match.clj
Language Comparison: Simple AST in Clojure, F#, Ocaml, Scala, Clojure, Ruby, C++, C#, Go, Haskell and others
(use '[clojure.core.match :only [match]])
(defn evaluate [env [sym x y]]
(match [sym]
['Number] x
['Add] (+ (evaluate env x) (evaluate env y))
['Multiply] (* (evaluate env x) (evaluate env y))
['Variable] (env x)))
(def environment {"a" 3, "b" 4, "c" 5})
@bitcrazed
bitcrazed / InternetConnectionTweeter.py
Created February 1, 2016 20:25
Rasberry Pi Internet Connection Speed Tweeter
#!/usr/bin/python
# Based on https://www.reddit.com/r/technology/comments/43fi39/i_set_up_my_raspberry_pi_to_automatically_tweet/
import os
import sys
import csv
import datetime
import time
import twitter
@bitcrazed
bitcrazed / .vimrc
Last active May 7, 2022 15:06
Vim settings for Bash on Windows & Windows Console
set number
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set mouse=a
syntax enable

Keybase proof

I hereby claim:

  • I am bitcrazed on github.
  • I am bitcrazed (https://keybase.io/bitcrazed) on keybase.
  • I have a public key whose fingerprint is 3020 64B4 AAA9 C645 7035 A9DF 8EA1 F422 9BFA 51FF

To claim this, I am signing this object: