Skip to content

Instantly share code, notes, and snippets.

View eagletmt's full-sized avatar

Kohei Suzuki eagletmt

View GitHub Profile
UPDATE sentry_rule SET data = 'eJxljbsOwjAMRXf/SDJZlDcjQjCy5AOqKklRpMqJ4oDUv8epUjGw+drX52iXOjDKRnKhhEisIG1BT2kH2qW9nIKT1UEG9lTyjPk9ecbfA44hc+nZe+r9Rzr4qAsj+V7jbW0K5gg8sFGDXVWnqjpX1QVef5LWQ4oljHOjP5ewoK+2cbtNBeMX2PhGnQ==' WHERE label = 'Send a notification for new events';
UPDATE sentry_rule SET data = 'eJzTSCkw5ApWT87PS8ksyczPK1bnKjDi0sgpMObSSCkwAUplpgCFTIGM4tS8kqJKvaLSnNRiPYQGvaLU9KLU4mIgOz61DKhGLwgu4AriO8OUAs0x4ypOLA5WT0yG2WUOsssCZJclVzqGLVB1enn5JZlplVDj/cAcsNGOyVBzDQ1ABusBAD+xRzo=' WHERE label = 'Send a notification for regressions';
nginx version: nginx/1.6.2
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/bin/nginx --pid-path=/run/nginx.pid --lock-path=/run/lock/nginx.lock --user=http --group=http --http-log-path=/var/log/nginx/access.log --error-log-path=stderr --http-client-body-temp-path=/var/lib/nginx/client-body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-imap --with-imap_ssl_module --with-ipv6 --with-pcre-jit --with-file-aio --with-http_dav_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_realip_module --with-http_spdy_module --with-http_ssl_module --with-http_stub_status_module --with-http_addition_module --with-http_degradation_module --with-http_flv_module --with-http_mp4_module --with-http_secure_link_module --with-http_sub_module
upstream gyazo {
server unix:/tmp/gyazo.sock;
}
server {
listen 80;
listen 443 ssl;
server_name gyazo.wanko.cc;
charset utf-8;
#!/usr/bin/env ruby
class Log
def initialize(h)
@h = h
end
def response_time
# unit: ms
@h['reqtime'].to_f * 1000
// ==UserScript==
// @name ICPC 2013 Chiayi
// @namespace http://wanko.cc/
// @include http://icpc2013.ccu.edu.tw/icpc2013/icpc_scoreboard_online.php
// @version 1
// @grant none
// ==/UserScript==
(function() {
// source:
// - https://twitter.com/tkaneko/status/406616713459798016
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
if (argc == 1) {
exit(EXIT_FAILURE);
}
const int pid = atoi(argv[1]);
let s:hook = {
\ 'kind': 'hook',
\ 'name': 'bundler',
\ }
function! s:hook.on_module_loaded(session, context)
if a:session.config.type !=# 'ruby'
return
endif
if !executable('bundle')
#!/usr/bin/env ruby
# bluez 4.101
# pulseaudio 4.0
require 'dbus'
bd_addr = ARGV[0]
# Connect to the headset.
#!/usr/bin/env ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__)
require 'bundler/setup'
require 'dbus'
class Wicd
NOT_CONNECTED = 0
CONNECTING = 1
WIRELESS = 2
WIRED = 3
@eagletmt
eagletmt / wrap-around.patch
Last active December 19, 2015 11:19
focus_left_tab 等が wrap around するようにするパッチ。一番左で focus_left_tab すると一番右にいったりする。
diff --git a/core/plugin/command/command.rb b/core/plugin/command/command.rb
index fc87964..a5de622 100644
--- a/core/plugin/command/command.rb
+++ b/core/plugin/command/command.rb
@@ -230,17 +230,13 @@ Plugin.create :command do
type_strict widget => Plugin::GUI::HierarchyChild
children = widget.parent.children.select{ |w| w.is_a? widget.class }
index = children.index(widget)
- if distance > 0 ? (children.size <= (index+distance)) : (0 > (index+distance))
- notice "terminate #{widget}"