Skip to content

Instantly share code, notes, and snippets.

View kohei-takata's full-sized avatar

Kohei TAKATA kohei-takata

View GitHub Profile
@azu
azu / git-2.26.1-README.md
Last active January 22, 2022 21:54
Gitの認証情報を奪い取れるGit 2.26.0以下にある脆弱性について

Git 2.26.0以下にある脆弱性

Git 2.26.0以下*1には、細工したリポジトリをgit cloneしたときに、 そのユーザーのCredential(たとえばGitHub.comをcloneするときに使う認証情報)を奪い取れる脆弱性があります。

📝 取得できる認証情報は credential.helper の設定に依存する

既にPoC(検証するためのコード)もあり、結構簡単なので是非Gitを2.26.1以上にアップデートしましょう。 git submoduleを使うと見た目ではわかりにくい攻撃もできるので、「気をつける」では回避は難しいです。

@catchin
catchin / MultilineTextInput.js
Last active July 31, 2018 04:07
This is a workaround for the buggy react-native TextInput multiline on Android. Inspired by the comments on https://github.com/facebook/react-native/issues/12717.
import React, {PropTypes, PureComponent} from 'react';
import {TextInput} from 'react-native';
import debounce from 'debounce';
/**
* This is a workaround for the buggy react-native TextInput multiline on Android.
*
* Can be removed once https://github.com/facebook/react-native/issues/12717
* is fixed.
*
@watilde
watilde / uni.md
Last active August 29, 2015 14:24

前回:うに小屋

|店|駅|メモ| |---|---|---|---|---| |しゃくしゃく|東銀座|地酒22種類 + 雲丹ご飯付きコースで5000円| |ウニと海老の専門店 大人和食TOKYO|渋谷|コース安定してそう、丸ごとウニやばそう| |茶良ら 〜SALALA〜|銀座一丁目|コースで雲丹ご飯あり。ワインも豊富そう| |リストランテ デラ コリーナ|恵比寿|うにパスタだけ頼んでワインとか| |うにくら|水道橋|木箱うにやばい| |鰓呼吸|中目黒|こぼれ系寿司|

var SCREEN_SIZE = 500; // キャンバスの幅
var SIDE_CELLS = 200; // 一辺のセルの数
var CELL_SIZE = SCREEN_SIZE / SIDE_CELLS; // セルの幅
var FPS = 10; // フレームレート
var canvas; //= document.getElementById('world');
var context; //= canvas.getContext('2d');
window.onload = function() {
var field = new Array(SIDE_CELLS*SIDE_CELLS); // フィールド情報
var tempField = new Array(SIDE_CELLS*SIDE_CELLS); // フィールド情報の一時記憶用