Skip to content

Instantly share code, notes, and snippets.

@saper
saper / demo.py
Created August 12, 2014 20:21
OVH netboot API inconsistency
import pprint
# SoAPI init
from SOAPpy import WSDL, Types
from keys import USER, PASS, EMAIL
from cfg import host
soap = WSDL.Proxy('http://www.ovh.com/soapi/soapi-re-1.63.wsdl')
# REST API init
import OvhApi
@saper
saper / gist:cddef78c5780e017dd35
Created August 13, 2014 21:24
AICCU threads hang on TAP0901 IRPs
Opened log file 'c:\temp\hung.txt'
0: kd> !process 0 7 aiccu-2012-02-02-windows-console.exe
PROCESS 864566e0 SessionId: 1 Cid: 0f74 Peb: 7ffd6000 ParentCid: 14f4
DirBase: 7ce08a60 ObjectTable: c368ed50 HandleCount: 2.
Image: aiccu-2012-02-02-windows-console.exe
VadRoot 86075238 Vads 72 Clone 0 Private 279. Modified 0. Locked 0.
DeviceMap b81eede0
Token bef43c38
ElapsedTime 00:23:41.035
UserTime 00:00:02.698
@saper
saper / gist:8c1cf488d4bf9034900d
Created March 3, 2015 20:09
npm install node-sass fails
Script started on Tue Mar 3 20:04:49 2015
m> pkg info node\*
node-devel-0.11.16_1
m> pkg info npm\*
npm-2.6.0
m> pkg info libsass\*
libsass-1.0.1_2
@saper
saper / gist:d5de2c2228630c12643f
Created March 3, 2015 20:17
npm install sass/node-sass
> npm install sass/node-sass
npm WARN `git config --get remote.origin.url` returned wrong result (git://github.com/sass/node-sass)
|
\
> node-sass@2.0.1 install /home/saper/sw/node_modules/node-sass
> node scripts/install.js
Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.0.1/freebsd-x64-3.28.73/binding.node
> node-sass@2.0.1 postinstall /home/saper/sw/node_modules/node-sass
Script started on Wed Mar 4 08:08:00 2015
m> git clone --recursive git@github.com/:saper/odenodes-sass
Cloning into 'node-sass'...
remote: Counting objects: 6945, done.
Receiving objects: 0% (1/6945) Receiving objects: 1% (70/6945) Receiving objects: 2% (139/6945) Receiving objects: 3% (209/6945) Receiving objects: 4% (278/6945) Receiving objects: 5% (348/6945) Receiving objects: 6% (417/6945) Receiving objects: 7% (487/6945) Receiving objects: 8% (556/6945) Receiving objects: 9% (626/6945) Receiving objects: 10% (695/6945) Receiving objects: 11% (764/6945) Receiving objects: 12% (834/6945) Receiving objects: 13% (903/6945) Receiving objects: 14% (973/6945) Receiving objects: 15% (1042/6945) Receiving objects: 16% (1112/6945) Receiving objects: 17% (1181/6945) Receiving objects: 18% (1251/6945) Receiving objects: 19% (1320/6945) Receiving objects: 20% (1389/6945) Receiving objects: 21% (1459/6945) Receiving obj
====>> Building textproc/libsass
build started at Mon Mar 9 23:08:49 UTC 2015
port directory: /usr/ports/textproc/libsass
building for: FreeBSD nodejs010_8_4_amd64-exp-job-01 8.4-RELEASE-p24 FreeBSD 8.4-RELEASE-p24 amd64
maintained by: nivit@FreeBSD.org
Makefile ident: $FreeBSD: head/textproc/libsass/Makefile 360716 2014-07-05 02:58:20Z nivit $
Poudriere version: 3.1.1
Host OSVERSION: 1001510
Jail OSVERSION: 804000
@saper
saper / -
Created March 14, 2015 14:00
diff --git a/scripts/install.js b/scripts/install.js
index e7dbd3c..6c3ddea 100644
--- a/scripts/install.js
+++ b/scripts/install.js
@@ -25,6 +25,7 @@ function download(url, dest, cb) {
cb(typeof err.message === 'string' ? err.message : err);
};
+ console.log(['Fetching from:', url].join());
request.get(url, options).on('response', function(response) {
@saper
saper / -
Created March 17, 2015 19:15
commit 4dc1f5a1759bdf392504f4901748175b46f59a7e
Author: Brad Jorsch <bjorsch@wikimedia.org>
Date: Mon Sep 29 14:40:51 2014 -0400
PasswordFactory::newFromPlaintext( null ) needs to work
Various code passes null around to mean "an invalid password". It
shouldn't all have to test for null and specially handle that.
This also fixes a codepath where User::$mNewpassword could get set to an
Script started on Tue Mar 17 21:44:05 2015
command: env CC=clang CXX=clang++ LINK=clang++ GYP_DEFINES=clang=1 SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=1 TERM=dumb V=1 npm install
-\|/-\|/-\|/-\|-\|/--\|-\|/-\|/-\|/-\|/-\|/-\|-\--\|/-\-\|/---\| npm WARN prefer global pangyp@2.1.0 should be installed with -g
> node-sass@2.0.0-beta install /home/saper/sw/test/node_modules/node-sass
> node scripts/install.js
Skipping downloading binaries on CI builds
> node-sass@2.0.0-beta postinstall /home/saper/sw/test/node_modules/node-sass
@saper
saper / -
Created March 20, 2015 10:20
1) cli node-sass in.scss --output out.css should compile with the --source-map option:
Uncaught AssertionError: '{\n\t"version": 3,\n\t"file": "index.css",\n\t"sources": [\n\t\t"index.scss"\n\t],\n\t"sourcesContent": [],\n\t"mappings": "AAA == '{\n\t"version": 3,\n\t"file": "index.css",\n\t"sources": [\n\t\t"index.scss"\n\t],\n\t"sourcesContent": [],\n\t"mappings": "AAA
at ChildProcess.<anonymous> (/home/saper/sw/test/node_modules/node-sass/test/cli.js:200:16)
at ChildProcess.g (events.js:199:16)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1008:16)
at Socket.<anonymous> (child_process.js:1176:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:476:12)