Skip to content

Instantly share code, notes, and snippets.

View eagletmt's full-sized avatar

Kohei Suzuki eagletmt

View GitHub Profile
diff -ur openssh-7.3p1.orig/readconf.c openssh-7.3p1/readconf.c
--- openssh-7.3p1.orig/readconf.c 2016-07-28 07:54:27.000000000 +0900
+++ openssh-7.3p1/readconf.c 2016-08-02 01:13:28.182685601 +0900
@@ -1500,8 +1500,7 @@
oactive ? "" : " (parse only)");
r = read_config_file_depth(gl.gl_pathv[i],
pw, host, original_host, options,
- flags | SSHCONF_CHECKPERM |
- (oactive ? 0 : SSHCONF_NEVERMATCH),
+ flags | SSHCONF_CHECKPERM,
# Usage: synvert --load rails50_ac_test_case.rb --run rails/rails50_ac_test_case
Synvert::Rewriter.new('rails', 'rails50_ac_test_case') do
helper_method :rewrite_with_new_syntax do
if node.arguments.size == 2 && node.arguments[1].type == :hash
params = node.arguments[1].to_source
if params[0] != '{'
params = "{ #{params} }"
end
replace_with("#{node.message} #{node.arguments[0].to_source}, params: #{params}")
@eagletmt
eagletmt / aikatsu.md
Last active September 23, 2017 14:24

STAR☆ANIS

歌唱担当 キャラクター
わか 星宮いちご
ふうり 霧矢あおい、音城セイラ、夏樹みくる(新)
りすこ 神崎美月
れみ 有栖川おとめ、藤堂ユリカ(新)、藤原みやび
えり 北大路さくら、姫里マリア、風沢そら(新)、栗栖ここね
ゆな 一ノ瀬かえで、冴草きい、紫吹蘭(新)、神谷しおん
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
int main(void) {
srand(time(NULL));
const int N = 50;
for (;;) {
// ==UserScript==
// @name Disable GitHub toolbar hotkey
// @namespace https://wanko.cc
// @include https://github.com/*
// @version 1
// @grant none
// ==/UserScript==
(function() {
var nodes = document.querySelectorAll('.js-toolbar-item[data-toolbar-hotkey]'), i;
for (i = 0; i < nodes.length; i++) {
#!/usr/bin/env ruby
require 'dalli'
dalli = Dalli::Client.new('127.0.0.1:11211')
dalli.set('valid_ttl', 'value', 100)
p dalli.get('valid_ttl') # "value"
dalli.set('invalid_ttl', 'value', 'Invalid TTL')
p dalli.get('invalid_ttl') # "No server available" error
class SSHKit::Formatter::Host < SSHKit::Formatter::Pretty
def log_command_start(command)
command.instance_variable_set(:@uuid, command.host)
super
end
end
set :format, :host
@eagletmt
eagletmt / a.diff
Created August 27, 2015 16:27
diff -u Makefile.217 Makefile.223
--- Makefile.217 2015-08-28 01:25:12.744277586 +0900
+++ Makefile.223 2015-08-28 01:25:28.460913531 +0900
@@ -7,16 +7,17 @@
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO = $(ECHO1:0=@echo)
+NULLCMD = :
#### Start of system configuration section. ####
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO = $(ECHO1:0=@echo)
POST /v1.9/containers/create HTTP/1.1
Host: /var/run/docker.sock
User-Agent: Docker-Client/0.8.0
Content-Length: 422
Content-Type: application/json
Accept-Encoding: gzip

{
 "AttachStderr": true,