TABLE WITHOUT ID
choice(striptime(date(today)) - striptime(file.mtime) <= dur("2 days"),
"<span style=color:#859900;>●</span> ",
choice(striptime(date(today)) - striptime(file.mtime) < dur("1 week"),
"<span style=color:#b58900;>◐</span> ",
"<span style=color:#dc322f;>⊗</span> "
)
) +
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
; { | |
; Karabiner-Elements Goku Config | |
; es@ethanschoonover.com / github: altercation | |
; ----------------------------------------------------------------------------- | |
; SUMMARY | |
; Karabiner-Elements is a low level utility to manage macOS keyboard behavior. | |
; The JSON config for K-E is awkward to manage at any level of complexity and | |
; thus we use Goku to maintain the configuration in EDN and compile it out to | |
; native K-E JSON config. | |
; ----------------------------------------------------------------------------- |
author | title | date | description | tags | ||||
---|---|---|---|---|---|---|---|---|
Hugo Authors |
Markdown Syntax Guide (modified es) |
2023-01-09 |
Sample article showcasing basic Markdown syntax and formatting for HTML elements. |
|
Sample Markdown syntax file, modified from Hugo source by ES for Markdown editor comparison.
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
#!/bin/sh | |
# dispreset: | |
# When called reset displays to last known arrangement using displayplacer | |
# if called within a timeout period (30 seconds), swap position. | |
# This is to work around the fact that in certain multimonitor configurations | |
# macOS fails to properly ID the displays using serial numbers pulled in via | |
# EDID and so loses track about which monitor is left/right positioned. |
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
------------------------------ | |
IMPORTANT NOTE: | |
Please see @craSH's update to this. He has updated and reformatted these working notes and his version is what I recommend you start with (as of 2021 or later). | |
-Ethan | |
@craSH fork & update (also listed in the forks on this gist above): |
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
# I use EventScripts to call this on screen unlock | |
# https://www.mousedown.net/software/EventScripts.html | |
tell application "Image Events" | |
launch | |
set countDisplays to count displays | |
if countDisplays > 1 then | |
do shell script "/usr/bin/curl \"http://192.168.0.99:3091/button-mbp-docked-unlock-trigger?event=click\"" | |
do shell script "/Users/es/bin/dispreset" | |
end if |
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
[username] | |
style_user = "yellow" | |
style_root = "red bold" | |
format = "[$user]($style)" | |
disabled = false | |
show_always = true | |
[hostname] | |
ssh_only = false | |
format = "[@](white)[$hostname](bold blue)" |
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
% IANA WHOIS server | |
% for more information on IANA, visit http://www.iana.org | |
% This query returned 1 object | |
refer: whois.verisign-grs.com | |
domain: COM | |
organisation: VeriSign Global Registry Services | |
address: 12061 Bluemont Way |
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
#!/bin/bash | |
# replace following with local user running minecraft | |
LOCALUSER=username | |
function mc_off () { | |
# echo "minecraft off" | |
spctl --add --label "Minecraft" /Users/flint/Library/Application\ Support/minecraft/runtime/jre-legacy/mac-os/jre-legacy/jre.bundle/Contents/Home/bin/java | |
spctl --disable --label "Minecraft" | |
pkill -f "Minecraft.app" |
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
#!/usr/bin/env sh | |
# macos base station scanner to analyze fast roaming, rssi, etc. | |
AIRPORT_CMD="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I" | |
if [ "$(whoami)" != "root" ] | |
then | |
sudo "$0" | |
exit |
NewerOlder