Skip to content

Instantly share code, notes, and snippets.

View affixalex's full-sized avatar

Alex Caudill affixalex

View GitHub Profile
static char *create_argv_buffer(int argc, char *argv[]) {
size_t s,c = 0;
char *p;
FILE *r = open_memstream(&p, &s);
if(r==NULL) {
p=NULL;
return p;
}
make: Entering directory '/home/admin/myapp/node_modules/sass-brunch/node_modules/node-sass/build'
CXX(target) Release/obj.target/binding/src/binding.o
CXX(target) Release/obj.target/binding/src/sass_context_wrapper.o
CXX(target) Release/obj.target/binding/src/libsass/ast.o
CXX(target) Release/obj.target/binding/src/libsass/base64vlq.o
CXX(target) Release/obj.target/binding/src/libsass/bind.o
CC(target) Release/obj.target/binding/src/libsass/cencode.o
CXX(target) Release/obj.target/binding/src/libsass/constants.o
CXX(target) Release/obj.target/binding/src/libsass/context.o
CXX(target) Release/obj.target/binding/src/libsass/contextualize.o
@affixalex
affixalex / gist:50a9e878e876143b6ae6
Created July 13, 2015 20:50
Any reason why this is retarded?
# based on https://www.joyent.com/blog/configuring-an-infrastructure-container-to-send-email-using-postfix-and-sendgrid
pkgin up
pkgin install cy2-plain
cat <<EOF>>/opt/local/etc/postfix/main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:yourSendGridUsername:yourSendGridPassword
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = encrypt
root@meek:/var/svc/log# /opt/local/bin/rethinkdb --config-file /opt/local/etc/rethinkdb.conf
Running rethinkdb 2.0.2-fallback (GCC 4.7.4)...
Running on SunOS 5.11 i86pc
Loading data from directory /var/rethinkdb/default
Listening for intracluster connections on port 29015
Listening for client driver connections on port 28015
Listening for administrative HTTP connections on port 8080
Listening on addresses: 127.0.0.1, ::1
To fully expose RethinkDB on the network, bind to all addresses by adding `bind=all' to the config file (/opt/local/etc/rethinkdb.conf).
Server ready, "meek_9m9" cd7bb6eb-06a0-40a6-af80-2b5beb7e64de
@affixalex
affixalex / gist:faf374d802307918a62f
Created July 20, 2015 04:56
sass-brunch on Illumos
alex@meek:/usr/home/alex/sass-brunch$ npm test
> sass-brunch@2.0.0 test /usr/home/alex/sass-brunch
> mocha
module.js:355
Module._extensions[extension](this, filename);
^
Error: ld.so.1: node: fatal: libsass.so.0: open failed: No such file or directory
execve("/opt/local/bin/node", 0xFFFFFD7FFFDFFC58, 0xFFFFFD7FFFDFFC78) argc = 3
sysinfo(SI_MACHINE, "i86pc", 257) = 6
mmap(0x00000000, 56, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF390000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF380000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF370000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF360000
memcntl(0xFFFFFD7FFF398000, 99384, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF350000
memcntl(0x00400000, 3332328, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
resolvepath("/usr/lib/amd64/ld.so.1", "/lib/amd64/ld.so.1", 1023) = 18
set -g utf8
set-window-option -g utf8 on
unbind C-b
# Use GNU screen style crtl-a prefix
set -g prefix C-a
bind C-a send-prefix
# Reload the config file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Make it easy to split and swap windows
bind | split-window -h
alex@meek:/usr/home/alex$ psrinfo -pv
The physical processor has 4 virtual processors (0-3)
x86 (AuthenticAMD 100F23 family 16 model 2 step 3 clock 1808 MHz)
AMD Phenom(tm) 9150e Quad-Core Processor [ Socket: AM2r2 ]
alex@meek:/usr/home/alex$ isainfo -v
64-bit amd64 applications
amd_svm amd_lzcnt popcnt amd_sse4a tscp ahf cx16 sse3 sse2 sse fxsr
amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
# m
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
vagrant@omnios-vagrant:/export/home/vagrant$ clang -v
clang version 3.6.1 (tags/RELEASE_361/final)
Target: x86_64-sun-solaris2.11
Thread model: posix
vagrant@omnios-vagrant:/export/home/vagrant$ cat << EOF > hello.c
> #include <stdio.h>
> int main(int argc, char *argv[]) {
> printf("Hello, world!\n");
> }
> EOF