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
'use strict'; | |
var obsidian = require('obsidian'); | |
const DEFAULT_SETTINGS = { | |
autoUpdate: true, | |
changelogPath: "Changelog.md", | |
datetimeFormat: "YYYY-MM-DD[T]HHmm", | |
maxRecentFiles: 25, | |
}; |
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
gh gist list -L 9999 | | |
cut -f 1 | | |
xargs -n1 gh gist clone |
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
printf "starting mac addr: %s\n" "$(ifconfig en0 | grep ether)" | |
ifconfig en0 ether "$(openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/./0/2; s/.$//")" | |
printf "new mac addr: %s\n" "$(ifconfig en0 | grep ether)" |
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
for ns in $(kubectl get ns --field-selector "status.phase=Terminating" --output "jsonpath='{.items[*].metadata.name}'"); do | |
kubectl get ns "${ns}" --output json | | |
jq '.spec.finalizers = []' | | |
kubectl replace --raw "/api/v1/namespaces/${ns}/finalize" --filename - | |
done |
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
package main | |
import ( | |
"fmt" | |
"log" | |
) | |
func main() { | |
to, err := human() | |
if err != nil { |