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 perl | |
print "<pre>\n"; | |
while (<STDIN>) { print; } | |
print "</pre>\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
\documentclass{article} | |
\usepackage{CJKutf8} | |
\begin{document} | |
\begin{CJK*}{UTF8}{gbsn} | |
这是一个测试 | |
\end{CJK*} (this is a test) | |
\end{document} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"></meta> | |
<title>Graphite Flot Example</title> | |
<style type="text/css"> | |
#graphite { | |
width: 300px; | |
height: 200px; | |
font-size: 14px; |
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
gang@debian:~$ sudo apt-get install netcat-openbsd | |
gang@debian:~$ cat /usr/local/bin/git-proxy-wrapper | |
#!/bin/bash | |
nc -xlocalhost:1080 -X5 $* | |
gang@debian:~$ export GIT_PROXY_COMMAND=/usr/local/bin/git-proxy-wrapper |
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
root@devops3:~# cat .curlrc | |
socks5-hostname = localhost | |
socks5 = localhost |
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
global | |
log /dev/log local0 info | |
#log loghost local0 info | |
maxconn 1024 | |
#chroot /home/app/var/haproxy | |
user app | |
group users | |
daemon | |
pidfile /home/app/var/haproxy.pid | |
stats socket /home/app/var/haproxy.sock |
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 python | |
""" | |
This takes a recipient email address and a graphite URL and sends a | |
POST to <graphite host>/dashboard/email with a body that looks like | |
this: | |
sender=user%40example.com&recipients=user2%40example.com&subject=foo&message=bar&graph_params=%7B%22target%22%3A%22target%3DdrawAsInfinite(metric.path.in.graphite)%22%2C%22from%22%3A%22-2hours%22%2C%22until%22%3A%22now%22%2C%22width%22%3A600%2C%22height%22%3A250%7D | |
...which will cause the graphite installation to send an email. |
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/sh | |
usage () { | |
echo "Usage: $0 <startup|shutdown>" | |
exit 1 | |
} | |
if [ $# -lt 1 ] | |
then | |
usage |
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
apply plugin: "war" | |
apply plugin: "eclipse" | |
apply plugin: "jetty" | |
repositories { | |
// mavenCentral() | |
maven { | |
url "http://1.1.9.4:9000/archiva/repository/internal/" |
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"?> | |
<!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> |