start new:
tmux
start new with session name:
tmux new -s myname
// Paste the code below into your webbrowser console and press "enter" | |
// To open the console you can press "F12" or "Ctrl + Shift + J" for most browsers. | |
// Read more here: https://appuals.com/open-browser-console/ | |
// Instructions video on my twitter: https://twitter.com/_carlhannes/status/1590441813445599232 | |
// The code re-tries fetching data if it gets status 429, which is the error that the SJ page has | |
// It does this together with an exponential back-off delay which is common to use with microservices of this type | |
// Because of these re-tries and the delay, the overall load of the website and the servers will be lower, | |
// since it does not need to re-fetch requests that actually succeed. Read more on my twitter if you're interested: | |
// https://twitter.com/_carlhannes/status/1590605735314206721 |
(* 2019-06-07: Added nohup and output redirection to fix a bug with "Open Terminal here" feature. | |
Thanks to @fools-mate for bringing the issue to my attention. *) | |
on alfred_script(q) | |
do shell script "cd ~; nohup /Applications/kitty.app/Contents/MacOS/kitty /bin/bash -c \"source ~/.bashrc && " & q & ";/bin/bash\" > /dev/null 2>&1 &" | |
end alfred_script |
from __future__ import print_function | |
import sys | |
import argparse | |
import os.path | |
import textwrap | |
import re | |
from pprint import pprint | |
import xml.etree.ElementTree as ET |