Skip to content

Instantly share code, notes, and snippets.

View brycethornton's full-sized avatar

Bryce Thornton brycethornton

View GitHub Profile

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@Voronenko
Voronenko / downgrademysql.md
Last active June 25, 2020 11:45
Downgrade mysql to mysql 5.6 on xenial

Install MySQL 5.6 in Ubuntu 16.04

Ubuntu 16.04 only provides packages for MySQL 5.7 which has a range of backwards compatibility issues with code written against older MySQL versions.

Oracle maintains a list of official APT repositories for MySQL 5.6, but those repositories do not yet support Ubuntu 16.04. However, the 15.10 repos will work for 16.04.

Uninstall existing mysql 5.7 if any

sudo apt remove mysql-client mysql-server libmysqlclient-dev mysql-common
@rauhryan
rauhryan / Notes.md
Last active September 14, 2015 13:37
HuBoard Enterprise - 1.6.92 Release notes

HuBoard Enterprise - 1.6.93 Release notes

The 1.6.93 HuBoard Enterprise package release in now available for download from https://enterprise.huboard.com/download.

This release is full of bug fixes and performance wins! It includes 82 commits and 19 pull requests!

Improvements

  • Refactors the client-side eventing infrastructure
  • Upgrades to ember 1.13.8
@adamalbrecht
adamalbrecht / coffeescript_rest_api_wrappers.coffee
Last active August 29, 2015 13:57
Simplified CoffeeScript wrappers for my REST API.
class BaseAPI
constructor: (@route, @options={}) ->
# Some extra logic based on @options. Mine involves setting up optional parent routes for nested resources.
getList: (params={}) ->
# GET request using @route and the params. Returns a promise.
get: (id, params={}) ->
# GET request using @route, id and params. Returns a promise.
@jdillick
jdillick / generate-strongarms.php
Last active August 29, 2015 13:56
Drush script to generate strongarm variables module for a site
<?php
$args = drush_get_arguments();
if ( ! isset($args[2]) ) {
drush_set_error('Usage: drush @<alias> scr generate-strongarm.php <module_name> <base_path>');
exit();
}
$module_name = $args[2];
if ( ! isset($args[3]) ) {
@sstephenson
sstephenson / gist:771090
Created January 8, 2011 19:41
Automatic *.test host resolution in OS X
$ sudo su -
# mkdir /etc/resolver
# cat > /etc/resolver/test
nameserver 127.0.0.1
port 2155
^D
^D
$ brew install dnsmasq
$ dnsmasq --port=2155 --no-resolv --address=/.test/127.0.0.1
$ ping foo.test
@subtleGradient
subtleGradient / appify
Created November 11, 2010 16:03
appify. Create the simplest possible mac app from a shell script
#!/usr/bin/env bash
#
# url : https://gist.github.com/672684
# version : 2.0.2
# name : appify
# description : Create the simplest possible mac app from a shell script.
# usage : cat my-script.sh | appify MyApp
# platform : Mac OS X
# author : Thomas Aylott <oblivious@subtlegradient.com>
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@trevorturk
trevorturk / no_www.rb
Created November 3, 2009 05:03
no-www rack middleware
class NoWWW
STARTS_WITH_WWW = /^www\./i
def initialize(app)
@app = app
end
def call(env)
if env['HTTP_HOST'] =~ STARTS_WITH_WWW