Skip to content

Instantly share code, notes, and snippets.

View plutozonexyz's full-sized avatar

plutozonexyz

View GitHub Profile
@plutozonexyz
plutozonexyz / WinServer2019.md
Last active April 2, 2024 18:24
How to download Windows Server 2019 Evaluation, convert it to Standard, and activate it.
@plutozonexyz
plutozonexyz / weather.sh
Last active August 3, 2020 17:07
automated front-end to wttr.in
#!/bin/sh
if [ "$1" == "" ]; then
if [ -f ~/.wttrrc ]; then
curl `echo -n "https://wttr.in/";head -n 1 ~/.wttrrc | tr -d "\n";echo -n "?";head -n 2 ~/.wttrrc | tail -n 1 | tr -d "\n";echo -n "&format=";tail -n 1 ~/.wttrrc | tr -d "\n"`
elif [ -f ~/.config/wttrrc ]; then
curl `echo -n "https://wttr.in/";head -n 1 ~/.config/wttrrc | tr -d "\n";echo -n "?";head -n 2 ~/.config/wttrrc | tail -n 1 | tr -d "\n";echo -n "&format=";tail -n 1 ~/.config/wttrrc | tr -d "\n"`
else
echo "If you are to use weather without a .wttrrc in your ~ (or without a ~/.config/wttrrc), please refer to the '--help' flag for creating a .wttrrc."
fi
@plutozonexyz
plutozonexyz / corona.sh
Created August 1, 2020 16:47
gets corona stats in the terminal with cURL
#!/bin/sh
curl -sL covid19.trackercli.com/basic | grep \| | tr -d "|"
@plutozonexyz
plutozonexyz / covid-discord-webhook.sh
Last active July 17, 2020 01:09
thing for coronavirus discord webhook; change "url=[yeah]" to "url=https://blahblahblah" or something
url=[yeah]
curl -L covid19.trackercli.com/basic > corona.txt
cat corona.txt | grep \| | tr -d "|" > coronaf.txt
echo '{"username": "corona tracker", "content": "' > coronaj.txt
sed '1q;d' coronaf.txt >> coronaj.txt