Skip to content

Instantly share code, notes, and snippets.

View sam-github's full-sized avatar

Sam Roberts sam-github

View GitHub Profile
TAP version 13
# Subtest: pmctl
working dir for /home/sam/w/sn/strong-pm/test/test-pmctl-local.js is /home/sam/w/sn/strong-pm
exec `git clean -f -d -x .`
exec `git init`
exec `git add .`
exec `git commit --author="sl-pm-test <[email protected]>" -m initial`
exec `node "/home/sam/w/sn/strong-pm/node_modules/strong-build/bin/sl-build.js" --install --commit`
test/app built succesfully
pmcli: /home/sam/w/sn/strong-pm/bin/sl-pm.js [ '--base=.strong-pm', '--listen=0' ]
#!/bin/sh
WHAT="/home/sam/w rsync.net:"
LOG="--itemize-changes"
# --log-file=../backup-w.log
rsync -az -h --progress --delete --partial -F $LOG $WHAT
@sam-github
sam-github / argp-subcommand.c
Created December 4, 2014 05:35
argp subcommand example
/*
* Sample command line parser.
*
* Implements sub-commands with their own option handlers.
*
*/
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
@sam-github
sam-github / .gitignore
Last active August 29, 2015 14:06
add-keywords
node_modules
sam@samtu:~/w/sn/strong-build (feature/git-cleanup u=) % rm -rf node_modules
sam@samtu:~/w/sn/strong-build (feature/git-cleanup u=) % npm install
npm WARN deprecated [email protected]: Please upgrade to v1.0.2 or higher
[email protected] node_modules/debug
[email protected] node_modules/posix-getopt
[email protected] node_modules/async
[email protected] node_modules/shelljs
@sam-github
sam-github / -
Created June 18, 2014 17:24
distributed p2p config tools
1. sync chat: slack, irc, etc.
2. async: email
3. video: hangouts...
asana...
perch?
mozilla: do they have resources on sucessful patterns of remote work?
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'strong-cli' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/local/bin/node
5 verbose cache add [ 'strong-cli', null ]
var assert = require('assert');
var spawn = require('child_process').spawn;
module.exports = function Command(command, npmModule) {
return function(argv, options, loader) {
var options = {
env: process.env,
stdio: 'inherit',
windowsVerbatimArguments: true
{
"main": "zoning.js"
}
@sam-github
sam-github / -
Created January 18, 2014 01:02
> try{require('/etc/passwd')}catch(e){console.log('e<', e, '>')}
/etc/passwd:1
unction (exports, require, module, __filename, __dirname) { root:x:0:0:root:/r
^
e< [SyntaxError: Unexpected token :] >
undefined
> ^[[A^[[A^[[A