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
#!/bin/bash | |
read -sp "Password: " passw < /dev/tty | |
host=$1 | |
user=$2 | |
base=$3 | |
query=$4 | |
function adsearch { |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<appender name="debug-out" class="org.apache.log4j.RollingFileAppender"> | |
<param name="File" value="${openfireHome}/logs/debug.log" /> | |
<param name="MaxFileSize" value="1024KB"/> | |
<param name="MaxBackupIndex" value="5"/> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%d{yyyy.MM.dd HH:mm:ss} %c - %m%n" /> |
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
import sgmllib, re | |
from twisted.web import proxy, http | |
import sys | |
from twisted.python import log | |
log.startLogging(sys.stdout) | |
import unplug | |
WEB_PORT = 8000 | |
PROXY_PORT = 8001 |
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
#!/bin/bash | |
set -o errexit | |
# Author: David Underhill | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete, e.g., git-delete-history path1 path2 | |
if [ $# -eq 0 ]; then | |
exit 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/env escript | |
% Dialyzer enhanced flymake checker for Erlang | |
% Copyright (c) 2011, bkil.hu | |
% This program is free software and can be distributed under the terms of | |
% the GNU General Public License v2, | |
% see COPYING for detailed licensing terms. | |
%-module(check_erlang). | |
-export([main/1]). | |
-compile([export_all]). |
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
STARTUP_FILE="$HOME/tmp/ejabberd.erl" | |
sudo EJABBERD_BYPASS_WARNINGS=true \ | |
ERL_OPTIONS="-run file eval $STARTUP_FILE" \ | |
ejabberdctl --node [email protected] live |
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
-module(user_default). | |
-compile(export_all). | |
eval(S,Environ) -> | |
{ok,Scanned,_} = erl_scan:string(S), | |
{ok,Parsed} = erl_parse:parse_exprs(Scanned), | |
erl_eval:exprs(Parsed,Environ). |
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
from setuptools import setup | |
import os, glob | |
def read(fname): | |
return open(fname).read() | |
MODULES = [os.path.splitext(fn)[0] for fn in glob.glob('*.py')] | |
PACKAGES = [os.path.dirname(fn) for fn in glob.glob('*/__init__.py')] |
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
#!/bin/bash | |
pmap -d `pgrep $1` | grep mapped | awk '{print $4}' | sed s/.$// |
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
#!/bin/bash | |
set -eu | |
cmd=$1 | |
do_setup() { | |
number=$1 | |
port=$2 | |
dest="homes/$number" |
OlderNewer