Skip to content

Instantly share code, notes, and snippets.

View extratone's full-sized avatar
🗿
sudo exit

David Blue extratone

🗿
sudo exit
View GitHub Profile
@extratone
extratone / podcast-noter.scpt
Created January 15, 2022 16:22 — forked from jasonsnell/podcast-noter.scpt
Podcast Noter AppleScript
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
# Sample Keyboard Maestro macros at
# <https://sixcolors.com/wp-content/uploads/2022/01/Podcast-Noter-Macros.kmmacros.zip>
on run argv
try
set theNote to (item 1 of argv)
on error
@extratone
extratone / tot.sh
Created January 16, 2022 11:14 — forked from chockenberry/tot.sh
A shell script for Tot
#!/bin/sh
basename=`basename $0`
if [ -z "$*" ]; then
echo "usage: ${basename} <dot> [ -o | -r | <file> | - ]"
echo ""
echo "options:"
echo " -o open dot in window with keyboard focus"
echo " -r read contents of dot"
@extratone
extratone / 1-1000.txt
Created January 16, 2022 23:38 — forked from deekayen/1-1000.txt
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that
@extratone
extratone / mdTableGenerator.js
Created January 17, 2022 22:44 — forked from njjerrysmith/mdTableGenerator.js
TextExpander Javascript Markdown Table Generator
var rows = Number(%filltext:name=bodyrows:default=2:width=5%); //body of table rows
var cols = Number(%filltext:name=cols:default=4:width=5%); //columns of table
var rows = rows + 2; //add a rows to account for header and seperator
var text = ''; //variable to store the output
for (rCount = 1; rCount <= rows; rCount++) {
for (cCount = 1; cCount <= cols; cCount++) {
if (rCount == 1) { // Header Row Output
if (cCount == 1) {
text += '**%|** |';
@extratone
extratone / Safari - Open specific link on the webpage.applescript
Created January 18, 2022 07:57 — forked from logic2design/Safari - Open specific link on the webpage.applescript
This Applescript will open the first URL link on the page that matches a search value
@extratone
extratone / docsify-markdown2pdf.sh
Created January 20, 2022 17:02 — forked from kernoeb/docsify-markdown2pdf.sh
Build a PDF file from Docsify structure (markdown)
# Install deps
# sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
# sudo apt-get install -y texlive-xetex
# sudo apt install -y ghostscript
# wget https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb
# sudo apt install -y ./pandoc-2.9.2.1-1-amd64.deb
# rm ./pandoc-2.9.2.1-1-amd64.deb
#cp fonts/*.ttf ~/.fonts # I use Google Fonts (Roboto -> please see line 8)
cd book # directory where markdown files can be found
@extratone
extratone / gist:e4fdacf7c45ce3c9127631bee9566bc6
Created February 14, 2022 19:24 — forked from voidfiles/gist:2289046
Simplenotes new iOS URL scheme
Hey Alex, there aren't any docs yet. Here's the info:
simplenote://new?content=encodedContent&tag=encodedTag
The parameters are optional. If omitted, Simplenote will open to a new, blank note.
@extratone
extratone / iphone_call_link.html
Created March 24, 2022 18:19 — forked from brianbroken/iphone_call_link.html
HTML: iPhone Calling and Texting Links
@extratone
extratone / run_selection_as_clipping.applescript
Created April 14, 2022 07:16 — forked from rwilcox/run_selection_as_clipping.applescript
Run the current selection as a BBEdit clipping
tell application "BBEdit"
set theScript to selection as text
set clippingFileRef to (path to temporary items as string) & "clipping_as_selection"
--close access clippingFileRef
set fileref to open for access file clippingFileRef with write permission
set eof of fileref to 0 -- clear the file
write theScript to fileref
close access fileref
@extratone
extratone / open_here_in_shell_worksheet.applescript
Created April 14, 2022 07:25 — forked from rwilcox/open_here_in_shell_worksheet.applescript
BBEdit Script to Open Here In Shell Worksheet
tell application "BBEdit" to set theFile to file of document 1
tell application "Finder" to set theFolder to (container of file theFile) as alias
set theUnixPath to POSIX path of theFolder
set output to return & "cd '" & theUnixPath & "'; pwd"
tell application "BBEdit"
set uws to Unix worksheet window
tell uws
select insertion point after last character
set selection to output