Skip to content

Instantly share code, notes, and snippets.

@travispaul
travispaul / busses.patch
Created November 29, 2015 23:38
Update docs/Hardware/Busses
Index: layout.xml
===================================================================
RCS file: /cvsroot/htdocs/layout.xml,v
retrieving revision 1.488
diff -u -r1.488 layout.xml
--- layout.xml 23 Nov 2015 20:54:53 -0000 1.488
+++ layout.xml 29 Nov 2015 23:33:20 -0000
@@ -70,7 +70,18 @@
<tocentry page="docs/Hardware/Chips/index.xml" dir="Chips" filename=".">
<tocentry page="docs/Hardware/Chips/MIPS/index.xml" dir="MIPS" filename="."/>
Index: htdocs/ports/dreamcast/faq.html
===================================================================
RCS file: /cvsroot/htdocs/ports/dreamcast/faq.html,v
retrieving revision 1.30
diff -u -r1.30 faq.html
--- htdocs/ports/dreamcast/faq.html 8 Oct 2015 06:53:01 -0000 1.30
+++ htdocs/ports/dreamcast/faq.html 22 Nov 2015 16:40:23 -0000
@@ -168,7 +168,7 @@
</dt>
<dt>2.7. <a href="#endian">Is the Hitachi SuperH SH-4 little or big endian?</a>
@travispaul
travispaul / maple.patch
Created November 9, 2015 00:32
Add Maple Bus to list of Busses in htdocs
Index: layout.xml
===================================================================
RCS file: /cvsroot/htdocs/layout.xml,v
retrieving revision 1.485
diff -u -r1.485 layout.xml
--- layout.xml 9 Oct 2015 09:18:41 -0000 1.485
+++ layout.xml 8 Nov 2015 22:45:50 -0000
@@ -70,6 +70,7 @@
<tocentry page="docs/Hardware/Chips/index.xml" dir="Chips" filename=".">
<tocentry page="docs/Hardware/Chips/MIPS/index.xml" dir="MIPS" filename="."/>
Index: ssl-bozo.c
===================================================================
RCS file: /cvsroot/src/libexec/httpd/ssl-bozo.c,v
retrieving revision 1.18
diff -u -r1.18 ssl-bozo.c
--- ssl-bozo.c 17 Jul 2014 06:27:52 -0000 1.18
+++ ssl-bozo.c 8 Dec 2015 02:16:13 -0000
@@ -48,6 +48,10 @@
#define USE_ARG(x) /*LINTED*/(void)&(x)
#endif
@travispaul
travispaul / salt.patch
Created February 7, 2016 23:37
Update salt to 2015.8.5
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/salt/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- Makefile 4 Feb 2016 22:05:36 -0000 1.34
+++ Makefile 7 Feb 2016 23:33:54 -0000
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.34 2016/02/04 22:05:36 khorben Exp $
@travispaul
travispaul / salt.patch
Created December 16, 2015 23:32
salt.patch
commit ba76062950095850ec165be0be3584624da2046f
Author: Travis Paul <Tr@validusa.com>
Date: Wed Dec 16 23:20:36 2015 +0000
sysutils/salt: Fix cron module for SmartOS
Upstream PR sent: https://github.com/saltstack/salt/pull/29777
diff --git a/sysutils/salt/Makefile b/sysutils/salt/Makefile
index 2cd7c5a..67cdc71 100644
@travispaul
travispaul / pthread.c
Created February 7, 2016 20:59
pthread test
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <errno.h>
void *perform_work(void *argument)
{
int passed_in_value;
@travispaul
travispaul / bamboo-manifest.xml
Last active April 4, 2016 21:20
Example SMF Manifest for running Atlassian Bamboo on SmartOS
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="bamboo">
<service name="atlassian/bamboo" type="service" version="1">
<dependency name='network' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/milestone/network:default' />
</dependency>
<dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local:default' />
</dependency>
@travispaul
travispaul / mget.php
Created September 19, 2016 16:29
php-manta test
tpaul@mba:/Users/tpaul/Code/php-manta/examples
$ mget ~~/
{"name":"jobs","type":"directory","mtime":"2013-05-22T17:39:43.714Z"}
{"name":"public","type":"directory","mtime":"2013-05-22T17:39:43.714Z"}
{"name":"reports","type":"directory","mtime":"2013-05-22T17:39:43.714Z"}
{"name":"stor","type":"directory","mtime":"2013-05-22T17:39:43.714Z"}
tpaul@mba:/Users/tpaul/Code/php-manta/examples
$ php mget.php ~~/
PHP Warning: openssl_sign(): supplied key param cannot be coerced into a private key in /Users/tpaul/Code/php-manta/src/MantaClient.php on line 372
@travispaul
travispaul / 31-couchdb.sh
Last active October 3, 2016 15:23
Pid file is created before CouchDB is able to respond to HTTP requests.
# Get couchdb_password from metadata if exists, or use couchdb_pw, or set one.
log "getting couchdb_password"
if [[ $(mdata-get couchdb_password &>/dev/null)$? -eq "0" ]]; then
COUCHDB_PW=$(mdata-get couchdb_password 2>/dev/null);
mdata-put couchdb_pw ${COUCHDB_PW}
elif [[ $(mdata-get couchdb_pw &>/dev/null)$? -eq "0" ]]; then
COUCHDB_PW=$(mdata-get couchdb_pw 2>/dev/null);
else
COUCHDB_PW=$(od -An -N8 -x /dev/random | head -1 | tr -d ' ');
mdata-put couchdb_pw ${COUCHDB_PW}