Skip to content

Instantly share code, notes, and snippets.

View electblake's full-sized avatar
🧙

Blake E electblake

🧙
View GitHub Profile
@johncf
johncf / windows-dev-setup.md
Last active January 31, 2026 18:55
Setting up Windows for development (Scoop, MSys2, Alacritty, BuildTools etc.)

Scoop

To install Scoop (official docs), execute in Powershell:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh -outfile 'install-scoop.ps1'
get-help .\install-scoop.ps1
.\install-scoop.ps1
@acarril
acarril / init.lua
Last active March 2, 2026 03:07
Global macOS hotkey for Wezterm
-- Function: Center and focus the main window of an application
function centerAndFocusMainWindow(app)
local mainWindow = app:mainWindow()
if mainWindow then
mainWindow:centerOnScreen(nil, true, 0)
mainWindow:focus()
end
end
-- Function: Watch for a specific application launch and execute a callback when launched
@guest271314
guest271314 / javascript_engines_and_runtimes.md
Last active June 4, 2026 01:17
A list of JavaScript engines, runtimes, interpreters

V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.

SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on

#!/bin/sh
# Wakka: A package manager wrapper.
# Provides a consistent interface across multiple package managers.
# Currently supports: apt (Debian/Ubuntu), yum (Red Hat/CentOS),
# dnf (Fedora), apk (Alpine), and brew (macOS).
WAKKA_VERSION="1.0.0"
print_help() {
@matthughes
matthughes / md_slack.rb
Last active April 3, 2025 21:03 — forked from h6y3/md_slack.rb
Obsidian Markdown to Slack
#!/usr/bin/env ruby
# Read from stdin rather than file.
file_data = $stdin.read
# Upper case title
re = /^#* .+/
file_data.gsub!(re) { |match| "*#{match.upcase}*"}
# Mutate todos
@NatLee
NatLee / restart_docker.sh
Last active May 1, 2026 11:36
Synology DSM 7.x - A way to restart service of docker
# Use new Synology CLI tool -> `synopkgctl`
#usage: synopkgctl <command> [...]
#command:
# enable <package>
# disable <package>
# setup <package>
# start <package>
# stop <package>
# teardown <package>
@DartPower
DartPower / ms-office-dl-links
Last active June 18, 2026 12:31
MS Office Download Links
@jscyo
jscyo / helper.js
Last active September 28, 2022 16:28
Helper functions for Auth0 to SuperTokens migration
let auth0Domain = "https://yourdomain.com"
let userIdMappingFile = "/userDataMapping.json"
let doesUserExistInAuth0DataBase = async (email, password) => {
let config = {
method: "post",
url: auth0Domain + "/oauth/token",
headers: {
@h6y3
h6y3 / md_slack.rb
Last active April 3, 2025 21:03
Obsidian Markdown to Slack
#!/usr/bin/env ruby
filename = "/Users/hyuan/Development/bin/tmp/tmp_slack_md.txt"
file = File.open(filename)
file_data = file.read
# Upper case title
re = /^#* .+/
file_data.gsub!(re) { |match| "*#{match.upcase}*"}
@kepano
kepano / obsidian-web-clipper.js
Last active June 13, 2026 15:45
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */