This file contains hidden or 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 | |
input="${1:?Provide a file or text}" | |
shift | |
output="${1:-image.png}" | |
if [ -r "$input" ]; then | |
input="$(cat "$input")" | |
fi |
This file contains hidden or 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 | |
get_links() { | |
curl -so/tmp/osrs.list https://downloads.khinsider.com/game-soundtracks/album/old-school-runescape | |
pages="$(grep -Po '<td class="clickable-row"><a href="\K[^"]+' /tmp/osrs.list)" | |
echo >osrs.links | |
for page in $pages; do |
This file contains hidden or 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" | |
"strings" | |
"github.com/spf13/cobra" | |
) | |
func main() { |
This file contains hidden or 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 | |
set -eu | |
: "${d?}" | |
: "${token?}" | |
curl() { | |
path=$1 | |
shift | |
api=https://slack.com/api |
This file contains hidden or 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
# The following script (ab)uses the Windows 10 Task Scheduler to create a UAC | |
# whitelist for applications. | |
# | |
# Why? Because Windows does not let you fine-tune your UAC settings. It's | |
# either you turn off all dialogs and risk some app messing your shit up as it | |
# runs in a privileged context, or you turn on notifications for everything and | |
# risk your sanity and hearing loss from the loud bell that chimes through your | |
# ears every time you want to view your CPU temps or adjust your fan speeds. | |
# | |
# Any programs added to the whitelist below will not show a UAC prompt when |
This file contains hidden or 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
Mon Jul 24 17:59:37 UTC 2017 |