Skip to content

Instantly share code, notes, and snippets.

View Dockerfile
FROM busybox
ENTRYPOINT ["/bin/cat"]
CMD ["/etc/passwd"]
banyan / settings.json
Created Feb 8, 2020
Configure font to look like codesandbox in vscode
View settings.json
"editor.fontFamily": "Dank Mono, Menlo, 'Source Code Pro'",
"editor.fontSize": 13,
"editor.tokenColorCustomizations": {
"textMateRules": [
"scope": [
"settings": {

test of http-proxy-middleware

> node-sass@1.1.0 install /jenkins/workspace/Tutor Client (deploy to edge)/node_modules/sass-brunch/node_modules/node-sass
> node build.js

`linux-x64-v8-3.14` exists; testing
make: Entering directory `/jenkins/workspace/Tutor Client (deploy to edge)/node_modules/sass-brunch/node_modules/node-sass/build'
  CXX(target) Release/
cc1plus: error: unrecognized command line option ‘-std=c++11’
cc1plus: error: unrecognized command line option ‘-std=c++11’
make: *** [Release/] Error 1
banyan /
Last active Aug 29, 2015
Most of quotation comes from this post:

React Overview

Why did we build React?

  • React isn't an MVC framework.
  • React doesn't use templates.

It's used by

  • Facebook
banyan / Gemfile
Created Jun 12, 2014
oj benchmark
View Gemfile
source ''
gem 'multi_json'
gem 'yajl-ruby'
gem 'json'
gem 'oj'
banyan / papertrail-settings-for-rails4.rb
Last active Jan 2, 2016
papertrail setttings for rails4 application
View papertrail-settings-for-rails4.rb
# config/environments/production.rb
# Be sure to add remote_syslog_logger to Gemfile
config.after_initialize do
require "remote_syslog_logger"
require "uri"
url = URI.parse(ENV["SYSLOG_URL"])
logger =, url.port, program: "#{url.path[1..-1]}-#{Rails.env}")
View post-commit
systemsetup -getusingnetworktime | grep On >/dev/null 2>&1
if [ $? -ne 0 ]; then
systemsetup -setusingnetworktime on
echo "Hi, bring back to now from a future."
sleep 1
git commit -C HEAD --amend --date="`LANG=en date`"
View update-irc-hooks-events.rb
#!/usr/bin/env ruby
require 'pit'
require 'octokit'
slug = ARGV[0]
unless slug
abort "Usage #{$0} slug"
banyan / gist:6778539
Created Oct 1, 2013
4th-token for benesse
View gist:6778539
basic_201310, 993485
basic_201310, 328750
basic_201310, 546413
basic_201310, 704981
basic_201310, 167810
basic_201310, 303238
basic_201310, 797833
basic_201310, 121456
basic_201310, 092737
basic_201310, 490033