In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
module.exports = function atob(a) { | |
return new Buffer(a, 'base64').toString('binary'); | |
}; |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
#!/usr/bin/env python | |
#-*- coding:utf8 -*- | |
# sources | |
# 1. https://gist.github.com/tell-k/4943359#file-paramiko_proxycommand_sample-py-L11 | |
# 2. https://github.com/paramiko/paramiko/pull/97 | |
# info: http://bitprophet.org/blog/2012/11/05/gateway-solutions/ | |
# local -> proxy-server -> dest-server | |
# ~/.ssh/config | |
# | |
# Host proxy-server |
#!/bin/bash -e | |
# Instead of watching YouTube videos in your browser, stream them in | |
# QuickTime Player (or VLC/MPlayer etc.) | |
# | |
# youtube-dl supports hundreds of websites, so it will probably work | |
# for a lot of video sites. | |
# See https://rg3.github.io/youtube-dl/ | |
# Get URL of current tab in browser |