Skip to content

Instantly share code, notes, and snippets.

View remy's full-sized avatar
🐹
Always hacking

Remy Sharp remy

🐹
Always hacking
View GitHub Profile
@remy
remy / out.txt
Created February 16, 2014 21:35
npm install connect issues @ February 16, 2014
» npm install connect ◉ ◼◼◼◼◼◻◻◻◻◻
npm ERR! Error: ENOENT, utime '/Users/remy/Sites/docs/node_modules/connect/node_modules/cookie/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Darwin 12.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "connect"
npm ERR! cwd /Users/remy/Sites/docs
npm ERR! node -v v0.10.25
@remy
remy / example.js
Last active August 29, 2015 13:56 — forked from sidorares/gist:9181766
node --expose_debug_as=v8debug example.js
function bbb(x) {
var cc = x + 1;
var dd = cc + 2;
JSON.parse("remy"); // causes exception
return dd;
}
setInterval(function() {
var aa = 123;
try {
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
# yolo
<input type="text" autofocus>
</body>
console.log('Calling console.log')
console.error('Calling console.error')
console.log('Calling console.log second time - fails')
console.error('Calling console.error second time - fails')
nonexisting.throwError()
@remy
remy / not-really-ruby.rb
Created March 21, 2014 14:53
I don't know ruby
require 'language_sniffer'
print LanguageSniffer.detect('foo/bar', :content => '<!doctype html>').language.name
var app = require('http').createServer(function (req, res) {
res.end('ok');
app.close();
}).listen(8000);
@remy
remy / log.md
Last active August 29, 2015 13:58
apt history

Start-Date: 2014-04-09 09:07:38 Commandline: apt-get upgrade openssl Upgrade: grub-legacy-ec2:amd64 (0.6.3-0ubuntu1.4, 0.6.3-0ubuntu1.13), dmsetup:amd64 (1.02.48-4ubuntu7.1, 1.02.48-4ubuntu7.4), libpci3:amd64 (3.1.8-2ubuntu5, 3.1.8-2ubuntu6), apt-transport-https:amd64 (0.8.16exp12ubuntu10.7, 0.8.16exp12ubuntu10.16), openssh-server:amd64 (5.9p1-5ubuntu1, 5.9p1-5ubuntu1.3), ubuntu-standard:amd64 (1.267, 1.267.1), libc-bin:amd64 (2.15-0ubuntu10.3, 2.15-0ubuntu10.5), iproute:amd64 (20111117-1ubuntu2, 20111117-1ubuntu2.1), libldap-2.4-2:amd64 (2.4.28-1.1ubuntu4.2, 2.4.28-1.1ubuntu4.4), base-files:amd64 (6.5ubuntu6.4, 6.5ubuntu6.7), libroken18-heimdal:amd64 (1.6git20120311.dfsg.1-2, 1.6git20120311.dfsg.1-2ubuntu0.1), bind9-host:amd64 (9.8.1.dfsg.P1-4ubuntu0.5, 9.8.1.dfsg.P1-4ubuntu0.8), procps:amd64 (3.2.8-11ubuntu6, 3.2.8-11ubuntu6.3), python-minimal:amd64 (2.7.3-0ubuntu2, 2.7.3-0ubuntu2.2), libgudev-1.0-0:amd64 (175-0ubuntu9.2, 175-0ubuntu9.5), liblockfile-bin:amd64 (1.09-3, 1.09-3ubuntu0.1), cloud-init:amd6

# vim:syntax=apparmor
# Last Modified: Tue Jun 19 17:37:30 2007
#include <tunables/global>
/usr/sbin/mysqld {
#include <abstractions/base>
#include <abstractions/nameservice>
#include <abstractions/user-tmp>
#include <abstractions/mysql>
#include <abstractions/winbind>
var binfile = (function () {
'use strict';
var re = /<\/script/ig;
function insertBefore(output, search) {
var parts = [];
var close = '';
if (output.indexOf(search) !== -1) {
parts.push(output.substring(0, output.lastIndexOf(search)));
parts.push(output.substring(output.lastIndexOf(search)));
#include <Wire.h>
#include "RTClib.h"
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// If using software SPI (the default case):
#define OLED_MOSI 9
#define OLED_CLK 10