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
<?php | |
/** | |
* @note Qmail popper::PHP4::qmail-popper-php | |
* @author Stefan Antonowicz | |
* | |
* This file parses out the mails sent to qmail via stdin. | |
* | |
* @author Stefan Antonowicz | |
*/ |
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
pm list packages -f |
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
;; Fuzzer configuration | |
;; A good seed for crashing during code generation: 1343186061 | |
(define seed (current-time)) ; current-time is Guile-specific (RNG seed) | |
(define max-items 10000) ; Maximum number of list elements in the output program | |
(define max-int (expt 2 30)) ; Largest int to appear in any math expression | |
(define branch-factor 100) ; Most arguments to a math expression | |
;; Random number generator - Numerical Recipes LCG | |
(define (rand-int mod) | |
(let ((a 1664525) |
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
(ns complex-clojure.core | |
(:require [clojure.core.typed :as t]) | |
(:use [clojure.core.typed :only [AnyInteger]])) | |
(t/def-alias SicpRatio (Vector* AnyInteger AnyInteger)) | |
(t/ann make-rat [AnyInteger AnyInteger -> SicpRatio]) | |
(defn make-rat [numer denom] [numer denom]) | |
(t/ann denom [SicpRatio -> AnyInteger]) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
uint64_t | |
fnv(char *key, uint32_t len) | |
{ | |
uint64_t hash = 14695981039346656037; | |
uint32_t idx = 0; | |
for(; idx < len; idx++) |
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
# tinyp2p.py 1.0 (documentation at http://freedom-to-tinker.com/tinyp2p.html) | |
# (C) 2004, E.W. Felten | |
# license: http://creativecommons.org/licenses/by-nc-sa/2.0 | |
# Annotated by Kochin Chang, Jan. 2005 | |
# Usage: | |
# Server - python tinyp2p.py password server hostname portnum [otherurl] |
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
@echo off | |
@rem ---------------- | |
@rem Config - Banner | |
@rem ---------------- | |
set BAT_VER=0.1 (20130703) | |
set BANNER_DASH=-------------------------------- | |
set BANNER_NAMEVER=Erpscan Automator v%BAT_VER% | |
set BANNER_BY=Created By: Glenn 'devalias' Grant (http://devalias.net) | |
set BANNER_UPDATES=Updates at: https://gist.github.com/alias1/6118709 | |
set BANNER_LICENSE=License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text) |
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 argparse | |
import datetime | |
import urllib | |
import urllib2 | |
import json | |
import sys | |
_token = 'YOUR_SLACK_API_KEY' | |
_files_list_url = 'https://slack.com/api/files.list' | |
_files_delete_url = 'https://slack.com/api/files.delete' |
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 | |
# unfortunately debian currently panics in xhyve | |
tmp=$(mktemp -d) | |
pushd "$tmp" | |
iso="$HOME"/Downloads/debian-8.1.0-amd64-netinst.iso | |
#iso="$HOME"/Downloads/debian-8.1.0-i386-netinst.iso | |
echo "fixing disk" | |
dd if=/dev/zero bs=2k count=1 of=tmp.iso |
OlderNewer