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 | |
| ############################################################ | |
| # Recursively peruses a directory and converts MKV files | |
| # to MP4 for streaming to Xbox360. | |
| # | |
| # @author: Ticean Bennett | |
| # @url: http://ticean.com | |
| # @see: http://trac.handbrake.fr/wiki/CLIGuide#options | |
| # | |
| # @param file The complete file path. |
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
| def fizzbuzz(n) | |
| if (n % 3 == 0) | |
| puts "Fizz" | |
| end | |
| if (n % 5 == 0) | |
| puts "Buzz" | |
| end | |
| if !((n % 3 == 0) || (n % 5 == 0)) | |
| puts n | |
| end |
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
| #!/usr/bin/env python3 | |
| """ | |
| PPDM -> node_exporter textfile collector. | |
| Polls the PPDM REST API once, writes a .prom file into node_exporter's | |
| textfile directory, then exits. Run it on a schedule (cron or a systemd | |
| timer) instead of running it as a long-lived service. | |
| No third-party dependencies -- uses only Python's standard library | |
| (urllib), so nothing needs to be pip installed. |