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 / 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 / toggle_master_mute.ahk
Last active February 1, 2024 07:12
Toggle Master Audio mute using AutoHotKey
; ---------------------------------------------------------------------------------------------------------------------
; Ctrl+Alt+SPECIAL+K --> Toggle Audio
;
^!#k:: SoundSetMute !SoundGetMute()
; ---------------------------------------------------------------------------------------------------------------------
; Ctrl+Alt+Shift+SPECIAL+K --> Turn Audio OFF
;
^!+#K:: SoundSetMute true
@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"
@ScottJWalter
ScottJWalter / starship.lua
Last active January 28, 2024 05:21
starship clink config on windows
function starship_transient_rprompt_func(prompt)
return io.popen("starship module time"):read("*a")
end
load(io.popen('starship init cmd'):read("*a"))
@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 / obsidian-templater-env.js
Last active January 25, 2024 09:45
Script for Obsidian Templater plugin to simulate environment variables
/*
* emv.js -- A simple "environment variable simulator" for Obsidian Templater
*
* To use this from inside an Obsidian Templater script, drop this into the
* scripts folder (as defined in templater settings). Name it whatever you wish
* (Obsidian doesn't "namespace" javascript by file, it's all one global space).
*
* Now, inside your templater script:
*
* value = tp.user.env({ key: "key_name" });