Skip to content

Instantly share code, notes, and snippets.

Helping improve the Windows developer platform.

Rich Turner bitcrazed

Helping improve the Windows developer platform.
View GitHub Profile
bitcrazed / settings.json
Last active Feb 1, 2021
Windows Terminal Settings
View settings.json
// This file was initially generated by Windows Terminal Preview 1.4.2652.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see:
"$schema": "",
bitcrazed / hello.bat
Created Aug 12, 2020
Simple Cmd batch script containing numeric Unicode code-points and VT (color) sequences
View hello.bat
@echo off
chcp 65001 > nul
call :setESC
REM: Note - No easy way to escape a numeric Unicode code-point so embed emoji etc. by copy/paste or Win10 emoji keyboard (Win + .)
echo 🎵 Hello %ESC%[31mWorld%ESC%[0m, %ESC%[32mis%ESC%[0m %ESC%[33mit%ESC%[0m %ESC%[34mme%ESC%[0m %ESC%[35myou're%ESC%[0m %ESC%[36mlooking%ESC%[0m %ESC%[37mfor%ESC%[0m? 🎶
REM `setESC` courtesy of in
bitcrazed / hello.ps1
Created Aug 12, 2020
Simple PowerShell script containing numeric Unicode code-points and VT (color) sequences
View hello.ps1
$esc = [char]27
"`u{1F3B5} Hello $esc[31mWorld$esc[0m, $esc[32mis$esc[0m $esc[33mit$esc[0m $esc[34mme$esc[0m $esc[35myou're$esc[0m $esc[36mlooking$esc[0m $esc[37mfor$esc[0m? `u{1F3B6}"
View boxstarter-lite.ps1
# Description: Boxstarter Script
# Author: Rich Turner <>
# Last Updated: 2018-10-26
# Run this Boxstarter by calling the following from an **ELEVATED PowerShell instance**:
# `set-executionpolicy Unrestricted`
# `. { iwr -useb } | iex; get-boxstarter -Force`
# `Install-BoxstarterPackage -DisableReboots -PackageName <URL-TO-RAW-GIST>`
#---- TEMPORARY ---
View proc.go
package main
import (
type backgroundProcess struct {
readPipeHandle syscall.Handle
bitcrazed /
Last active Jun 1, 2019
Script to setup basic Ubuntu dev environment, esp. for Ubuntu on Windows Subsystem for Linux (WSL)
# Author: Rich Turner []
# Source:
# License: WTFPL:
# Instructions: Install using the following: $ source <(curl -s <URL-TO-THIS-RAW-FILE>)
# Let's get apt up to date:
sudo apt update -y
# Grab some of the essentials
sudo zypper install -y fortune cowsay ruby-dev htop caca-utils gcc gcc-c++ make
# Grab some fun tools from
sudo zypper addrepo
sudo zypper refresh
sudo zypper install cmatrix
# LOLCAT ... because SUSE doesn't have a Zypper package for Lolcat!

Keybase proof

I hereby claim:

  • I am bitcrazed on github.
  • I am 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:

bitcrazed / .vimrc
Last active Nov 8, 2020
Vim settings for Bash on Windows & Windows Console
View .vimrc
set number
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set mouse=a
syntax enable
bitcrazed /
Created Feb 1, 2016
Rasberry Pi Internet Connection Speed Tweeter
# Based on
import os
import sys
import csv
import datetime
import time
import twitter