Skip to content

Instantly share code, notes, and snippets.

View stelcheck's full-sized avatar

Marc Trudel stelcheck

View GitHub Profile
@stelcheck
stelcheck / gist:9086085
Created February 19, 2014 04:29
VERR_VM_FATAL_WAIT_ERROR on OSX
VirtualBox VM 4.3.2 r90405 darwin.amd64 (Nov 1 2013 15:42:35) release log
00:00:00.059041 Log opened 2014-02-16T01:17:02.356778000Z
00:00:00.059041 Build Type: release
00:00:00.059041 OS Product: Darwin
00:00:00.059041 OS Release: 13.0.0
00:00:00.059041 OS Version: Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
00:00:00.059881 DMI Product Name: MacBookPro8,1
00:00:00.059949 DMI Product Version: 1.0
00:00:00.059957 Host RAM: 8192MB total, 5071MB available
00:00:00.059959 Executable: /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless
@stelcheck
stelcheck / first
Last active August 29, 2015 13:56
npm publish fail
mt@kodachi:~/node-graylog2 (node-graylog2.git::master)$ npm publish
Now using NPM under Node.js v0.6.11
npm http PUT https://registry.npmjs.org/graylog2
npm http 201 https://registry.npmjs.org/graylog2
npm http GET https://registry.npmjs.org/graylog2
npm http 200 https://registry.npmjs.org/graylog2
npm http PUT https://registry.npmjs.org/graylog2/0.1.2/-tag/latest
npm http 201 https://registry.npmjs.org/graylog2/0.1.2/-tag/latest
npm http GET https://registry.npmjs.org/graylog2
npm http 200 https://registry.npmjs.org/graylog2
testing gist cli
@stelcheck
stelcheck / compile.sh
Last active August 29, 2015 14:04
MAGE test
g++ -g -Wall -std=c++0x -DHTTP_CONNECTOR -I ./src -I ./vendor/libjson-rpc-cpp/src -L ./vendor/libjson-rpc-cpp/build/out -L ./build -ljsonrpc -lmage -ldl /usr/lib/libcurl.dylib examples/test.cpp -o examples/test
@stelcheck
stelcheck / keybase.md
Created September 23, 2014 07:21
keybase.md

Keybase proof

I hereby claim:

  • I am stelcheck on github.
  • I am stelcheck (https://keybase.io/stelcheck) on keybase.
  • I have a public key whose fingerprint is 3F52 E937 81F2 D063 98A7 4B81 CDDD DB5F 58B9 642D

To claim this, I am signing this object:

@stelcheck
stelcheck / .bash_profile
Last active August 29, 2015 14:15
Tweet updates in your terminal
TWEET_FEED="/tmp/tweets"
TWEET_FEED_PIDFILE="/tmp/tweets.pid"
checkTweetsFetcher () {
TWEET_FEED_PID="$(cat ${TWEET_FEED_PIDFILE} 2> /dev/null)"
if
! kill -0 "${TWEET_FEED_PID}" 2> /dev/null
then
echo -n "Starting tweet feed check... " | green | bold
@stelcheck
stelcheck / gist:1604806
Created January 13, 2012 05:25
Example TryCatch
/** MySQL Table structure:
--
-- Table structure for table `actors`
--
CREATE TABLE IF NOT EXISTS `actors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'test',
`creation` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
@stelcheck
stelcheck / gist:1620003
Created January 16, 2012 09:43
Where try catch will get the wrong idea...
var http = require("http"),
fs = require("fs"),
colors = require("colors"),
util = require("util"),
trycatch = require("trycatch"),
events = require("events");
console.log("Creating Web Server...".grey);
// We create the emit object - Imagine this is a server instance
@stelcheck
stelcheck / changes.diff
Created March 15, 2012 14:18
Suggested changes
diff --git a/lib/puppet/provider/package/pear.rb b/lib/puppet/provider/package
index 013b6b6..d595b47 100644
--- a/lib/puppet/provider/package/pear.rb
+++ b/lib/puppet/provider/package/pear.rb
@@ -22,7 +22,7 @@ Puppet::Type.type(:package).provide :pear, :parent => Puppet
begin
list = execute(command).collect do |set|
if hash[:justme]
- if set =~ /^hash[:justme]/
+ if set[0,hash[:justme]].downcase == hash[:justme].downcase
@stelcheck
stelcheck / add_this_to_your_bash_profile.sh
Created July 11, 2013 01:22
Pretty print QOTD server quote on shell open
#!/usr/bin/env bash
if [ ! -d ~/.bash.d ]; then
pushd ~;
git clone https://github.com/stelcheck/libbash.git .bash.d;
popd;
fi
. ~/.bash.d/colorize.sh
. ~/.bash.d/networking.sh