Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # OSX doesn't support the linux version of xargs, so I installed findutils via brew first. | |
| # brew update; brew install findutils | |
| < urls.txt gxargs -r -L 1 -P 10 curl > /dev/null |
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
| import urllib, json | |
| import time | |
| from subprocess import call | |
| def blink(colors): | |
| if ( "red_anime" in colors): | |
| call(["blink1-tool", "--red"]) | |
| elif ( "red" in colors): | |
| call(["blink1-tool", "--red"]) |
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 | |
| # NAME | |
| # blink -- change color of blink1 based on success or failure of utility | |
| # | |
| # SYNOPSIS | |
| # blink utility | |
| # | |
| # DESCRIPTION | |
| # The blink utility executes and alerts once utility is complete. After the utility finishes, blink triggers the blink1-tool |