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 / 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 / Video - YouTube.md.txt
Last active January 26, 2024 08:49 — forked from ll14m4n/yt_video_url.md.txt
obsidian youtube templater
<%"---"%>
created: <% tp.file.creation_date('YYYY-MM-DD HH:MM:ssSS') %>
updated: <% tp.file.creation_date('YYYY-MM-DD HH:MM:ssSS') %>
cloud_host: "pcloud"
tags:
- video
- youtube
<%*
/*
REMEMBER: Save this file as 'Video - YouTube.md' (strip the '.txt' extension)
@ScottJWalter
ScottJWalter / md-renderer.conf
Last active January 22, 2024 11:12 — forked from afeish/md-renderer.conf
Nginx config to render markdown files (client side) #nginx #markdown
location /__special {
internal;
allow all;
root /usr/share/nginx/html/__special;
}
location = /__md_file {
internal;
allow all;
@ScottJWalter
ScottJWalter / Connecting by SSH from Android Termux to Desktop and vice-versa.md
Last active January 22, 2024 11:14 — forked from evandrocoan/Connectiong by SSH from Android Termux to Desktop and vice-versa.md
Connecting by SSH from Android Termux to Desktop and vice-versa #ssh #android #termux
# Connectiong by SSH from Android Termux to Desktop and vice-versa.md
# Copyright (c) 2019 Evandro Coan
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
@ScottJWalter
ScottJWalter / Obsidian Git-Mobile.md
Last active January 22, 2024 11:14 — forked from yuvve/Obsidian Git-Mobile.md
Automatically sync notes to and from git repository whenever you open and close Obsidian on mobile. #obsidian #github

How to automatically sync Obsidian between Github and Android with Termux and Tasker

I use Obsidian git on PC, and this workaround (since the plugin doesn't support mobile) to seamlessly* sync my notes to and from my phone. Using these instructions you create an automation for pulling every time you open Obsidian, and pushing every time you close it.

* you can still get merge conflicts...

Downsides of using this

Merge conflicts are not handled and will prevent pushing and pulling. Basically just make sure you only work on your repository from one device at a time.

Preparation

  1. Install Tasker.
  2. Install Termux.
@ScottJWalter
ScottJWalter / Setup.md
Last active January 22, 2024 11:15 — forked from txoof/Setup.md
Setup Termux on Android #termux #android

Termux & Macrodroid Setup on Android

Setup termux for ssh, scripts, tasker/macrodroid integration

Install:

Note If secure Google accounts are active on the device, it is not possible to install apps from Fdroid Store

  • Install The following from the Fdroid Store:
    • Termux
    • Termux:API
  • Termux:Widget
@ScottJWalter
ScottJWalter / import-github-stars-to-raindrop.sh
Last active January 22, 2024 11:16 — forked from davenicoll/import-github-stars-to-raindrop.sh
Import github stars into raindrop.io #github #raindrop
#!/bin/bash
GITHUB_USER="..."
GITHUB_TMP_FILE="$HOME/github-stars.json"
RAINDROP_API_TOKEN="..."
GITHUB_TOKEN="..."
GITHUB_API_HEADER_ACCEPT="Accept: application/vnd.github.star+json" # "Accept: application/vnd.github.v3+json"
GITHUB_API_VERSION="X-GitHub-Api-Version: 2022-11-28"
sanitize_string() {
@ScottJWalter
ScottJWalter / output.js
Last active January 22, 2024 11:16 — forked from derhuerst/output.js
how fetch a GitHub user's stars #github #api
[
{
owner: 'bcoe',
repo: 'top-npm-users',
description: ':star: Generate a list of top npm users by based on monthly downloads.',
language: 'JavaScript',
isFork: false,
stargazers: 27,
watchers: 27
}
@ScottJWalter
ScottJWalter / gist:b5fdd923f77f7e300c9c6a415a6b3f80
Last active January 22, 2024 11:17 — forked from kettle11/gist:33413b02b028b7ddd35c63c0894caedc
Chat GPT World Builder Prompt #gpt #prompt
You are Whimsy, a world-building creation assistant. You are going to help me detail and describe an imaginary world.
Carefully adhere to the following steps for our conversation. Do not skip any steps!:
Main steps:
1. Introduce yourself. Ask what sort of world I'd like to build, offer some ideas including fantasy, scifi, and cyberpunk. Present the ideas as a numbered list with emojis. Also offer at least 2 other world types. Wait for my response.
2. Choose a name for the world. Present alternatives names as a numbered list with emojis or let me propose my own option. Wait for my respinse.
3. Choose a secondary theme for the world or let me propose my own options. Present alternative themes with a numbered list with emojis. Wait for my response.
4. Briefly describe the world and ask if I'd like to make changes. Tell me what the year within the world is. Do not set the year to the real world current year. Wait for my response.