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 ruby | |
files = `ls -1 *.pcap`.split("\n") | |
threads = [] | |
8.times do | |
threads << Thread.new do | |
while not files.empty? do | |
f = files.pop |
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
/* | |
via: http://johanbrook.com/design/css/debugging-css-media-queries/ | |
add the following to the header first: | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
*/ | |
@media only screen and (min-width: 768px) and (max-width: 979px){ | |
body::before{ |
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
VERSION BUILD=6011206 RECORDER=CR | |
URL GOTO=https://panel.dreamhost.com/index.cgi | |
SET !DATASOURCE users.csv | |
SET !DATASOURCE_COLUMNS 3 | |
SET !ENCRYPTION NO | |
SET !DATASOURCE_LINE {{!LOOP}} | |
TAG POS=2 TYPE=DIV ATTR=TXT:Create<SP>New<SP>Email<SP>Address | |
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=ID:alias CONTENT={{!COL1}} | |
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=ID:gecos CONTENT={{!COL3}} |
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/perl -w | |
# | |
# pfdel - deletes message containing specified address from | |
# Postfix queue. Matches either sender or recipient address. | |
# | |
# Usage: pfdel <email_address> | |
# | |
use strict; |
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
colors desert | |
syntax enable | |
set noai | |
set softtabstop=2 | |
set tabstop=2 | |
set shiftwidth=2 | |
set noexpandtab | |
set backspace=2 | |
set smarttab |
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 ruby | |
# list all gems in your Gemfile which have a C extension | |
require 'bundler' | |
gemfile = [] | |
File.new("Gemfile").readlines.each do |line| | |
next if line =~ /^\s*#/ | |
if line =~ /gem\s+['"](.*?)['"]/ 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
#!/usr/bin/env ruby | |
branches = `git branch -a` | |
exit 1 if $?.to_i != 0 | |
branches = branches.split(/\n/).map{ |b| b.gsub(/(\*|\->.*$|^\s+| +$)/, '') }; | |
l = branches.max_by{ |b| b.length }.length | |
branches.each do |branch| | |
pad = " " * (l-branch.length) | |
STDOUT.write("#{pad}#{branch} ") | |
format = [ |
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 ruby | |
# list all gems in your Gemfile which have a C extension | |
require 'bundler' | |
gemfile = [] | |
File.new("Gemfile").readlines.each do |line| | |
next if line =~ /^\s*#/ | |
if line =~ /gem\s+['"](.*?)['"]/ 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
exception_notifierrequire 'benchmark' | |
class LoadTime | |
attr_accessor :path, :tms | |
include Comparable | |
def initialize(path, tms) | |
@path = path | |
@tms = tms | |
end | |
def <=>(other) |
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
jspwiki$ ls -l SandBox.txt | |
-rwxr--r-- 1 ubuntu ubuntu 2263 Jun 22 2004 SandBox.txt | |
jspwiki$ cat SandBox.txt | |
A nice and simple virtual mail setup for linux. The process below describes steps required using Gentoo linux. | |
Component's used: | |
- [Postfix|http://www.postfix.org] | |
- [Cyrus SASL|http://asg.web.cmu.edu/sasl/] | |
- [Courier IMAP|http://www.inter7.com/index.php?page=courierimap] |