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
npm ERR! registry error parsing json | |
npm ERR! SyntaxError: Unexpected token ILLEGAL | |
npm ERR! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
npm ERR! <html><head> | |
npm ERR! <title>Proxy error: 400 Couldn't parse URL.</title> | |
npm ERR! </head><body> | |
npm ERR! <h1>400 Couldn't parse URL</h1> | |
npm ERR! <p>The following error occurred while trying to access <strong>https://registry.npmjs.org/request</strong>:<br><br> | |
npm ERR! <strong>400 Couldn't parse URL</strong></p> | |
npm ERR! <hr>Generated Wed, 31 Aug 2011 20:22:34 PDT by Polipo on <em>Manitoba:8123</em>. |
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
python -c "import random; x = [random.choice('23456789') for x in range(1)] + [ random.choice('abcdefghjkmnpqrstwxyz') for x in range(3)]; random.shuffle(x); print ''.join(x)" |
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
/* Foundation was made by ZURB, an interaction design and design strategy firm in Campbell, CA */ | |
/* zurb.com */ | |
/* humanstxt.org */ | |
/* SITE */ | |
Standards: HTML5, CSS3 | |
Components: jQuery, Orbit, Reveal | |
Software: Coda, Textmate, Git |
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
#include <stdio.h> | |
#include <stdlib.h> | |
static int expiry = 30; | |
int main(int argc, char *argv[]){ | |
int k = *argv[1]; | |
int i=0; |
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 | |
# Author: [email protected] | |
# COMMANDS | |
# create: Args: <path to image file> <path to plain file> | |
# Encrypts a file using the GPG utility, then zips it up and embeds | |
# it into the image file |
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 email = require('emailjs'); | |
var cheerio = require('cheerio'); | |
var request = require('request'); | |
var url8GB = 'https://play.google.com/store/devices/details?id=nexus_4_8gb'; | |
var url16GB = 'https://play.google.com/store/devices/details?id=nexus_4_16gb'; | |
var defaultState = 'UNKNOWN'; | |
var trackingState8GB = defaultState; | |
var trackingState16GB = defaultState; |
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
± for i in {1..10}; do ./wrk http://localhost:8000 -c 100 | grep Requests | awk '{print $2}';done | awk '{s+=$1} END {print s}' | |
5329.22 | |
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 url = require('url'); | |
var http = require('http'); | |
var querystring = require('querystring'); | |
// Example usage: curl -I http://localhost:1337/?code=500 | |
http.createServer(function (req, res) { | |
var purl = url.parse(req.url).query; | |
var qs = querystring.parse(purl); | |
var status_code = qs.code || 200; |
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 | |
set -e | |
usage() { | |
cat << EOF | |
usage: $0 [options] | |
This script splits an existing folder inside of a git repo into its own | |
separate git repo, optionally preserving all existing tags and branches from the | |
parent repo. |
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 | |
TARGET_DIR=${1:-"./new-repo"} | |
BRANCH=${2:-"master"} | |
REPO=${3:-"git://repo/name.git"} | |
if [ -e "${TARGET_DIR}" ] | |
then | |
pushd $TARGET_DIR | |
git fetch | |
exists=$(git show-branch $BRANCH > /dev/null 2>&1; echo $?) |
OlderNewer