Skip to content

Instantly share code, notes, and snippets.

View riaf's full-sized avatar
🏠
Working from home

Keisuke SATO riaf

🏠
Working from home
View GitHub Profile
<?php
/**
* csv-split.php
*
* ```sh
* php csv-split.php -n 1000 -f input.csv
* ```
*
* @author Keisuke SATO <sato@crocos.co.jp>
*/
@charset "UTF-8";
/* MS Pゴシック -> ヒラギノ角ゴ */
@font-face {
font-family: "MS Pゴシック";
src: local("HiraKakuPro-W3");
}
@font-face {
font-family: "MS PGothic";
src: local("HiraKakuPro-W3");
@riaf
riaf / gist:5268561
Created March 29, 2013 03:23
Route53 で管理しているドメインを一覧で見たかったので
AWS = require "aws-sdk"
AWS.config.update
accessKeyId: "chacococco"
secretAccessKey: "chacococco"
region: "us-east-1"
route53 = new AWS.Route53
route53.client.listHostedZones {}, (err, data) ->
#!/bin/sh
set -e
echo -n "Project name: "
read PROJNAME
if [ ! "$PROJNAME" ]; then
echo "Abort."
exit 1
fi
#!/usr/bin/env node
var https = require('https')
, fs = require('fs')
, async = require('async');
var users = [
{
id: "riaf",
password: "$1$ZHEt3vNX$8pQ/szk.keG9.QAgY6sI4/",
// ==UserScript==
// @name GitHub PR counter
// @namespace jp.riaf.github.pull-counter
// @description GitHub pull request review counter
// @author Keisuke SATO <sato@crocos.co.jp>
// @run-at document-end
// @match https://github.com/*/pull/*
// @version 1.0
// ==/UserScript==
@riaf
riaf / debian8.sh
Created October 10, 2015 17:10
Debian Jessie for IDCF Cloud
#!/bin/sh
mkdir -p /tmp/debian
cd /tmp/debian
curl -LO curl -LO http://s3.eu-central-1.amazonaws.com/ffuenf-vagrantboxes/debian/debian-8.2.0-amd64_vmware.box
tar xf debian-8.2.0-amd64_vmware.box
ovftool debian-8.2.0-amd64.vmx debian-8.2.0-amd64.ova
cp debian-8.2.0-amd64.ova ~/Dropbox/Public/
rm -rf /tmp/debian
curl -X POST -d 'word=wowow' -d 'pronounce=ヲゾゾ' http://yomikata.org/ajax/vote.php
@riaf
riaf / destinations.json
Created July 24, 2012 06:22 — forked from hokkai7go/destinations.yaml
It is used to decide where I travel (in JS)
["Taiwan", "NZL"]
@riaf
riaf / destinations
Created July 24, 2012 06:08 — forked from hokkai7go/destinations.yaml
It is used to decide where I travel (in PHP)
Taiwan
NZL