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
``` | |
2022-01-17 15:59:40.948 : > Running under Aerial Companion! | |
2022-01-17 15:59:40.948 : avInit .saver (0.0, 0.0, 0.0, 0.0) p: true o: true | |
2022-01-17 15:59:40.948 : Running under companion in preview mode, preventing setup | |
2022-01-17 15:59:40.949 : PWC2 wdl: Aerial version Version 3.0.0 | |
2022-01-17 15:59:40.964 : /PWC2 wdl | |
2022-01-17 15:59:40.965 : Creating app support directory... | |
2022-01-17 15:59:40.976 : tvOS 15 is not cached, downloading... | |
2022-01-17 15:59:40.988 : Parsed From Joshua Michaels & Hal Bergman | |
2022-01-17 15:59:40.989 : Sources loaded |
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
-- popper.lua | |
-- https://www.hammerspoon.org/docs/hs.webview.html | |
src=[[<html> | |
<head> | |
<style> | |
::-webkit-scrollbar { | |
background: #2d2e26; | |
width: 8px; |
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
x = hs.timer.doEvery(1, | |
function() | |
w = hs.console.hswindow() | |
if w then | |
w:move( | |
{ | |
x=math.random(500), | |
y=math.random(500), | |
w=math.random(1000), | |
h=math.random(1000) |
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 bash | |
function _nl() { | |
read -r LINE | |
echo "${LINE:-null}" | |
} | |
function _write() { | |
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
defaults write -g NSScrollAnimationEnabled -bool false |
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
<?php | |
require_once("pkg-utils.inc"); | |
require_once("notices.inc"); | |
require_once("util.inc"); | |
$msg = null; | |
$pmsg = null; | |
$p = 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
#!/usr/bin/env bash | |
case $1 in | |
-h|--help|'') echo "usage: ${0##*/} <old> <new>"; exit;; | |
esac | |
export old="\b$1\b" | |
export new=$2 | |
rg --files-with-matches -0 "${old}" | |
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 bash | |
#requires openssl@3 from Homebrew | |
_openssl=$(brew --prefix openssl 2>/dev/null)/bin/openssl | |
[[ -x $_openssl ]] || { echo "missing openssl, try \`brew install openssl\`"; exit 1; } | |
#find development cert | |
id=$(security find-identity -v -p codesigning | head -1) | |
[[ -n $id ]] || exit 1 | |
cn=$(sed -En 's/^.*Apple Development.*\((.*)\).*$/\1/p' <<<"$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
02.02.00.00t-uc-15 |
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
--[[ Live-updating floating previews | |
https://www.hammerspoon.org/docs/hs.window.html | |
https://www.hammerspoon.org/docs/hs.canvas.html | |
https://www.hammerspoon.org/docs/hs.image.html | |
https://www.hammerspoon.org/docs/hs.mouse.html | |
https://www.hammerspoon.org/docs/hs.timer.html | |
https://www.lua.org/manual/5.4/manual.html#6.2 (coroutines) | |
https://github.com/Hammerspoon/hammerspoon/issues/2710#issuecomment-788266990 (thanks @asmagill) |
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 bash | |
# https://apple.stackexchange.com/questions/304345/show-installation-date-of-packages-installed-with-homebrew/432218#432218 | |
# https://apple.stackexchange.com/questions/373442/how-to-generate-list-of-homebrew-formulas-packages-sorted-by-most-recently-upda/ | |
#default timeframe | |
tf=1d | |
case $1 in | |
-h|--help) echo "usage: ${0##*/} [time] e.g. 90m, 1h, 3d (default: $tf)"; exit;; |