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
@riaf
riaf / index.php
Last active August 29, 2015 13:58
testtest
<?hh
echo 'Hello from HHVM ' . HHVM_VERSION;
[
"about",
"ac",
"access",
"account",
"accounts",
"activate",
"ad",
"add",
"address",
@riaf
riaf / config.hdf
Created November 8, 2013 03:39
HHVM on Heroku for Symfony (or Silex) Application
Server {
SourceRoot = /app/web
DefaultDocument = index_dev.php
}
VirtualHost {
* {
Pattern = .*
RewriteRules {
* {
<?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==
curl -X POST -d 'word=wowow' -d 'pronounce=ヲゾゾ' http://yomikata.org/ajax/vote.php