This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/utils/tar.js b/lib/utils/tar.js | |
index 8c5bf94..ffa4ac1 100644 | |
--- a/lib/utils/tar.js | |
+++ b/lib/utils/tar.js | |
@@ -167,11 +167,18 @@ function gunzTarPerm (tarball, tmp, dMode, fMode, uid, gid, cb) { | |
//console.error(npm.config.get("gzipbin")+" --decompress --stdout " | |
// +tarball+" | "+npm.config.get("tar")+" -mvxpf - --no-same-owner -C " | |
// +tmp) | |
+ var os = require("os"); | |
+ var opts = [ "-mvxpf", "-", "--no-same-owner", "-C", tmp]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/bin/npm', 'install', 'sqlite3' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /home/qbit/.npmrc | |
verbose config file /usr/etc/npmrc | |
silly testEngine { name: 'application-name', | |
silly testEngine version: '0.0.1', | |
silly testEngine private: true, | |
silly testEngine dependencies: { express: '2.3.11', ejs: '>= 0.0.1' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/lib/dns.c | |
=================================================================== | |
--- src/lib/dns.c (revision 516) | |
+++ src/lib/dns.c (working copy) | |
@@ -12,7 +12,14 @@ | |
#include <windns.h> | |
#elif defined __use_posix__ | |
#include <arpa/nameser.h> | |
+#ifdef __use_openbsd__ | |
+#define ns_c_in C_IN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/lib/dns.c | |
=================================================================== | |
--- src/lib/dns.c (revision 516) | |
+++ src/lib/dns.c (working copy) | |
@@ -12,7 +12,14 @@ | |
#include <windns.h> | |
#elif defined __use_posix__ | |
#include <arpa/nameser.h> | |
+#ifdef __use_openbsd__ | |
+#define ns_c_in C_IN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: var a=document.getElementsByTagName("*");if(a){var i=a.length;var e;do{e=a[i];if(e){void(e.style.background='#fff');void(e.style.color='#000');}}while(--i);}else{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS=$'\n' | |
SYNC_DIRS=`cat directory_list.txt` | |
WD=`pwd` | |
function loop { | |
for dir in $SYNC_DIRS; do | |
cd $dir | |
IFS=$'\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Script to add read-later urls to instapaper from xombrero | |
* | |
* - slightly modified version of the "Read Later" button | |
* | |
* To use change OMGAWESOME to the key from the "Read Later" button | |
* source. | |
*/ | |
var d = document, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ksh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. | |
# | |
# To enable: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index c3a880c..c07ae39 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -17,6 +17,9 @@ OBJS+= openbsd/strlcat.o openbsd/strlcpy.o openbsd/setmode.o \ | |
DEFS= -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \ | |
-DSYSTYPE=\"${OSTYPE}\" | |
CFLAGS+= ${DEFS} -I. -I${.CURDIR} | |
+.if ${OSTYPE} == "Darwin" | |
+LDFLAGS+= -arch x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tagData = []; | |
$('#story_tags_a option').each(function() { | |
var count = $(this).attr('data-html').replace(/.*<em>(.*)<\/em>.*/, "$1"), val, o = {}; | |
if ( count.match(/\d/) ) { | |
o.value = count.replace(/^(\d+).*/, "$1"); | |
} else { | |
o.value = 0; | |
} | |
o.label = $(this).val(); |
OlderNewer