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
import scala.util.parsing.combinator._ | |
class HeaderPsvRegexParser extends HeaderCharacterRegexParser("|") {} | |
class HeaderCsvRegexParser extends HeaderCharacterRegexParser(",") {} | |
class HeaderCharacterRegexParser(delimiterCharacter:String) extends RegexParsers | |
{ | |
// 2012-Jul-20 - The parser was removing splaces. | |
// 2015-Jul-07 - This override is required so that internal spaces remain. | |
override protected val whiteSpace = """[\t]""".r |
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
/** | |
* Say hello to Sainsmart UNO China clone. Cheap on Ebay, free USB A-B charger cord. | |
* 30 of them arrived in a box this week! | |
* | |
* | |
* Sketch also works well as a memory leak reset detector example, resets on < 250 free. | |
* | |
* @github ntbrock | |
* @gist: Arduino UNO Sketch - Memory Auto Reset low limit SRM malloc debugging | |
* @repo: https://github.com/ntbrock/bobino |
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
# cat geoFail2Ban.sh | |
#!/bin/sh | |
export TMP_F2B='/tmp/fail2ban.cut' | |
cat /var/log/fail2ban.log|grep Ban|cut -f 7 -d ' ' > $TMP_F2B | |
while read p; do | |
echo -n $p | |
geoiplookup $p | |
NewerOlder