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 | |
# | |
# Curls couch dbs /up endpoint every ten seconds and waits for it to return status code 200. | |
# You can define a command that is run once the check completed successfully. | |
# | |
if [ "$#" -eq 0 ]; then | |
echo "Usage: up-test.sh <host> <port> [command]" | |
echo "" |
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 | |
APP_TOKEN="<<<INSERT YOUR APP TOKEN HERE>>>" | |
USER_TOKEN="<<<INSERT YOUR USER TOKEN HERE>>>" | |
if [ $# -eq 0 ]; then | |
echo "Usage: ./push [--title=...] <message>" | |
echo "" | |
echo "If your title is longer than a single word you need to quote it." | |
echo "The title needs to be the FIRST argument you pass." | |
echo "All remaining arguments will be sent to the pushover api as a single message." |
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 | |
# | |
# Creates a .gitignore for all text files in a given directory ($BIN_FOLDER). | |
# | |
BIN_FOLDER=/home/b0wter/bin | |
rm "$BIN_FOLDER/.gitignore" |
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
echo "Triggering ntp sync, this will take about 10 seconds." | |
timedatectl set-ntp false | |
sleep 5 | |
timedatectl set-ntp true | |
sleep 5 | |
git clone https://github.com/b0wter/fedora_bootstrap.git ~/bootstrap | |
cd bootstrap | |
chmod +x ./bootstrap.sh | |
cd .. | |
./bootstrap/bootstrap.sh |