Skip to content

Instantly share code, notes, and snippets.

View damieng's full-sized avatar
🏠
Working from home

Damien Guard damieng

🏠
Working from home
View GitHub Profile
@sogaiu
sogaiu / build-wasm.bat
Last active January 17, 2023 10:31
rough translation of tree-sitter's build-wasm script
@echo on
mkdir target\scratch
REM need control to return, so use cmd /c
cmd /c ^
emcc ^
-s WASM=1 ^
-s TOTAL_MEMORY=33554432 ^
-s ALLOW_MEMORY_GROWTH=1 ^
@damieng
damieng / Compaq-G80-1800.kbd.json
Last active December 13, 2016 03:55
Compaq G80-1800
[
{
"backcolor": "#000000",
"name": "Compaq G80-1800",
"author": "Damien Guard",
"background": {
"name": "ABS WFK",
"style": "background-image: url('/bg/plastic/abs-wfk.jpg');"
},
"switchMount": "cherry",
@damieng
damieng / Lightsaver-G80-1800-style.kbd.json
Last active December 16, 2016 18:27
Lightsaver G80-1800 style
[
{
"name": "Lightsaver G80-1800 style",
"author": "Damien Guard",
"background": {
"name": "Steel brushed dark",
"style": "background-image: url('/bg/metal/iron_texture1745.jpg');"
},
"switchMount": "cherry",
"switchBrand": "cherry",
@damieng
damieng / fix-wos-screenshots.user.js
Last active March 24, 2020 08:49
Make the World of Spectrum screenshots work again (a Greasemonkey script)
// ==UserScript==
// @name Fix WoS screenshots
// @namespace http://damieng.com
// @version 0.1
// @description Make the World of Spectrum screenshots work again
// @author Damien Guard
// @include https://www.worldofspectrum.org/*
// ==/UserScript==
var images = document.getElementsByTagName('img');
@marcind
marcind / gist:9512656
Last active November 11, 2020 14:58
Disable "Always start when debugging" for all projects in a solution
# Execute this in Nuget powershell console
get-project -all | %{ $_.Properties | ?{ $_.Name -eq "WebApplication.StartWebServerOnDebug"} | %{ $_.Value = $False } }
#
@bradwilson
bradwilson / get-hash.ps1
Created January 31, 2013 04:32
Hashing function for PowerShell
param(
[string]$pattern = "*.*",
[ValidateSet("md5", "sha1", "sha256", "sha384", "sha512")]$algorithm = "sha1",
[switch]$recurse
)
[Reflection.Assembly]::LoadWithPartialName("System.Security") | out-null
if ($algorithm -eq "sha1") {
$hashimpl = new-Object System.Security.Cryptography.SHA1Managed
@bradwilson
bradwilson / gist:4215933
Last active August 17, 2020 16:46
.gitconfig
[user]
name = Brad Wilson
email = dotnetguy@gmail.com
[alias]
a = add -A
abort = rebase --abort
amend = commit --amend -C HEAD
bl = blame -w -M -C
br = branch
cat = cat-file -t