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
| /*! | |
| * jQuery Tiny Pub/Sub - v0.X - 11/18/2010 | |
| * http://benalman.com/ | |
| * | |
| * Original Copyright (c) 2010 "Cowboy" Ben Alman | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://benalman.com/about/license/ | |
| * | |
| * Made awesome by Rick Waldron | |
| * |
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 | |
| #$Id: keepalivepin,v 1.2 2006/02/27 07:30:41 hmy Exp hmy $ | |
| #use dig check the powerdns's status. | |
| #in the dns database,have a IN TXT RR keepalivepin.vmmatrix.net,content is "AaBbCcDdEeFf" | |
| # Source: http://puppet-manifest-share.googlecode.com/svn/trunk/vmx-puppet/modules/lvs/files/keepalived.dns-pin | |
| # | |
| RR=keepalivepin.vmmatrix.net | |
| [ $# -le 1 ]&&{ echo "usage: ${0} -h <ip>"; exit 126;} | |
| while getopts "h:" OPT;do | |
| case $OPT in |
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
| package main | |
| import "fmt" | |
| import "sort" | |
| func main() { | |
| m := map[string]int{ | |
| "One": 1, | |
| "Two": 2, | |
| "Three": 3, |
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
| /* | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| */ | |
| #include <arpa/inet.h> | |
| #include <linux/if_packet.h> | |
| #include <stdio.h> |
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
| <?php | |
| class ReconnectingPDO | |
| { | |
| protected $dsn, $username, $password, $pdo, $driver_options; | |
| public function __construct($dsn, $username = "", $password = "", $driver_options = array()) | |
| { | |
| $this->dsn = $dsn; | |
| $this->username = $username; | |
| $this->password = $password; |
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
| # ステップバイステップで学ぶ Fluentd + GrowthForecast でグラフ作成まとめ - 彼女からは、おいちゃんと呼ばれています | |
| # http://d.hatena.ne.jp/inouetakuya/20130216/1361015295 | |
| <source> | |
| type forward | |
| </source> | |
| <match apache.access> | |
| type copy | |
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
| // Copyright 2012 Junqing Tan <ivan@mysqlab.net> and The Go Authors | |
| // Use of this source code is governed by a BSD-style | |
| // Part of source code is from Go fcgi package | |
| // Fix bug: Can't recive more than 1 record untill FCGI_END_REQUEST 2012-09-15 | |
| // By: wofeiwo | |
| package fcgiclient | |
| import ( |
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
| <html> | |
| <head> | |
| <title>hehe</title> | |
| <meta content="The Shell command runner Based on Nodejs"> | |
| <style> | |
| /** | |
| * basic styles for the javascript sandbox console - joss crowcroft | |
| * | |
| * http://josscrowcroft.github.com/javascript-sandbox-console/ | |
| */ |
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
| #include <czmq.h> | |
| static void * | |
| s_source (void *args) | |
| { | |
| zctx_t *ctx = zctx_new (); | |
| void *pub = zsocket_new (ctx, ZMQ_PUB); | |
| zsocket_bind (pub, "tcp://127.0.0.1:9000"); | |
| while (true) { |
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
| location / { | |
| try_files $uri @redis_cache; | |
| add_header Source Files; # Handy for development | |
| } | |
| location @redis_cache { | |
| # Make sure this path is correct | |
| # Run "nginx -V" from the command prompt and look for --prefix=/path/to/somewhere | |
| # and place redis.lua there, or use an absolute path as shown below | |
| content_by_lua_file /path/to/your/config/redis.lua; |
OlderNewer