Skip to content

Instantly share code, notes, and snippets.

View stevegt's full-sized avatar

Steve Traugott stevegt

View GitHub Profile
@stevegt
stevegt / makekey.py
Last active May 9, 2022 18:04 — forked from tdfischer/makekey.py
Schlage 5 Cylinder Key Generator from https://noisebridge.net/wiki/Key_Milling
#!/usr/bin/env python
# makekey.py - A key making tool
# This program will accept a pin configuration for a Schalge 5 Pin lock and produce GCode to mill out the corresponding key.
#
# For example, this will produce a bump key:
# $ ./makekey.py 99999
#
# This could produce a key to something else:
# $ ./makekey.py 38457
#
@stevegt
stevegt / auto.sshfs
Created September 5, 2019 01:00 — forked from lordtangent/auto.sshfs
universal sshfs Automount
#!/bin/bash
# /etc/auto.sshfs automount script
# This file must be executable to work! ( chmod 755 )
key="${1/%:/}"
user="${key/@*/}"
t="${key/*@/}"
server="${t/:*/}"
tp="${t/*:/}"
port="${tp/\/*/}"
@stevegt
stevegt / .block
Last active January 13, 2019 02:16 — forked from venkat/.block
US map shipping animation
license: gpl-3.0
height: 600
border: no
@stevegt
stevegt / .block
Last active January 13, 2019 01:50 — forked from piwodlaiwo/.block
World Map with Graticule Labels
license: mit
@stevegt
stevegt / global.csv
Last active February 19, 2017 15:14 — forked from tomgp/global.csv
Convolution: smoothing noisy data
year annual_mean
1880 -0.31
1881 -0.22
1882 -0.28
1883 -0.3
1884 -0.33
1885 -0.32
1886 -0.29
1887 -0.35
1888 -0.28
@stevegt
stevegt / windows10qemu.sh
Last active June 19, 2020 10:41 — forked from Manouchehri/windows10qemu.sh
Running Windows 10 in a UEFI enabled QEMU environment with KVM.
# Installing
qemu-system-x86_64 -bios /usr/share/ovmf/ovmf_x64.bin -enable-kvm -cpu host -smp 4 -m 2048 -cdrom ~/Downloads/Win10_English_x64.iso -net nic,model=virtio -net user -drive file=~/vm/win10.hd.img.raw,format=raw,if=virtio -vga qxl -drive file=~/Downloads/virtio-win-0.1.105.iso,index=1,media=cdrom
# Running
qemu-system-x86_64 -bios /usr/share/ovmf/ovmf_x64.bin -enable-kvm -cpu host -smp 4 -m 4096 -net nic,model=virtio -net user -drive file=~/vm/win10.hd.img.raw,format=raw,if=virtio -vga qxl -usbdevice tablet -rtc base=utc