- 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
syntax match CustomTodo '\(REMOVE\|FIX\|COMPLETE\|CHECK\)ME' | |
syntax cluster cCommentGroup add=CustomTodo | |
highlight CustomTodo ctermbg=yellow guibg=yellow |
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
Dec 28 21:47:41 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7546634240, length=65536)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7546732544, length=65536)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7546830848, length=65536)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7546961920, length=65536)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7547289600, length=65536)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7547453440, length=32768)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7547551744, length=32768)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7547617280, length=32768)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7547748352, length=32768)]error = 11 | |
Dec 28 21:49:05 papika kernel: g_vfs_done():ada0s1h.eli[WRITE(offset=7 |
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
CPU Info: /proc/stat, line "cpu", first 4 columns | |
Net Info: /proc/net/netstat, IpExt lines, match "octets" column titles with values | |
Bat Info: /sys/bus/acpi/drivers/battery/PNP0C0A:00/power_supply/BAT0/capacity | |
Mem Info: /proc/meminfo | |
ToDo: | |
- split up SysInfoBar for each OS |
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 |
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
#!/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
#!/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 | |
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
const char * ca_pubkey = | |
{ | |
"-----BEGIN CERTIFICATE-----\n" | |
... | |
"-----END CERTIFICATE-----" | |
}; | |
void init(void) | |
{ | |
/* these both are called only once for the entire application */ |
NewerOlder