Skip to content

Instantly share code, notes, and snippets.

View cwonrails's full-sized avatar

Chris Watson cwonrails

View GitHub Profile
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.75)',
#!/usr/bin/env bash
gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
server {
listen 80;
server_name example.com www.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name example.com www.example.com;
@cwonrails
cwonrails / package.json
Created August 29, 2016 15:44 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
class Nghttp2 < Formula
desc "HTTP/2 C Library"
homepage "https://nghttp2.org/"
url "https://github.com/nghttp2/nghttp2/releases/download/v1.13.0/nghttp2-1.13.0.tar.xz"
sha256 "9d0ef97715049cd935fa0d965e6c807249549469aa95eb4dc67c69c2557d5bb2"
bottle do
sha256 "d6d83a888de2d5bab239c07e82b7e0a616fa7f468e1b7a36728c394864514bf0" => :el_capitan
sha256 "53e68aff40cf30c51c0647c2aac5eae67e65f17ceea80c9c4c5f0d0b4d98e5fe" => :yosemite
sha256 "8db00e45b8c58495467e6f4c14c6ed62387ff91610df967774a8726fb23a476b" => :mavericks
@cwonrails
cwonrails / # nghttp2 - 2016-08-18_10-24-54.txt
Created August 18, 2016 14:30
nghttp2 on Mac OS X 10.12 - Homebrew build logs
Homebrew build logs for nghttp2 on Mac OS X 10.12
Build date: 2016-08-18 10:24:54
@cwonrails
cwonrails / # nghttp2 - 2016-08-18_10-24-54.txt
Created August 18, 2016 14:26
nghttp2 on Mac OS X 10.12 - Homebrew build logs
Homebrew build logs for nghttp2 on Mac OS X 10.12
Build date: 2016-08-18 10:24:54
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive;
#initial values
init() {
pass_file='/root/mysql_passwd.txt'
# leave sub_folder empty if you don't want to make installation to a subfolder
sub_folder=""
web_address=""
#!/usr/bin/env bash
cd `brew --prefix`
git remote add origin https://github.com/mxcl/homebrew.git
git fetch origin
git reset --hard origin/master