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
package hohl.irc | |
/* | |
<message> ::= [':' <prefix> <SPACE> ] <command> <params> <crlf> | |
<prefix> ::= <servername> | <nick> [ '!' <user> ] [ '@' <host> ] | |
<command> ::= <letter> { <letter> } | <number> <number> <number> | |
<SPACE> ::= ' ' { ' ' } | |
<params> ::= <SPACE> [ ':' <trailing> | <middle> <params> ] | |
<middle> ::= <Any *non-empty* sequence of octets not including SPACE or NUL or CR or LF, the first of which may not be ':'> | |
<trailing> ::= <Any, possibly *empty*, sequence of octets not including NUL or CR or LF> |
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
// ... | |
lazy val prefix: Parser[Prefix] = | |
(host | nick) ~ opt('!' ~> user) ~ opt('@' ~> host) ^^ { | |
case t ~ u ~ s => Prefix(t, u, s) | |
} | |
lazy val host = """[a-zA-Z0-9.:\-^_\-\[\]\\/`]+""".r | |
lazy val nick = """(\p{L}|[0-9]|[-_\[\]\\`^\{\}\|])+""".r | |
lazy val user = """[^(\s|@)]+""".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
#!/bin/bash | |
# Purpose: Dumps a PostgreSQL database and uploads it via SFTP to another host. | |
# Author: Michael Hohl <[email protected]> | |
# ----------------------------------------------------------------------------- | |
display_usage() { | |
echo "Usage: $0 <dbname> <user@stfp-target>" | |
} | |
if [ $# -ne 2 ]; then |
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
/* | |
* | |
* █████╗ ██╗ ██╗ ██╗ █████╗ ██╗ ██╗███████╗ ██████╗ ███╗ ██╗ ██╗██████╗ ██████╗ | |
* ██╔══██╗██║ ██║ ██║██╔══██╗╚██╗ ██╔╝██╔════╝██╔═══██╗████╗ ██║██╗██╗██║██╔══██╗██╔════╝ | |
* ███████║██║ ██║ █╗ ██║███████║ ╚████╔╝ ███████╗██║ ██║██╔██╗ ██║╚═╝╚═╝██║██████╔╝██║ | |
* ██╔══██║██║ ██║███╗██║██╔══██║ ╚██╔╝ ╚════██║██║ ██║██║╚██╗██║██╗██╗██║██╔══██╗██║ | |
* ██║ ██║███████╗╚███╔███╔╝██║ ██║ ██║ ███████║╚██████╔╝██║ ╚████║╚═╝╚═╝██║██║ ██║╚██████╗ | |
* ╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ | |
* | |
* |
NewerOlder