View gist:b12d592184bdb1de3a7c
1 2 3 4 5 6
server 0.uk.pool.ntp.org iburst
server 1.uk.pool.ntp.org iburst
server 2.uk.pool.ntp.org iburst
server 3.uk.pool.ntp.org iburst
server 0.europe.pool.ntp.org iburst
server 1.europe.pool.ntp.org iburst
View sysctl.conf
1 2 3 4 5 6 7 8 9 10
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
 
#kernel.domainname = example.com
 
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
View digitalocean.js
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env node
 
var token = process.env.DIGITALOCEAN_TOKEN;
 
if(!token) {
console.error("Please specify a DIGITALOCEAN_TOKEN environment variable");
process.exit(1);
}
 
var request = require('request');
View gist:160f5817a8e5217050b0
1 2 3 4 5 6 7 8 9 10
traceroute to 4.2.2.2 (4.2.2.2), 64 hops max, 52 byte packets
1 172.20.10.1 (172.20.10.1) 4.881 ms 1.426 ms 1.291 ms
2 172.23.99.129 (172.23.99.129) 3397.333 ms 1880.334 ms 1690.922 ms
3 172.23.98.6 (172.23.98.6) 2210.959 ms 2706.279 ms 4038.367 ms
4 188.31.255.146.threembb.co.uk (188.31.255.146) 1349.220 ms 79.738 ms 1890.084 ms
5 188.31.255.101.threembb.co.uk (188.31.255.101) 1470.390 ms 274.612 ms 2804.336 ms
6 * te2-2.ccr01.lon11.atlas.cogentco.com (149.11.78.17) 2719.444 ms 59.814 ms
7 te0-0-0-34.ccr22.lon01.atlas.cogentco.com (154.54.61.53) 2089.817 ms 270.781 ms 2292.843 ms
8 level3.lon01.atlas.cogentco.com (130.117.15.246) 2786.211 ms 102.586 ms 1867.560 ms
9 vl-3604-ve-228.csw2.london1.level3.net (4.69.166.157) 1749.578 ms
View gist:a6ae0069c7dc7ffa9f6d

JavaScript sprintf()

sprintf() for JavaScript is a complete open source JavaScript sprintf implementation.

Its prototype is simple:

string sprintf(string format , [mixed arg1 [, mixed arg2 [ ,...]]]); The placeholders in the format string are marked by "%" and are followed by one or more of these elements, in this order:

An optional "+" sign that forces to preceed the result with a plus or minus sign on numeric values. By default, only the "-" sign is used on negative numbers.

View versioner.js
1 2 3 4 5 6 7 8 9 10
var pack = require('../package.json');
var mediaType = require('media-type');
var semver = require('semver');
var Boom = require('hapi').Boom;
 
// Takes a valid package.json version and makes it just vX.Y, instead of vX.Y.Z
var PACK_VERSION = 'v' + pack.version;
var VERSION_MAJOR_MINOR = PACK_VERSION.replace(/\.\d$/, '');
 
var CURRENT_VERSION_MSG = "The current version is: " + VERSION_MAJOR_MINOR + ".";
View modified-resources.json
1 2 3 4 5 6 7 8 9 10
"WordPressAppAndDbServerRole": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"ec2.amazonaws.com"
View gist:8256568
1
4096 17:31:66:68:a8:3e:33:cf:32:bc:ed:af:67:22:4e:3d micheil@brandedcode.com (RSA)
View repl.js
1 2 3 4 5 6 7 8 9 10
var Ghost = require('./core/ghost'),
api = require('./core/server/api');
 
var ghost = new Ghost();
 
var repl = require("repl").start({
prompt: "ghost> ",
input: process.stdin,
output: process.stdout
});
View output.cc
1 2 3 4 5 6 7 8 9
// Copyright 2011 Google Inc. All Rights Reserved.
 
// This file was generated from .js source files by SCons. If you
// want to make changes to this file you should either change the
// javascript source files or the SConstruct script.
 
#include "v8.h"
#include "natives.h"
#include "utils.h"
Something went wrong with that request. Please try again.