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
(in-package "CL-USER") | |
(change-directory "D:\\code\\lisp\\") | |
(dolist (file (list "asdf.lisp")) | |
(compile-file file :load t)) | |
(setf asdf:*central-registry* | |
(remove-if #'null | |
(mapcar #'(lambda (file) (if (eq :unspecific (pathname-name file)) file)) | |
(directory #P"D:/code/lisp/")))) |
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
mencoder dvd://8 -dvd-device G: -of rawaudio -oac mp3lame -lameopts cbr:br=192 -af resample=44100 -ovc copy -o test.mp3 |
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
grep -o "[0-9]\+M$" dl.txt | grep -o "[0-9]\+" | awk '{s+=$1} END {print s}' | |
grep -o "[0-9]\+M$" dl.txt | grep -o "[0-9]\+" | paste -sd+ | bc |
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
package tomcat.zookeeper; | |
import java.io.IOException; | |
import java.net.InetAddress; | |
import java.net.NetworkInterface; | |
import java.net.SocketException; | |
import java.util.Enumeration; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.List; |
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
## set net.ipv4.ip_forward = 1 in /etc/sysctl.conf | |
## NAT: | |
iptables -t nat -A POSTROUTING -s 1.1.9.251/32 -o ${INET_DEV} -j SNAT --to-source ${INET_IP} | |
## PORT FORWARDING: | |
iptables -t nat -A PREROUTING -i ${INET_DEV} -p tcp -m tcp --dport ${INET_PORT} -j DNAT --to-destination ${LOCAL_IP}:${LOCAL_PORT} |
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
bundle agent sync_app | |
{ | |
vars: | |
"opt_dir" string => "/home/app/opt", | |
comment => "Program directory"; | |
"etc_dir" string => "/home/app/etc", | |
comment => "Configuration directory"; | |
files: |
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
############ | |
# ~/.forward | |
############ | |
"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #${USER}" | |
############### | |
# ~/.procmailrc | |
############### |
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
dd bs=1M count=512 if=/dev/zero of=test conv=fdatasync |
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
<?xml version="1.0"?> | |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | |
<Configure id="Server" class="org.mortbay.jetty.Server"> | |
<Set name="ThreadPool"> | |
<New class="org.mortbay.thread.QueuedThreadPool"> | |
<Set name="minThreads">10</Set> | |
<Set name="maxThreads">200</Set> | |
<Set name="lowThreads">20</Set> |
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
apply plugin: "war" | |
apply plugin: "eclipse" | |
apply plugin: "jetty" | |
repositories { | |
// mavenCentral() | |
maven { | |
url "http://1.1.9.4:9000/archiva/repository/internal/" |
OlderNewer