Skip to content

Instantly share code, notes, and snippets.

View andywenk's full-sized avatar

Andreas Wenk andywenk

View GitHub Profile
nodejs# ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
nodejs# make
Waf: Entering directory `/media/duke/Documents/workspace/git-repos/nodejs/build'
DEST_OS: linux
DEST_CPU: x86
[51/67] cxx: src/node.cc -> build/default/src/node_4.o
../src/node.cc: In function ‘const char* node::signo_string(int)’:
../src/node.cc:728: error: duplicate case value
../src/node.cc:724: error: previously used here
../src/node.cc:744: error: duplicate case value
../src/node.cc:740: error: previously used here
# node process.js
ReferenceError: basicRequire is not defined
at EventEmitter.openStdin (node.js:144:13)
at Object.<anonymous> (/media/duke/Documents/workspace/nodejs/process.js:6:21)
at Module._compile (module:385:23)
at module:413:20
at fs:52:23
at node.js:175:9
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
#[ -z "$PS1" ] && return
if [[ -n $PS1 ]] ; then
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
@andywenk
andywenk / gist:875042
Created March 17, 2011 20:16
node compile error
[73/75] cxx: src/platform_darwin.cc -> build/default/src/platform_darwin_4.o
/usr/bin/g++ -pthread -arch x86_64 -g -O3 -DHAVE_OPENSSL=1 -DHAVE_MONOTONIC_CLOCK=0 -DEV_FORK_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_MULTIPLICITY=0 -DX_STACKSIZE=65536 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEV_MULTIPLICITY=0 -DHAVE_FDATASYNC=0 -DPLATFORM="darwin" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -DNDEBUG -Idefault/src -I../src -Idefault/deps/libeio -I../deps/libeio -Idefault/deps/http_parser -I../deps/http_parser -Idefault/deps/v8/include -I../deps/v8/include -Idefault/deps/libev -I../deps/libev -Idefault/deps/c-ares -I../deps/c-ares -Idefault/deps/c-ares/darwin-x64 -I../deps/c-ares/darwin-x64 -Ideps/v8/include ../src/platform_darwin.cc -c -o default/src/platform_darwin_4.o
../src/platform_darwin.cc:213: error: expected constructor, destructor, or type conversion before ‘<’ token
Waf: Leaving directory `/Users/duke/Library/node/build'
Build failed: -> task failed (err #1):
{task: cxx platform_darwin.cc -> p
@andywenk
andywenk / suqeeze.update
Created May 9, 2011 10:17
squeeze update
Unable to migrate to dependency-based boot system │
│ │
│ Tests have determined that problems in the boot system exist which prevent migration to dependency-based boot sequencing: │
│ │
│ insserv: warning: script 'K20couchbase-server' missing LSB tags and overrides, insserv: warning: script 'S19firewall' missing LSB tags and │
│ overrides, insserv: warning: script 'S25libdevmapper1.02' missing LSB tags and overrides, insserv: script postgresql: service postgresql already │
│ provided!, insserv: warning: script 'libdevmapper1.02' missing LSB tags and overrides, insserv: warn
@andywenk
andywenk / error_converting_less_to_scss
Created July 13, 2011 10:40
error while converting less to scss
using ruby-1.9.2-p180, rails (3.0.7), haml (3.1.2) and sass (3.1.4, 3.1.3)
$ sass-convert --from less --to scss --recursive . --trace
* NOTE: Sass and Less are different languages, and they work differently.
* I'll do my best to translate, but some features -- especially mixins --
* should be checked by hand.
convert ./qraex.less
overwrite ./qraex.scss
/Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/less.rb:40:in `alias_method': undefined method `build' for module `Less::StyleSheet::Mixin4' (NameError)
@andywenk
andywenk / jsconf-eu-2011.md
Created October 6, 2011 21:38 — forked from mattpodwysocki/jsconf-eu-2011.md
JSConf.EU Slides
@andywenk
andywenk / Vagrantfile
Created February 6, 2012 23:00
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.name = "app"
config.vm.forward_port 22, 2222
config.vm.forward_port 80, 8080
#config.vm.network :bridged
config.vm.network :hostonly, "33.33.33.10"
config.vm.share_folder "puppet", "etc/puppet", "."
@andywenk
andywenk / cdbr
Created May 8, 2012 22:00
CouchDB rewriting
in _design/simple
"rewrites": [
{
"from": "/all",
"to": "_list/html/all_database_types",
"method": "GET",
"query": {
"reduce": false
}