Skip to content

Instantly share code, notes, and snippets.

View matsubo's full-sized avatar

Yuki Matsukura matsubo

View GitHub Profile
@matsubo
matsubo / deserialize.rb
Created July 1, 2014 06:08
Deserializing session value in Rails
$redis.keys.map {|key| p Marshal::load($redis.get(key)) }
diff --git a/composer.json b/composer.json
index 239a542..c697dad 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,6 @@
{
"require": {
+ "php": ">=5.4.0",
"curl/curl": "dev-master",
"phpunit/phpunit": "4.1.*",
@matsubo
matsubo / credit_card_bin_codes.md
Last active April 25, 2025 16:14
Credit Card Bin Codes

概要

クレジットカード番号には法則があり、先頭6桁でカードの種類を識別、分類することができる。

詳細はISO/IEC 7812で規定されている。

ISO/IEC 7812 - Wikipedia https://ja.wikipedia.org/wiki/ISO/IEC_7812

先頭の6桁を銀行識別番号(Bank Identification Number、略称:BIN)ないしは発行者識別番号(Issuer Identification Number、略称:IIN)と呼び、この先頭6桁でカード発行会社(イシュア、issuer)が判るようになっている。

<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Sample Page</title>
<meta name="author" content="Yuki Matsukura">
</head>
<body>
<form>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Sample Page</title>
<meta name="author" content="Yuki Matsukura">
</head>
<body>
<form>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Sample Page</title>
<meta name="author" content="Yuki Matsukura">
</head>
<body>
<form>
@matsubo
matsubo / audience.json
Created August 21, 2014 10:15
audience count
{
"data": [
{
"id": 6002839660079,
"name": "Cosmetics",
"path": [
"Shopping and fashion",
"Beauty",
"Cosmetics"
],
{
"data": [
{
"id": 6002839660079,
"name": "化粧品",
"path": [
"買い物・ファッション",
"美容",
"化粧品"
],
@matsubo
matsubo / -
Created August 21, 2014 10:22
{
"data": [
{
"id": 6002839660079,
"name": "\\u5316\\u7ca7\\u54c1",
"path": [
"\\u8cb7\\u3044\\u7269\\u30fb\\u30d5\\u30a1\\u30c3\\u30b7\\u30e7\\u30f3",
"\\u7f8e\\u5bb9",
"\\u5316\\u7ca7\\u54c1"
],
@matsubo
matsubo / iac_and_ii.md
Last active August 29, 2015 14:06
IaC And II trends.

Trends

  • IaC (Infrastructure as Code)
  • II (Immutable Infrastructure)

Player

  • Configuration management
  • Vagrant