Skip to content

Instantly share code, notes, and snippets.

Avatar

Marc Trudel stelcheck

View GitHub Profile
@stelcheck
stelcheck / gist:9086085
Created Feb 19, 2014
VERR_VM_FATAL_WAIT_ERROR on OSX
View gist:9086085
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 Aug 29, 2015
npm publish fail
View first
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
View -
testing gist cli
View compile.sh
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
View 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 Aug 29, 2015
Tweet updates in your terminal
View .bash_profile
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 Jan 13, 2012
Example TryCatch
View gist:1604806
/** 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 Jan 16, 2012
Where try catch will get the wrong idea...
View gist:1620003
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 Mar 15, 2012
Suggested changes
View changes.diff
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 Jul 11, 2013
Pretty print QOTD server quote on shell open
View add_this_to_your_bash_profile.sh
#!/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