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 / notes2md.bash
Created September 15, 2024 16:46
Convert Samsung Notes to Markdown
#!/bin/bash
#
# Notes2MD -- Convert Samsung Notes to markdown
#
# This script converts Samsung Notes to markdown. Export one or more
# notes as PDF files from inside the app (I haven't found a way to automate
# this, yet) into the ${DIR_IN} folder, then run this script. It:
#
# 1. Converts the PDF to a sequence of PNG image files (placing those
# images and the original pdf in an "assets/" subfolder)
@ScottJWalter
ScottJWalter / Convert HTML to Markdown.md
Last active September 13, 2024 21:56
Convert HTML to Markdown

Convert HTML to Markdown

This is a simple bash script to convert one or more HTML files to markdown format. I created it to quickly convert a Medium export for import into my Obsidian vault.

Prerequisites

Usage

@ScottJWalter
ScottJWalter / HowToOTGFast.md
Created July 11, 2024 00:00 — forked from gbaman/HowToOTGFast.md
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)

More details - http://blog.gbaman.info/?p=791

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH i

@ScottJWalter
ScottJWalter / samsung_remote.py
Created July 5, 2024 17:01 — forked from danielfaust/samsung_remote.py
Samsung TV Remote Control Python Script
import time
import socket
import base64
src = '192.168.1.2' # ip of remote
mac = '00-AB-11-11-11-11' # mac of remote
remote = 'python remote' # remote name
dst = '192.168.1.3' # ip of tv
app = 'python' # iphone..iapp.samsung
@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 / 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