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
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 5m; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES128-SHA:AES256-CGM-SHA256:ECDHE-RSA-AES256-SHA256:RC4:HIGH:!aNULL:!MD5:-LOW:-SSLv2:-EXP; | |
ssl_prefer_server_ciphers on; | |
add_header Strict-Transport-Security "max-age=2592000; includeSubdomains"; |
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
;; biff | |
(defvar foundnewmbox "") | |
(defun fmbiff () | |
(interactive) | |
(save-excursion | |
(set-buffer "*Group*") | |
(beginning-of-buffer) | |
(defvar foundanymbox nil) | |
(cond ((re-search-forward "INBOX.ALL" nil t) | |
(setq foundanymbox t)) |
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
set-option -g status-bg black | |
set-option -g status-fg white | |
set-option -g status-interval 60 | |
set-option -g status-left "#($HOME/bin/imapbiff.pl)" | |
set-option -g status-right "#(/bin/date +\"%R %F\")" |
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 perl | |
use Net::IMAP::Simple::SSL; | |
$| = 1; | |
my $server = 'imap.gmail.com'; | |
my $user = '[email protected]'; | |
my $pass = 'PASSWORD'; | |
my $imap = Net::IMAP::Simple::SSL->new($server); | |
$imap->login($user => $pass) || die "cannot connect"; | |
my $messages = $imap->select('Inbox'); | |
my $count = 0; |
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/python | |
import imaplib | |
M = imaplib.IMAP4_SSL('imap.gmail.com') | |
if (M.login('[email protected]','PASSWORD')[0] != 'OK'): exit("no conn") | |
c = (M.select('Inbox'))[1][0] | |
if (c != '0'):print c | |
M.shutdown() |
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
{- | |
this code is licensed under a "bsd" license, which is stated below | |
Copyright (c) 2007, Brad Clawsie. All rights reserved. | |
http://b7j0c.org/stuff/license.txt | |
-} | |
{-# LANGUAGE Arrows, NoMonomorphismRestriction #-} |
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
{- | |
this is a trivial script to tell us when a freebsd port has been updated | |
within the last N days, where N is the argument provided to the script on the | |
command line. | |
this code is licensed under a "bsd" license, which is stated below | |
Copyright (c) 2007, Brad Clawsie. All rights reserved. | |
http://b7j0c.org/stuff/license.txt |
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
{-# OPTIONS -fexcess-precision -fvia-C -fbang-patterns | |
-optc-O2 -optc-mfpmath=sse -optc-msse2 -optc-march=pentium4 #-} | |
module Main where | |
import System.Time | |
-- in the spirit of http://www.timestretch.com/FractalBenchmark.html | |
m :: Double -> Double -> Integer | |
m x y = f 0.0 0.0 (y - 0.5) x 0 |
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
export HISTFILE=~/.histfile | |
export HISTSIZE=1000 | |
export SAVEHIST=1000 | |
bindkey -e | |
zstyle :compinstall filename "$HOME/.zshrc" | |
autoload -Uz compinit | |
compinit | |
PS1="$ " | |
export 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
(require 'smtpmail) | |
(require 'pgg) | |
;; ------------------------------------------------------------- | |
;; location awareness | |
(if (run-at-home) | |
(setq user-mail-address "REDACTED") | |
(setq user-mail-address "REDACTED")) | |
;; ------------------------------------------------------------- |