- https://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Actions-ShowText.html
- https://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Actions-WindowBringer.html
- https://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Hooks-DynamicBars.html
- https://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Prompt-ConfirmPrompt.html (version 0.12)
- https://hackage.haskell.org/package/xmonad-contrib-0.12/docs/XMonad-Prompt-Ssh.html
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/sh | |
# | |
# $FreeBSD$ | |
# PROVIDE: phabricator_phd | |
# REQUIRE: DAEMON mysql | |
# KEYWORD: shutdown | |
. /etc/rc.subr |
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/sh | |
# | |
# $FreeBSD$ | |
# PROVIDE: phabricator_aphlict | |
# REQUIRE: phabricator_phd | |
# KEYWORD: shutdown | |
. /etc/rc.subr |
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/sh | |
IRCSERVER="$1" | |
CHANNEL="$2" | |
TEXT="$3" | |
WEECHAT_PID=`pgrep -U weechatuser weechat` | |
WEECHAT_PIPE="/home/weechatuser/.weechat/weechat_fifo_${WEECHAT_PID}" | |
if [ -p "$WEECHAT_PIPE" ]; then | |
echo "irc.$IRCSERVER.$CHANNEL *$TEXT" > "$WEECHAT_PIPE" |
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
const char * ca_pubkey = | |
{ | |
"-----BEGIN CERTIFICATE-----\n" | |
... | |
"-----END CERTIFICATE-----" | |
}; | |
void init(void) | |
{ | |
/* these both are called only once for the entire application */ |
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/sh | |
SCRIPTNAME=`basename "$0"` | |
PORTSTREE="local" | |
POUDRIERE="/usr/local/bin/poudriere" | |
URL="https://host.example.org/poudriere/" | |
poudriere_build() { | |
for REPO in $REPOS; do | |
echo "Started $REPO ("`/bin/date | /usr/bin/tr -d '\n'`")" |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $verbose = 0; | |
my ($senddiff) = @ARGV; | |
if (defined($senddiff)) { | |
$senddiff = 1; |
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/sh | |
JAIL=11amd64 | |
FUN="$1" | |
DEST="$2" | |
shift 2 | |
PKG="$@" | |
OPT_EXT="" |
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 qualified Data.ByteString.Char8 as C8 | |
import Data.UnixTime | |
csvTableToTuple :: String -> (Int, Int) | |
csvTableToTuple line = | |
let date = takeWhile (/= ';') line | |
val = tail $ dropWhile (/= ';') line | |
in (fromEnum (utSeconds (parseUnixTime (C8.pack "%Y-%m-%d") (C8.pack date))), read val) | |
secondsInDay :: Int |
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
MaildirStore maildir | |
Path ~/.mail/ | |
Inbox ~/.mail/INBOX | |
Flatten . | |
IMAPAccount imapaccount | |
Host HOSTNAME | |
User USER | |
Pass PASSWORD | |
SSLVersions TLSv1.2 |