- install karabiner-elements
- give karabiner all necessary security permissions
- create a file named
~/.config/karabiner/assets/complex_modifications/1683568839.json
- paste the json content below into this file
- in karabiner, navigate to complex modifications, click '+ Add rule' -- you should see 4 rules. click Enable All to add them
- you should be able to type right-command-key + T to open the terminal, + C to open chrome, + S to open sublime and + F to open the Finder
- edit the json file if necessary. delete and re-add the rule so that it refreshes (is this necessary?)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install disco locally | |
curl https://cli-assets.letsdisco.dev/install.sh | sh | |
# initialize a server or Raspberry Pi | |
disco init root@server.example.com | |
# connect your github account | |
disco github:apps:add | |
# deploy your project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logAnalytics() { | |
// GITHUB ACTIONS FREE ANALYTICS | |
// create a github personal token and insert it here | |
// ONLY give it actions:write permissions on a SINGLE repo, which is bad, but not, I think, extra extra bad | |
const githubPat = "github_pat_INSERT_YOUR_PERSONAL_TOKEN_HERE"; | |
// this is YOUR repo where you'd want your log files | |
const githubRepo = "gregsadetsky/github-actions-free-analytics"; | |
const githubApiVersion = "2022-11-28"; | |
// replace this with the ID of your workflow -- I use `gh workflow list` i.e. the GitHub CLI tool to find the ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/homebrew/bin/python3 | |
# canonical source for this script: | |
# https://gist.github.com/gregsadetsky/7e4f040989d7792c3191316174409670 | |
""" | |
this is a script that is meant to be run by xbar i.e. | |
https://github.com/matryer/xbar | |
a utility that places any command line output into a macOS menu bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As noted by @murdats below, there are more URLs than just these 1440 ones, depending on the argument values | |
that are hashed (as the filenames below are MD5 hashes of a few arguments: red/blue pill color, HHMM time, etc.) | |
You can read details about the algorithm used to generate these URLs here: | |
https://news.ycombinator.com/item?id=28448335 | |
--- | |
00:00 https://thechoiceisyours.whatisthematrix.com/generated/v7/high/d43725991d28ffcab04aa716762cf6af.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
834630;1. 0. 0. 0. 0. 0. 0. 1. 0. 0. | |
834631;0. 0. 0. 0. 0. 0. 0. 1. 0. 0. | |
844954;0. 0. 0. 0. 0. 0. 1. 0. 0. 0. | |
863987;3. 0. 0. 0. 0. 0. 3. 0. 0. 0. | |
897324;1. 0. 0. 0. 0. 0. 0. 0. 0. 0. | |
913856;1. 0. 1. 0. 0. 1. 0. 0. 0. 0. | |
918094;1. 0. 0. 0. 0. 0. 1. 0. 0. 0. | |
927050;1. 0. 0. 0. 0. 0. 0. 1. 0. 0. | |
927051;0. 0. 0. 0. 0. 0. 1. 0. 0. 0. | |
928011;1. 0. 0. 0. 0. 0. 1. 0. 0. 0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dj_database_url | |
TEST_DATABASES = { | |
'default': dj_database_url.config(env='TEST_DATABASE_URL') | |
} | |
# replace path below to point to HerokuTestSuiteRunner class | |
TEST_RUNNER = 'python.path.to.test_suite_runner.HerokuTestSuiteRunner' |