Skip to content

Instantly share code, notes, and snippets.

@shabegom
shabegom / Tana QuickAdd.js
Last active July 5, 2023 23:33
Scriptable (iOS) Script for running a Tana QuickAdd Shortcut
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: magic;
/*
SETUP INTSTRUCTIONS
0. Install the Tana QuickAdd Shortcut: https://www.icloud.com/shortcuts/74ce7f48d6d5493c8c0ba563c5f040d6
1. In Tana, Create a Node where you'd like quick added nodes to go.
- quick added nodes will appear as children of this one
- I put mine off my workspace root
@davidteren
davidteren / nerd_fonts.md
Last active June 25, 2024 22:01
Install Nerd Fonts via Homebrew [updated & fixed]
@taoy
taoy / config
Last active October 1, 2023 09:13
vcxsrv + i3 on WSL/WSL2 Debian
# .config/i3/config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
@bradleybossard
bradleybossard / titleUrlMarkdownClip.js
Created December 5, 2015 21:09
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;
@jarlg
jarlg / sing.html
Created October 3, 2015 15:48
js example using webaudio to analyse mic input to control an oscillator
<!DOCTYPE html>
<html>
<head></head>
<body>
<script type=text/javascript>
navigator.getUserMedia = navigator.getUserMedia
|| navigator.webkitGetUserMedia
|| navigator.mozGetUserMedia;
@chuckhoupt
chuckhoupt / mailpage.sh
Last active June 18, 2021 19:57
Bash shell script to mail a copy of a web page's HTML so it will render correctly in most native email programs (but not in web-mail).
#!/bin/bash
# Examples:
#
# mailpage.sh http://example.com chuck@habilis.net 'An Example Page'
# mailpage.sh http://example.com chuck@habilis.net 'Passworded Page' --user=john --password=xxxxx
set -eu
USAGE=$'\n'"Usage: $(basename $0) URL address subject [ wget options ]"