Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View gfx's full-sized avatar

FUJI Goro gfx

View GitHub Profile
@pldubouilh
pldubouilh / xdp.py
Last active August 10, 2023 17:05
xdp h2o connection tracing example
#!/usr/bin/python
#
# simple XDP eBPF program to flag connections using an eBPF map
# this example adds connections to ::1 ::1 to a an eBPF map
# depends on `bpftool` for now, as bcc is missing map pinning
#
# the map is spinned by the XDP program, and this python handler
# will call `bpftool` to pin the map to a path to allow system-wide
# access. the path will be removed when the program quits.
#

最新のステータス: 追記: 2019/7/10

転職しました。長らくのご愛顧誠にありがとうございました。


転職先をちょくちょく探しています。

興味ある方は twitter @mizchi へのリプライorDM、または mizchi2w@gmail.com まで。

link

Oracle v. GoogleのAPI著作権裁判の話(連邦最高裁)

Oracle v. Google API Fair Use訴訟の話(連邦地裁編)

2016年5月26日付で、合衆国連邦地裁(Federal District Court)において、いわゆる「Java API著作権裁判」について、「GoogleのJava API使用はフェアユースである」という陪審員評決が出たと報道されている。

なお、注意すべき点として、2016年5月26日段階で報道されている評決はまだ未確定である。今回の裁判はいわゆる知財裁判のため、州裁判所ではなく、連邦裁判所の管轄になっており、連邦地裁はその1審である。Oracleはおそらく控訴審の巡回裁判所、状況によっては連邦最高裁まで進むつもりであると思われるので、今後の動向には引き続き注意を要する。

@Yimiprod
Yimiprod / difference.js
Last active April 5, 2024 13:17
Deep diff between two object, using lodash
/**
* This code is licensed under the terms of the MIT license
*
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {
# power_assert.rb
#
# Copyright (C) 2014 Kazuki Tsujimoto, All rights reserved.
# License: BSDL
#
# $ ruby power_assert.rb
# "0".class == "3".to_i.times.map {|i| i + 1 }.class
# | | | | |
# | | | | Array
# | | | [1, 2, 3]
@shyouhei
shyouhei / git-strata.rb
Last active December 8, 2019 07:35
This is git-strata, an extended version of git-blame. It takes a path and generates git-blame like output. The difference is, it also shows you how much edits the line experienced.
#! /your/favourite/path/to/ruby
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Urabe, Shyouhei
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@JakeWharton
JakeWharton / dex.sh
Last active March 25, 2024 13:54
`classes.dex` method count helpers. Requires smali/baksmali from https://code.google.com/p/smali/ and dexdump from the build-tools in the Android SDK be on your PATH.
function dex-method-count() {
cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'
}
function dex-method-count-by-package() {
dir=$(mktemp -d -t dex)
baksmali $1 -o $dir
for pkg in `find $dir/* -type d`; do
smali $pkg -o $pkg/classes.dex
count=$(dex-method-count $pkg/classes.dex)
name=$(echo ${pkg:(${#dir} + 1)} | tr '/' '.')
@ronkorving
ronkorving / ios6-timers.js
Last active March 9, 2022 03:40
iOS6 webkit timer bug workaround
(function (window) {
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6.
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling.
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction).
// This code is released in the public domain. Do with it what you want, without limitations. I do not promise
// that it works, or that I will provide support (don't sue me).
// Author: rkorving@wizcorp.jp
var timeouts = {};
@rurban
rurban / blog-todo.md
Created September 17, 2012 23:04
My perl5 TODO list

My perl5 TODO list

Below is a formal list of possible optimizations, which most would agree on. We had these discussion in 2001 with damian were perl6 and perl5i took off. I'd like to work on these for perl5 core and need decisions. Most p5p hackers seem to be informed about the general possibilities and directions, but not all. We'd need this to improve general perl5 performance, and also help static compilation.[1]