Skip to content

Instantly share code, notes, and snippets.

View johnwebbcole's full-sized avatar

John Cole johnwebbcole

View GitHub Profile
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
npm install -g log-color-highlight
$ cat ~/.lch.conf
-green ".* DEBUG .*"
-red ".* ERROR .*"
-yellow ".* WARNING .*"
-red.bold ".* FATAL .*"
(venv)01:19 PM ~/src/simplysnap (master)
$ simplysnap 2>&1 | lch -c .lch.conf
@johnwebbcole
johnwebbcole / caskupgrade.sh
Created February 3, 2017 16:12
bash script to upgrade all installed cask programs.
#!/usr/bin/env bash
while read cask version; do
current="$(brew cask info $cask | sed -n '1p' | sed -n 's/^.*: \(.*\)$/\1/p')"
if (! [[ " ${version} " == *" $current "* ]]); then
echo "$cask needs upgrading ${version} to $current."
(set -x; brew cask reinstall $cask;)
else
echo "$cask $version is up-to-date."
fi
// title : rpi test
// author : John Cole
// license : ISC License
// file : rpi-test.jscad
/* exported main, getParameterDefinitions */
function getParameterDefinitions() {
return [{
function main() {
util.init(CSG);
var cube = CSG.cube({
radius: 10
}).setColor(1, 0, 0);
var sphere = CSG.sphere({
radius: 5
}).setColor(0, 0, 1);
python2.7:
pkg:
- installed
- names:
- python2.7
- python2.7-dev
- python-pip
- python-virtualenv
New gist with XCode 5.0.1
$ brew doctor
Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.
Binaries provided by keg-only formulae may override system binaries