Skip to content

Instantly share code, notes, and snippets.

View mrwm's full-sized avatar

William Chung mrwm

View GitHub Profile
[
{
"switchMount": "cherry",
"switchBrand": "gateron",
"plate": false,
"pcb": true
},
[
{
"y": 1.5,
@mrwm
mrwm / Configuration.h.diff
Last active December 31, 2022 22:26
Configuration changes for marlin 2.1.1 to 2.1.2 (2.1.1 < - > 2.1.2)
40c40
< #define CONFIGURATION_H_VERSION 02010100
---
> #define CONFIGURATION_H_VERSION 02010200
141c141
< #define CUSTOM_MACHINE_NAME "ToasterPop"
---
> #define CUSTOM_MACHINE_NAME "RoomHeater"
146a147,148
> // @section stepper drivers
@mrwm
mrwm / index.html
Created February 10, 2021 20:48
Art103 template html for google docs embeds
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
<meta name="description" content="The description">
<meta name="author" content="Author">
<meta name="viewport" content="width=device-width, initial-scale=1">
@mrwm
mrwm / sane-config
Created September 6, 2019 23:01
sane-config in libsane-dev from jessie amd64 package (libsane-dev_1.0.24-8+deb8u2_amd64)
#!/bin/sh
#
# This script is part of SANE, <URL:http://www.sane-project.org/>
#
# Send bugreports and other requests to sane-devel@lists.alioth.debian.org
PACKAGE="sane-backends"
scriptname="sane-config"
prefix="/usr"
@mrwm
mrwm / math42.bat
Last active March 17, 2018 00:33
extra credit for math 42 @sjsu
@ECHO OFF
echo This script is only accurate up to 45.
echo Anything larger will be an overflow.
:vars
set /p stop="Enter end number: "
set num1=0
set num2=0
set c=0
@mrwm
mrwm / Mouse_Recorder.ahk
Last active January 10, 2017 06:49
A mouse recording macro
; http://www.autohotkey.com/forum/viewtopic.php?t=64464
; CTRL+SHIFT+R: Start Recording
; CTRL+SHIFT+S: Stop Recording/Playback
; CTRL+SHIFT+P: Playback
{ ; Auto-Execute
#NoTrayIcon
SetBatchLines, -1
CoordMode, Mouse, Screen
Gui, +ToolWindow +AlwaysOnTop
@mrwm
mrwm / speech2txt-bing.sh
Last active January 2, 2017 05:02
Voice Recognition for the Raspberry Pi (STT)
#!/bin/bash
# Usage: ./speech2txt-bing.sh
# Record and send audio file through Bing speech recognition API.
#
# The original script can be found here:
# https://stackoverflow.com/questions/38139809/408-request-timed-out-microsoft-speech-to-text/41111609#41111609
#
SUBSCRIPTION_KEY=<ENTER_SUBSCRIPTION_KEY>
LOCALE=en-US
SCENARIOS=ulm
@mrwm
mrwm / OpenToonz.sh
Last active January 16, 2023 01:29
A script to automate the installation of OpenToonz on debian and friends
#!/bin/bash
# Following the steps and help from the steps found here:
# https://github.com/opentoonz/opentoonz/blob/master/doc/how_to_build_linux.md
#
# and here:
#
# https://github.com/opentoonz/opentoonz/issues/866
# Get everything you would need
echo "###########################"
@mrwm
mrwm / fuck
Last active March 9, 2016 07:47
.................####
...............##....##
...............##....##
...............##....##
...............##....##
...............##....##
...........######....######
.........##....##....##....####
.........##....##....##....##..##.
.######..##....##....##....##....##
@mrwm
mrwm / moo.vbs
Created March 4, 2016 05:56
Creates a bat script animation and launches it
set wshshell = wscript.CreateObject("wScript.Shell")
' Make cow script:
wshshell.run "Notepad"
wscript.sleep 400
' ### COW ONE ###
' @ECHO OFF
wshshell.sendkeys "@"