Skip to content

Instantly share code, notes, and snippets.

View dudemeister's full-sized avatar

Ali Jelveh dudemeister

View GitHub Profile
@dudemeister
dudemeister / pulseaudio.rb
Created August 8, 2012 22:00
osx106pulseaudio
require 'formula'
class Pulseaudio < Formula
url 'http://freedesktop.org/software/pulseaudio/releases/pulseaudio-1.1.tar.xz'
head 'git://anongit.freedesktop.org/pulseaudio/pulseaudio'
homepage 'http://www.pulseaudio.org/'
md5 '17d21df798cee407b769c6355fae397a'
depends_on "intltool"
depends_on "gettext"
@dudemeister
dudemeister / gist:1434196
Created December 5, 2011 16:32
hostapd output AR9285 master mode no WPA2
random: Trying to read entropy from /dev/random
Configuration file: /home/protonet/dashboard/shared/config/hostapd.d/config
Line 9: DEPRECATED: 'debug' configuration variable is not used anymore
nl80211: interface wlan0 in phy phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 3
global
maxconn 4096
# user haproxy
# group haproxy
debug
defaults
timeout client 60000
timeout server 30000
<VirtualHost *:80>
ServerAlias *.domain.com
RewriteEngine on
Rewritemap domaintoport prg:/home/user/rewrite_map/rewrite_map
# RewriteCond %{HTTP_HOST} (.*)
RewriteRule (.*) http://localhost:${domaintoport:%{HTTP_HOST}}/$1 [P]
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
@dudemeister
dudemeister / gist:864690
Created March 10, 2011 19:10
nodejs agent/request 5 connections limit (?) when piping to file
var http = require('http');
var fs = require('fs');
var request = require('request');
var parseUrl = require("url").parse;
var i = 100;
while(i > 0) {
r = request({"uri": parseUrl("http://farm4.static.flickr.com/3557/3670453345_c38d482efb_m.jpg", true), "maxSockets": 3}, function (error, response, body) {
console.log(i);
})
protonet@ip-123:~$ babushka sources -a dudemeister git://github.com/dudemeister/babushka-deps.git
/usr/local/babushka/lib/babushka/base.rb:107:in `detect_var_in': private method `scan' called for nil:NilClass (NoMethodError)
from /usr/local/babushka/lib/babushka/base.rb:91:in `parse_cmdline_token'
from /usr/local/babushka/lib/babushka/base.rb:86:in `parse_cmdline'
from /usr/local/babushka/lib/babushka/base.rb:86:in `each'
from /usr/local/babushka/lib/babushka/base.rb:86:in `parse_cmdline'
from /usr/local/babushka/lib/babushka/base.rb:49:in `run'
from /usr/local/bin/babushka:19
def bar
puts 'baz'
end