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
| # Usage: ruby redirector.rb | |
| # Description: A simple web server that follows redirects for a given URL. | |
| require 'webrick' | |
| require 'net/http' | |
| require 'uri' | |
| require 'timeout' | |
| SERVER_PORT = 8000 | |
| class RedirectTracker < WEBrick::HTTPServlet::AbstractServlet |
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 | |
| while true | |
| do | |
| LINES_COUNT=$(curl -s https://store.steampowered.com/app/353380/Steam_Link/ | grep -i 'Out of Stock' | wc -l) | |
| if [[ $LINES_COUNT -eq 0 ]]; then | |
| echo "NOT Out of Stock @ `date`" | |
| notify-send -i input-gaming -u critical "Steam Link" "It seems that Steam Link is NOT Out of Stock!" | |
| 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/bash | |
| if [ $1 == "-h" ]; | |
| then | |
| echo "Shits random data in equaly sized files."; | |
| echo "Usage: $0 #ITERATIONS #BLOCKS"; | |
| exit | |
| fi | |
| ITERATIONS=$1 | |
| BLOCKS=$2 |
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
| int photoRPin = 0; | |
| int minLight; //Used to calibrate the readings | |
| int maxLight; //Used to calibrate the readings | |
| int lightLevel; | |
| int adjustedLightLevel; | |
| void setup() { | |
| //Serial.begin(9600); | |
| //Setup the starting light level limits |