Skip to content

Instantly share code, notes, and snippets.

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

test of http-proxy-middleware

@banyan
banyan / log.md
Last active August 29, 2015 14:08
> 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/obj.target/binding/binding.o
cc1plus: error: unrecognized command line option ‘-std=c++11’
cc1plus: error: unrecognized command line option ‘-std=c++11’
make: *** [Release/obj.target/binding/binding.o] Error 1
@banyan
banyan / react-overview.md
Last active August 29, 2015 14:05
Most of quotation comes from this post: http://www.phpied.com/remarkable-react/

React Overview

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

It's used by

  • Facebook
@banyan
banyan / Gemfile
Created June 12, 2014 07:42
oj benchmark
source 'https://rubygems.org'
gem 'multi_json'
gem 'yajl-ruby'
gem 'json'
gem 'oj'
@banyan
banyan / papertrail-settings-for-rails4.rb
Last active January 2, 2016 14:39
papertrail setttings for rails4 application
# config/environments/production.rb
# Be sure to add remote_syslog_logger to Gemfile
config.after_initialize do
if ENV["SYSLOG_URL"]
require "remote_syslog_logger"
require "uri"
url = URI.parse(ENV["SYSLOG_URL"])
logger = RemoteSyslogLogger.new(url.host, url.port, program: "#{url.path[1..-1]}-#{Rails.env}")
@banyan
banyan / post-commit
Last active December 28, 2015 22:49
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`"
fi
#!/usr/bin/env ruby
require 'pit'
require 'octokit'
slug = ARGV[0]
unless slug
abort "Usage #{$0} slug"
end
@banyan
banyan / gist:6778539
Created October 1, 2013 13:35
4th-token for benesse
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