Skip to content

Instantly share code, notes, and snippets.

View ashleyw's full-sized avatar
🎯
Focusing

Ashley Williams ashleyw

🎯
Focusing
View GitHub Profile
@ashleyw
ashleyw / edgefs-cluster.yml
Last active October 14, 2019 18:43
Corosync boot issue
apiVersion: v1
kind: Namespace
metadata:
name: rook-edgefs
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: rook-edgefs-cluster
namespace: rook-edgefs
@ashleyw
ashleyw / index.js
Created October 12, 2017 14:31
requirebin sketch
var React = require('react');
const _extends = Object.assign || function (target) { for (let i = 1; i < arguments.length; i++) { const source = arguments[i]; for (const key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
const _createClass = (function () { function defineProperties(target, props) { for (let i = 0; i < props.length; i++) { const descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }());
const React2 = _interopRequireDefault(React);
const _propTypes = require('prop-types');
#!/bin/sh
find $PWD -type d -maxdepth 5 -name node_modules | xargs -n1 tmutil addexclusion
@ashleyw
ashleyw / gist:5944968
Last active December 19, 2015 10:59
Took a while to track this conflict down while trying to install RethinkDB...
% brew install boost (add --interactive to be able to view bootstrap.log!)
./bootstrap.sh --prefix=/usr/local/Cellar/boost/1.53.0 --libdir=/usr/local/Cellar/boost/1.53.0/lib --without-icu
-n Building Boost.Build engine with toolset darwin...
Failed to build Boost.Build build engine
Consult 'bootstrap.log' for more details
Fix, via https://github.com/mxcl/homebrew/issues/12457#issuecomment-5992798:
{
"absolute": true,
"item" : [
{ "text" : "", "value" : 123},
{ "text" : "", "value" : 123}
]
}
@ashleyw
ashleyw / gist:2471449
Created April 23, 2012 14:56
Building mruby w/ Emscripten
make -C mrblib --no-print-directory CC=/Users/ashley/Developer/emscripten/emcc LL=/Users/ashley/Developer/emscripten/emcc
make -C ../tools/mrbc --no-print-directory CC=/Users/ashley/Developer/emscripten/emcc LL=/Users/ashley/Developer/emscripten/emcc
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/../tools/mrbc/mrbc.c -o ../../src/../tools/mrbc/mrbc.o
clang: warning: argument unused during compilation: '-nostdinc++'
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/array.c -o ../../src/array.o
clang: warning: argument unused during compilation: '-nostdinc++'
../../src/array.c:922:9: warning: variable 'times' is uninitialized when used here [-Wuninitialized]
while(times--) {
^~~~~
../../src/array.c:916:16: note: initialize the variable 'times' to silence this warning
20/04/2012 17:50:14 GMT
Assertion status system-wide:
ChargeInhibit 0
PreventUserIdleDisplaySleep 0
PreventUserIdleSystemSleep 0
NoRealPowerSources_debug 0
CPUBoundAssertion 0
EnableIdleSleep 1
PreventSystemSleep 0
DisableInflow 0
Oct 15 21:00:10 Ashleys-iMac kernel[0]: Wake reason: EHC1
Oct 15 21:00:10 Ashleys-iMac kernel[0]: /drv/ MacModule.cpp:298 powerStateWillChangeTo: flags=82 stateNumber=3
Oct 15 21:00:10 Ashleys-iMac kernel[0]: /drv/ MacModule.cpp:299 powerStateWillChangeTo: found flag=kIOPMPowerOn (2)
Oct 15 21:00:10 Ashleys-iMac kernel[0]: /drv/ MacModule.cpp:304 powerStateWillChangeTo: found flag=kIOPMRestartCapability (80)
Oct 15 21:00:10 Ashleys-iMac kernel[0]: /drv/ MacModule.cpp:298 powerStateDidChangeTo: flags=82 stateNumber=3
Oct 15 21:00:10 Ashleys-iMac kernel[0]: /drv/ MacModule.cpp:299 powerStateDidChangeTo: found flag=kIOPMPowerOn (2)
Oct 15 21:00:10 Ashleys-iMac kernel[0]: /drv/ MacModule.cpp:304 powerStateDidChangeTo: found flag=kIOPMRestartCapability (80)
Oct 15 21:00:10 Ashleys-iMac kernel[0]: Previous Sleep Cause: 5
Oct 15 21:00:10 Ashleys-iMac kernel[0]: The USB device HubDevice (Port 1 of Hub at 0xfd000000) may have caused a wake by issuing a remote wakeup (2)
// ==UserScript==
// @name Pinboard
// @namespace pinboard.com
// @include https://pinboard.in*
// ==/UserScript==
var privates = document.getElementsByClassName("private");
for (i = 0; i < privates.length; i++) {
privates[i].className = "bookmark";
@ashleyw
ashleyw / gist:1332340
Created November 2, 2011 00:03
MagLev with rbenv
# until @sstephenson pulls this: https://github.com/sstephenson/ruby-build/pull/85
git clone https://github.com/jc00ke/ruby-build
cd ruby-build
./install.sh
rbenv install maglev-1.0.0
ruby -v -e 'puts :a'