Skip to content

Instantly share code, notes, and snippets.

View killtheliterate's full-sized avatar

Garrett Dawson killtheliterate

View GitHub Profile
@killtheliterate
killtheliterate / brew -v install mysql
Created April 19, 2012 14:29
Output of brew -v install mysql
Homebrew 0.9
==> Downloading http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.20.tar.gz
Already downloaded: /Users/killtheliterate/Library/Caches/Homebrew/mysql-5.5.20.tar.gz
/usr/bin/tar xf /Users/killtheliterate/Library/Caches/Homebrew/mysql-5.5.20.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file scripts/mysql_config.sh
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.20 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDIR=/usr/local/Cellar/mysql/5.5.20/share/man -DINSTALL_DOCDIR=/usr/local/Cellar/mysql/5.5.20/share/doc/mysql -DINSTALL_INFODIR=/usr/local/Cellar/mysql/5.5.20/share/info -DINSTALL_MYSQLSHAREDIR=share/mysql -DWITH_SSL=yes -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DSYSCONFDIR=/usr/local/etc -DWITH_UNIT_TESTS=OFF -DWITH_READLINE=yes
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.20 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDIR=/usr/local/Cellar/mysql/5.5.20/share/man -DINSTALL_DOCDIR=/usr/local/Cellar/mysql/5.
@killtheliterate
killtheliterate / CMakeCache.txt
Created April 19, 2012 16:29
Homebrew log file
# This is the CMakeCache file.
# For build in directory: /tmp/homebrew-mysql-5.5.20-tanT/mysql-5.5.20
# It was generated by CMake: /usr/local/Cellar/cmake/2.8.8/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
@killtheliterate
killtheliterate / gist:5646655
Last active April 8, 2020 17:37
Mixin for applying svg sprites with png fallback. $icon-sprites adheres to the compass sprites naming convention, so be mindful that "icon" is dependent on your directory structure and names. See http://bit.ly/15yEcAW
@killtheliterate
killtheliterate / gist:5904551
Last active December 19, 2015 05:29
Dapper Drupal - Reference for a presentation by myself and @pixel_whip
Links presented in http://bit.ly/11Unm7E
Photo Credits:
Slide 1 - http://bit.ly/141n1US
Slide 4 - http://bit.ly/12ifyN0
Folks I talked with:
Stanford Web Services - http://stanford.io/16qmvQA
Kalamuna - http://bit.ly/19fE7E5
Code Enigma - http://bit.ly/14QwLSQ
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));
function voff() {
DATVM=`VBoxManage list runningvms | awk '{gsub(/"/, "", $1); print $1}'`
VBoxManage controlvm $DATVM poweroff
}
@killtheliterate
killtheliterate / gist:62ff5163f3633b694a64
Last active August 29, 2015 14:02
git hook recommendations

Git hooks to validate code style

This recommendation is motivated by the fact that a common code style will reduce extraneous git diffs caused by formatting differences. The git log will be more parseable.

A pre-commit hook is the appropriate hook to use for validating code changes before committing. We can use a precommit hook to:

  • Validate JavaScript with jshint: example
  • Validate white space usage: example
  • Run staged files through js-beautify, in verify-only mode
(function(first) {
return function(second) { // this function is a closure, as it closes around its containing scope
return first + second;
}
}(1)(1));
'these are some words that i want to search for a thing, and i am searching, yea, searching'.match(new RegExp('thing')).length;
var counter = function(wordToCount, findIn) {
return findIn.match(new RegExp(wordToCount, 'g')).length;
};