Skip to content

Instantly share code, notes, and snippets.

@hitode909
hitode909 / hatena-star-user-icon.user.js
Created May 16, 2010 10:29
☆をユーザーアイコンにするGreasemonkey
// ==UserScript==
// @name hatena-star-user-icon
// @namespace http://www.hatena.ne.jp/hitode909
// @include *
// ==/UserScript==
(function(){
var user_icon = function(name) {
return "http://www.st-hatena.com/users/" + name.slice(0, 2) + "/" + name + "/profile_s.gif";
};
@jpertino
jpertino / simpleJettyServer.groovy
Created January 20, 2011 04:29
a simple embedded jetty server
@Grab('org.mortbay.jetty:jetty-embedded:6.1.26')
import static org.mortbay.jetty.Handler.DEFAULT
import org.mortbay.jetty.Server
import org.mortbay.jetty.servlet.Context
import org.mortbay.jetty.servlet.DefaultServlet
import org.mortbay.servlet.MultiPartFilter
import groovy.servlet.GroovyServlet
import groovy.servlet.TemplateServlet
@nus
nus / BoostAsioCommentGet.cpp
Created March 16, 2011 06:42
Boost::asioでニコ生のコメントを取得
#include <iostream>
#include <string>
#include <boost/asio.hpp>
using namespace std;
using namespace boost::asio;
int main()
{
/*
@hotchpotch
hotchpotch / cocproxy.nginx.conf
Created May 25, 2011 04:50
cocproxy for nginx
#!nginx -p . -c cocproxy.nginx.conf
error_log /dev/stderr debug;
daemon off;
events {
worker_connections 48;
}
http {
@hail2u
hail2u / star-yellow.svg
Created May 12, 2012 06:43
黄色のスター画像
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
use strict;
use warnings;
main(@ARGV);exit;
sub main {
my $path = shift or help();
my $title = shift or help();
my $dir = "$path/$title";
// yoyaku07_name.asp
document.forms[0].TEL.value="080-XXXX-XXXX";
document.forms[0].NAME_FM_1.value="オオタケ"; //optional
document.forms[0].NAME_FR_1.value="トモヒロ"; //optional
// document.forms[0].SONOTA.value=""; // optional
// OEMSignSettlement.php
document.forms[0].card_type.value="01VISA";
document.forms[0].card_no0.value="4538";
document.forms[0].card_no1.value="XXXX";
@sonots
sonots / fluentd_hacking_guide.md
Last active August 30, 2021 05:57
Fluentd ソースコード完全解説 (v0.10向け)

Fluentd ソースコード完全解説

英題:Fluentd Hacking Guide

目次

30分しかないため斜線部分は今回省く

  • Fluentd の起動シーケンスとプラグインの読み込み
  • Fluentd の設定ファイルのパース
  • Input Plugin から Output Plugin にデータが渡る流れ
@ailispaw
ailispaw / patch.fix.twitter.upload.tbrl.js
Last active January 6, 2020 13:10
Fix Twitter.upload 2016.08
// ==Taberareloo==
// {
// "name" : "Fix Twitter.upload 2016.08"
// , "description" : "Fix Twitter.upload 2016.08"
// , "include" : ["background"]
// , "version" : "0.3.1"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/f0cf8e6db802b51a9790/raw/patch.fix.twitter.upload.tbrl.js"
// }
// ==/Taberareloo==
@ailispaw
ailispaw / patch.fix.twitter.update.tbrl.js
Last active February 3, 2020 03:01
Taberareloo Patch: Fix Twitter.update 2020.02
// ==Taberareloo==
// {
// "name" : "Fix Twitter.update 2020.02"
// , "description" : "Fix Twitter.update 2020.02"
// , "include" : ["background"]
// , "version" : "0.5.0"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/9406c2ffacf68c6ad238/raw/patch.fix.twitter.update.tbrl.js"
// }
// ==/Taberareloo==