Skip to content

Instantly share code, notes, and snippets.

Avatar
🗿
iOS Keyboard Shortcuts and E D I T O R I A L G I T , BITCH!

David Blue extratone

🗿
iOS Keyboard Shortcuts and E D I T O R I A L G I T , BITCH!
View GitHub Profile
View tumblrpost.js
!(function (t) {
function e(n) {
if (i[n]) return i[n].exports;
var o = (i[n] = { exports: {}, id: n, loaded: !1 });
return t[n].call(o.exports, o, o.exports, e), (o.loaded = !0), o.exports;
}
var i = {};
return (e.m = t), (e.c = i), (e.p = ""), e(0);
})([
function (t, e, i) {
@extratone
extratone / updateall.py
Created Sep 25, 2022
Commands to update all Python packages on Windows or Linux systems.
View updateall.py
pip list --outdated
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
pip3 list -o | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print)' | cut -d' ' -f1 | xargs -n1 pip3 install -U
pip freeze > requirements.txt
pip install -r requirements.txt --upgrade
pipenv shell
pipenv update
@extratone
extratone / gist:94972516d5f552bc9b00b8d2a4b39905
Created Sep 25, 2022 — forked from palmin/gist:14300e8bf529d05e7e53
Get fonts family and font names list on iOS
View gist:94972516d5f552bc9b00b8d2a4b39905
// List all fonts on iPhone
for (NSString* family in [UIFont familyNames]) {
NSLog(@"Family name: %@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family]) {
NSLog(@" Font name: %@", name);
}
}
View .shellfishrc
# include this from .bashrc, .zshrc or
# another shell startup file
# this script does nothing outside ShellFish
if [ "$LC_TERMINAL" = "ShellFish" ]; then
printURIComponent() {
awk 'BEGIN {while (y++ < 125) z[sprintf("%c", y)] = y
    while (y = substr(ARGV[1], ++j, 1))
    q = y ~ /[a-zA-Z0-9]/ ? q y : q sprintf("%%%02X", z[y])
    printf("%s", q)}' "$1"
View secure-shellfish-snippet-gallery.json
@extratone
extratone / SecureShellFishKeyboardShortcuts.csv
Last active Sep 25, 2022
Hardware (Bluetooth) keyboard shortcuts for Secure ShellFish for iOS/iPadOS.
View SecureShellFishKeyboardShortcuts.csv
Action Command
ShellFish
New Terminal ⌘T
Cancel ⌘.
Connect
Edit Server
Enable tmux ⌥⌘T
Terminal
Quick Terminal ⌥⌘N
@extratone
extratone / gz_extract.py
Created Sep 25, 2022 — forked from kstreepy/gz_extract.py
For a given directory, unzip all .gz files in folder, save unzipped files in folder and deleted zipped files. A python solution for instances where you do not have access to PowerShell.
View gz_extract.py
import os, gzip, shutil
dir_name = 'x'
def gz_extract(directory):
extension = ".gz"
os.chdir(directory)
for item in os.listdir(directory): # loop through items in dir
if item.endswith(extension): # check for ".gz" extension
gz_name = os.path.abspath(item) # get full path of files
@extratone
extratone / mastodonfollowing.csv
Last active Sep 25, 2022
Indexing the accounts I follow on my main Mastodon account.
View mastodonfollowing.csv
Account address Show boosts
feditips@mstdn.social true
csolisr@social.azkware.net true
oss@fosstodon.org true
stevelord@mastodon.social true
faizalr@mstdn.social true
CHADYbara@marsey.club true
tommi@social.scambi.org true
gr36@social.lol true
socks@mas.to true
@extratone
extratone / vision.txt
Created Sep 25, 2022
Lyrics of "Be Thou My Vision." (Extended version information unknown - for my own reference.)
View vision.txt
Be Thou my Vision, O Lord of my heart;
Naught be all else to me, save that Thou art
Thou my best Thought, by day or by night,
Waking or sleeping, Thy presence my light.
Be Thou my Wisdom, and Thou my true Word;
I ever with Thee and Thou with me, Lord;
Thou my great Father, I Thy true son;
Thou in me dwelling, and I with Thee one.
@extratone
extratone / mastodonbookmarkdetails.json
Last active Sep 25, 2022
The raw data from my Mastodon bookmarks list.
View mastodonbookmarkdetails.json
{
"102175283103000829": {
"account": {
"acct": "pragmaticcode",
"avatar": "https://files.mastodon.social/accounts/avatars/000/540/980/original/6d5b50f8ee7dddf2.png",
"avatar_static": "https://files.mastodon.social/accounts/avatars/000/540/980/original/6d5b50f8ee7dddf2.png",
"bot": false,
"created_at": "2018-09-29T00:00:00.000Z",
"discoverable": null,
"display_name": "Pragmatic Code",