Skip to content

Instantly share code, notes, and snippets.

@solar
solar / haproxy.conf
Created November 6, 2012 15:33
install haproxy-dev with supervisord
# Configurations for haproxy
global
maxconn 4096
chroot /var/haproxy
user haproxy
group haproxy
log 127.0.0.1 local0 alert
// ==UserScript==
// @name unset_card_from_deck
// @namespace sazabi.org
// @include http://*.3gokushi.jp/card/deck.php*
// @version 1.0
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// @grant none
// ==/UserScript==
(function() {
// ==UserScript==
// @name trade_helper
// @namespace sazabi.org
// @include http://*.3gokushi.jp/card/deck.php*
// @version 1
// @require http://zeptojs.com/zepto.min.js
// @require https://raw.githubusercontent.com/madrobby/zepto/master/src/selector.js
// @grant none
// ==/UserScript==
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url("https://insprout.hipchat.com/chat") {
#tabs > li a.open {
font-size: 11px;
padding: 8px 10px;
}
#tabs > li a.close {
top: 5px;
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url("https://insprout.hipchat.com/chat") {
.aui-navgroup-vertical li.aui-nav-heading {
padding-top: 5px;
padding-bottom: 5px;
}
#hipchat .hc-tab a.aui-nav-item {
font-size: 12px;
padding-top: 4px;
@solar
solar / gist:ae81b8e7c845afb863b4
Created January 14, 2016 09:40 — forked from balamaci/gist:42e649ac8e787f9b64dd
start script outputing pid
#!/bin/bash
MYDIR=$(dirname $0)
STATFILE=$MYDIR/command.pid
COMMAND_MARK="myprocess.jar"
MEMORY_OPTIONS="-Xms32m -Xmx256m"
MISC_OPTIONS="-Djava.awt.headless=true"
LOG_FILE=console.log

Keybase proof

I hereby claim:

  • I am solar on github.
  • I am solar_ray (https://keybase.io/solar_ray) on keybase.
  • I have a public key whose fingerprint is 665A 3AAC 802D 1990 FD7B C93F 147A 9EFB 5997 72D9

To claim this, I am signing this object: