Various requirements beforehand:
brew install --cask font-jetbrains-mono
| import requests | |
| import re | |
| # Example usage: | |
| # commit_messages = [ | |
| # "Fixed bug [1.5h]", | |
| # "Added feature [1h 30m]", | |
| # "Refactored code [10m]", | |
| # "Implemented new algorithm [5h]" | |
| # ] |
As described here, MacOS has a nasty habbit of resuming sleep or booting up with external monitors swapped in between when using multiple identical monitors.
Using DisplayPlacer and help from the community, we can configure a BetterTouchTool keyboard shortcut (or other shortcuts) to swap them in their proper place when they bootup in the incorrect order.
| default 21:27:34.904306+0300 coreaudiod CAReportingClient.mm:480 stopping ( | |
| 409946038468614 | |
| ) | |
| default 21:27:34.904433+0300 coreaudiod CAReportingClient.mm:508 message { | |
| "session_duration" = "13.56053006649017"; | |
| }: ( | |
| 409946038468614 | |
| ) | |
| default 21:27:34.905257+0300 coreaudiod IO Stopped Context 478 after 648192 frames. | |
| default 21:27:34.905338+0300 coreaudiod HALS_IOContext_Legacy_Impl::IOThreadEntry: 478 AppleUSBAudioEngine:Focusrite:Scarlett 2i2 USB:1100000:1,2 (AppleUSBAudioEngine:Focusrite:Scarlett 2i2 USB:1100000:1,2): stopping with error 0 |
| #!/bin/bash | |
| cd '/Applications/League of Legends.app/Contents/LoL/' | |
| ./LeagueClient.app/Contents/MacOS/LeagueClient |
| #!/bin/bash | |
| # | |
| # prune_dir - prune directory by deleting files if we are low on space | |
| # | |
| DIR=$1 | |
| CAPACITY_LIMIT=$2 | |
| if [ "$DIR" == "" ] | |
| then | |
| echo "ERROR: directory not specified" |
| package testing | |
| import ( | |
| "fmt" | |
| "github.com/google/go-cmp/cmp" | |
| "github.com/onsi/gomega/format" | |
| "github.com/onsi/gomega/types" | |
| ) |
| Find: .Prepare\("(.*)" | |
| Replace: .PrepareContext("$1" |
| ### Keybase proof | |
| I hereby claim: | |
| * I am adrianlungu on github. | |
| * I am adrianlungu (https://keybase.io/adrianlungu) on keybase. | |
| * I have a public key ASBaYoW_4AgyOvC14u2ZcWkFfiw8isJ4Jxmv59IMmfFaUgo | |
| To claim this, I am signing this object: |
| # ITERM SESSION ID seems to have puctuation in it, replace with slash | |
| export SESSION_ID=${ITERM_SESSION_ID//:/-} | |
| # Unique history file per shell session. | |
| export HISTSIZE=500 | |
| # Get only the window/tab indices as ID (w0t0p0) as the Session ID can change | |
| # after updates/restarts/etc... | |
| export HISTFILE="${HOME}/.bash-history-${SESSION_ID:0:6}" | |
| # export HISTFILE="~/bash_history/.bash-history" |