Skip to content

Instantly share code, notes, and snippets.

View Dockerfile
FROM busybox
ENTRYPOINT ["/bin/cat"]
CMD ["/etc/passwd"]
@banyan
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": [
"comment",
],
"settings": {
View README.md

test of http-proxy-middleware

View log.md
> 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 Aug 29, 2015
Most of quotation comes from this post: http://www.phpied.com/remarkable-react/
View react-overview.md

React Overview

Why did we build React?

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

It's used by

  • Facebook
@banyan
banyan / Gemfile
Created Jun 12, 2014
oj benchmark
View Gemfile
source 'https://rubygems.org'
gem 'multi_json'
gem 'yajl-ruby'
gem 'json'
gem 'oj'
@banyan
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
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}")
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`"
fi
View update-irc-hooks-events.rb
#!/usr/bin/env ruby
require 'pit'
require 'octokit'
slug = ARGV[0]
unless slug
abort "Usage #{$0} slug"
end
@banyan
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
You can’t perform that action at this time.