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
# | |
# STL GDB evaluators/views/utilities - 1.03 | |
# | |
# The new GDB commands: | |
# are entirely non instrumental | |
# do not depend on any "inline"(s) - e.g. size(), [], etc | |
# are extremely tolerant to debugger settings | |
# | |
# This file should be "included" in .gdbinit as following: | |
# source stl-views.gdb or just paste it into your .gdbinit file |
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
<?php | |
/* | |
Plugin Name: Plugin Name | |
Plugin URI: http://www.chaozh.com/ | |
Description: [Plugin desc] This version of Plugin requires at least WordPress 3.1 and PHP 5.0+ to work. | |
Version: 0.1 | |
Author: chaozh | |
Author URI: http://chaozh.com/ | |
*/ | |
### INSTALLATION/USAGE INSTRUCTIONS ### |
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
#!/bin/sh | |
# chkconfig: 35 85 15 | |
# description: Mongo is a scalable, document-oriented database. | |
# processname: mongod | |
# config: /etc/mongod.conf | |
# pidfile: /var/run/mongo/mongo.pid | |
. /etc/rc.d/init.d/functions | |
MONGOHOME="/usr/local/mongodb" |
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
# mongo.conf | |
dbpath = /data/db | |
#port = 27017 | |
# | |
#where to log | |
logpath = /var/log/mongodb.log | |
logappend = true | |
rest = true |
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
# -*- coding: utf-8 -*- | |
""" | |
@author: 冰蓝 | |
@site: http://lanbing510.info | |
""" | |
import re | |
import urllib2 | |
import sqlite3 | |
import random |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.apache.curator</groupId> | |
<artifactId>apache-curator</artifactId> | |
<version>2.8.1-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<dependencies> | |
<dependency> |
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 python | |
import sys,os | |
varnish_adm='varnishadm' | |
try: | |
var=sys.argv[1:][0] | |
if 'http://' in var or 'HTTP://' in var: | |
domain=var.split('/')[2] | |
url=var.split(domain)[1] | |
if url == "": | |
url=sys.argv[1:][1] |
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 python | |
#encoding=utf-8 | |
import os | |
import sys | |
import getopt | |
import struct | |
def printf(format, *args): | |
print format % args |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#include <syslog.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> |
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
/** | |
* A storage class for both command line options and shell commands. | |
* | |
*/ | |
static class CommandOptions { | |
private Map<String,String> options = new HashMap<String,String>(); | |
private List<String> cmdArgs = null; | |
private String command = null; |
NewerOlder