Skip to content

Instantly share code, notes, and snippets.

View ScottJWalter's full-sized avatar
🔮
Particle. Wave. It's all data.

Scott Walter ScottJWalter

🔮
Particle. Wave. It's all data.
View GitHub Profile
@ScottJWalter
ScottJWalter / Speech Recognition.ahk
Created April 24, 2024 17:52 — forked from Uberi/Speech Recognition.ahk
Speech recognition with Microsoft's SAPI. A simple SpeechRecognizer class provides a quick and easy way to use speech recognition in your scripts. Inspired by some [prototype code](http://www.autohotkey.com/board/topic/24490-voice-recognition-com/) made a long time ago.
#NoEnv
#Warn All
#Warn LocalSameAsGlobal, Off
#Persistent
/*
Speech Recognition
==================
A class providing access to Microsoft's SAPI. Requires the SAPI SDK.
@ScottJWalter
ScottJWalter / gist:7a44d6d081ec065f1df7ea5aea72edf4
Last active April 23, 2024 01:54
n8n_on_termux.sh #n8n #termux
#!/data/data/com.termux/files/usr/bin/sh
# setup
pkg install root-repo
pkg update
# install python3
pkg install python3
# install nodejs (LTS)
@ScottJWalter
ScottJWalter / install-ffmpeg-WSL.sh
Created August 22, 2018 19:55
Install FFMpeg under Windows Subsystem for Linux
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg
@ScottJWalter
ScottJWalter / Obsidian.desktop
Created April 9, 2024 23:58
Set an icon for Obsidian AppImage (only for Linux users)
# ~/.local/share/applications/Obsidian.desktop
[Desktop Entry]
Type=Application
Name=Obsidian
Comment=Knowledge Management Application
Exec=</path/to/the.obsidian/appimage/file>
Icon=</path/to/the/required/icon/file.png>
Terminal=false
StartupWMClass=obsidian
@ScottJWalter
ScottJWalter / install_pcloud_cli.sh
Last active April 6, 2024 21:06
Install the pCloud CLI tool
#!/bin/sh
sudo apt-get install \
build-essential \
cmake \
fuse \
git \
libboost-program-options-dev \
libboost-system-dev \
libfuse-dev \
@ScottJWalter
ScottJWalter / mozlz4a.py
Created February 6, 2024 06:36 — forked from Tblue/mozlz4a.py
MozLz4a compression/decompression utility
#!/usr/bin/env python3
# vim: sw=4 ts=4 et tw=100 cc=+1
#
####################################################################################################
# DESCRIPTION #
####################################################################################################
#
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to
# compress e. g. bookmark backups (*.jsonlz4).
#
@ScottJWalter
ScottJWalter / create_repo_with_hub.sh
Created February 2, 2024 17:15
create github repo using hub
#!/usr/bin/env bash
git setup $1
git flow init --defaults
hub create
git push -u origin HEAD
@ScottJWalter
ScottJWalter / wordpress_themosis_setup.sh
Created February 2, 2024 17:12
Set up a Themosis (WordPress) Project
#!/usr/bin/env bash
cd ~/projects
composer create-project themosis/themosis $PROJECT_NAME
cd $PROJECT_NAME
git setup
git flow init --defaults
hub create -p
git push -u origin HEAD
@ScottJWalter
ScottJWalter / calibre_import.bat
Last active February 1, 2024 16:22
Batch file to bulk import a folder of files into Calibre with more extensive logging. #calibre #windows
@echo off
setlocal enabledelayedexpansion
rem The following variables set up the environment
set "work_drive=D:"
set "dir_in=D:\<folder-to-process>"
set "dir_out=D:\<processed-folder>"
set "log_file=_import.log"
@ScottJWalter
ScottJWalter / toggle_microphone.ahk
Last active February 1, 2024 07:28
Toggles the system default microphone through AutoHotKey
; ---------------------------------------------------------------------------------------------------------------------
; Ctrl+Alt+SPECIAL+M --> Toggle Microphone
;
^!#m:: SoundSetMute !SoundGetMute(, "Microphone"),, "Microphone"
; ---------------------------------------------------------------------------------------------------------------------
; Ctrl+Alt+Shift+SPECIAL+M --> Turn Microphone OFF
;
^!+#M:: SoundSetMute true,, "Microphone"