Skip to content

Instantly share code, notes, and snippets.

Kenji Naito kenjiskywalker

Block or report user

Report or block kenjiskywalker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nekojaxa /
Last active Aug 27, 2018
sudo yum -y install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://
cd yasm
autoreconf -fiv
View td-agent-aws-billing.conf
# AWS TOTAL Billing information
type cloudwatch
tag cloudwatch-billing.amount
namespace AWS/Billing
metric_name EstimatedCharges

What this?

So one of the painful points of using docker on OS X is that you need to run a virtualbox VM, which often suffers from performance issues. With xhyve, a OS X virtualization system, and docker-machine-xhyve you can now have docker use the native OS X hypervisor to run containers.

No more dealing with virtualbox shenanigans!

In this script, I've also set up a way to autoconfigure terminal sessions to load docker's environment vars (dependent on docker-machine) so you do not have to run eval $(docker-machine env whatever) every time you open a new terminal window.


ainame /
Last active Oct 4, 2017



井戸端iOS飯とは、昼休み1時間+MTG分の30分の計1時間30分を利用して、 NBFオフィスのコラボのプロジェクターとスクリーンを利用して、 最新のスマホアプリ開発技術に関する動画を見ながらご飯を食べて、 交流する場です。


View Dockerfile
FROM yoku0825/cent66:init
RUN echo "NETWORKING=yes" > /etc/sysconfig/network
RUN yum install -y which
RUN rpm -ivh
RUN rpm -ivh
RUN yum install -y mysql-community-mroonga groonga-tokenizer-mecab
RUN service mysqld start && mysql -e "GRANT ALL ON *.* TO root@'%' WITH GRANT OPTION"
andystanton / Start up local Docker Machine on OSX
Last active Jul 20, 2019
Start up local Docker Machine on OSX automatically.
View Start up local Docker Machine on OSX


This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine to administer the local Docker engine.


  • Docker Machine + Docker
  • curl
  • A Virtualbox-driven Docker Machine called "default" docker-machine create --driver virtualbox default (this is the default with Docker toolkit).
vgeshel / function.js
Last active Sep 17, 2019
AWS Lambda function for forwarding SNS notifications to Slack
View function.js
console.log('Loading function');
const https = require('https');
const url = require('url');
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration
const slack_url = '';
const slack_req_opts = url.parse(slack_url);
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};
onk / .rubocop.yml
Last active Jan 15, 2018
僕の使っている .rubocop.yml
View .rubocop.yml
# rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました
onkcop: "config/rubocop.yml"
kamipo / server_id
Created Feb 11, 2015
View server_id
#!/usr/bin/perl -l
use strict;
use warnings;
$ENV{LANG} = "C";
$ENV{PATH} ||= "/usr/local/bin:/usr/bin/:/bin";
my $eth = shift || "eth0";
`ip addr list dev $eth|grep 'inet '` =~ m{\.(\d+?)\.(\d+?)\/};
everpeace / Why People Want
Last active May 4, 2019
View Why People Want







You can’t perform that action at this time.