I bought a ZSA Moonlander keyboard. This article documents my journey to using this keyboard as my daily driver.
Last Update: June 1, 2021
My current configuration: Oryx Layout
I bought a ZSA Moonlander keyboard. This article documents my journey to using this keyboard as my daily driver.
Last Update: June 1, 2021
My current configuration: Oryx Layout
| #!/usr/bin/env bash | |
| if [[ $# -eq 0 ]]; then | |
| echo "Usage: mag [QUERY]..." | |
| echo "" | |
| echo "Multi-ag : Searches files for multiple patterns using ag" | |
| exit 1 | |
| fi | |
| QUERY='ag -l "'"$1"'"' |
| Unhandled rejection Error: Argument #2: Expected string but got null5 | |
| at addDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:515:3) | |
| at /usr/local/lib/node_modules/npm/lib/install/deps.js:463:5 | |
| at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35 | |
| at Array.forEach (native) | |
| at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11 | |
| at Array.forEach (native) | |
| at asyncMap (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8) | |
| at loadDeps (/usr/local/lib/node_modules/npm/lib/install/deps.js:455:3) | |
| at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8) |
| # git change directory | |
| gcd() { | |
| local gitdir result | |
| gitdir=$(git rev-parse --show-toplevel 2>/dev/null) | |
| [[ -z "$gitdir" ]] && echo "[not a git directory]" && return 1 | |
| result=$(gfind "$gitdir" -type d -not -path '*/\.*' -printf '/%P\n' | fzf --reverse --no-sort) | |
| [[ -z "$result" ]] && return 1 | |
| cd "${gitdir}${result}" | |
| } |
| import ratpack.http.client.HttpClient; | |
| import ratpack.test.embed.EmbeddedApp; | |
| import javax.net.ssl.SniSslContext; | |
| import java.net.URI; | |
| class AppTest { | |
| static void main(String[] args) throws Exception { | |
| EmbeddedApp.fromHandler(ctx -> { | |
| URI uri = URI.create("#### A URL POINTING TO A SERVER USING SNI SSL ####"); |
| $IS_MINE:0 | |
| $TRIGGER_LEVEL:1 | |
| once | |
| TRUE SetPopupTextAlwaysVisible | |
| 0 SetPopupTextY | |
| Self "main" "NONE" SetImage | |
| Self CONST_CELLHEIGHT 1 SetUnitAttribute | |
| Self CONST_CELLWIDTH 1 SetUnitAttribute |
| ###### Environment Configuration | |
| export GREP_OPTIONS='--color=auto' | |
| export GRAILS_OPTS='-Djava.awt.headless=true -server -Xmx512m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+UseCompressedOops' | |
| export GRADLE_OPTS='-Dorg.gradle.daemon=false' | |
| export HOMEBREW_CASK_OPTS='--appdir=~/Applications/casks' | |
| export PGUSER='ids_dev' | |
| export CLICOLOR=1 | |
| export LESS='--quit-if-one-screen --RAW-CONTROL-CHARS --no-init --tabs=4' | |
| export LS_COLORS=GxFxCxDxBxegedabagaced | |
| export TREE_COLORS='di=1;36:ln=1;35:so=1;32:pi=1;33:ex=1;31:bd=34;46:cd=34;33:fi=0:or=4;31' |
| <?xml version="1.0"?> | |
| <root> | |
| <devicevendordef> | |
| <vendorname>ACER</vendorname> | |
| <vendorid>0x04ca</vendorid> | |
| </devicevendordef> | |
| <deviceproductdef> | |
| <productname>ACER_KEYBOARD_WITH_VOLUME_SPINNER</productname> | |
| <productid>0x0024</productid> |
| # Sends a message to growl from the terminal | |
| # | |
| # Usage: alert <text> | |
| # Result: Growl notification with text | |
| # | |
| # Example: sleep 10 ; alert 'I am awake' | |
| alert() { echo -e $'\e]9;'${@}'\007' ; } |