Skip to content
View svg2png.js
module.exports = {
all: {
// specify files in array format with multiple src-dest mapping
files: [
// rasterize all SVG files in "img" and its subdirectories to "img/png"
{ cwd: 'public/svg/', src: ['**/*.svg'], dest: 'public/img/' }
bash-4.1# vi /etc/nginx/conf.d/payments-env.conf
bash-4.1# ps aux | grep [n]ginx
root 1 0.0 0.2 45228 5608 ? Ss 11:31 0:00 nginx: master process nginx -c /etc/nginx/nginx.conf -g daemon off;
nginx 5 0.0 0.1 45736 3308 ? S 11:31 0:00 nginx: worker process
bash-4.1# kill -HUP 1
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>JS Bin</title>
<script id="jsbin-javascript">
function MyConstructor(foo, bar){
View arguments-flexible-constructor.js
function MyConstructor(foo, bar){
if (!(this instanceof MyConstructor)){
var obj = Object.create(MyConstructor.prototype);
return MyConstructor.apply(obj, arguments);
} = foo; = bar;
return this;
View example-no-new.js
function MyConstructor(){
var instance1 = MyConstructor();
var instance2 = new MyConstructor();
View flexible-constructor.js
function MyConstructor(foo){
if (!(this instanceof MyConstructor)){
return new MyConstructor(foo);
} = foo;
return this;
var instance1 = MyConstructor('foo1');
var instance2 = new MyConstructor('foo2');
View gist:324030c72f8c3a5ed8d4
# Backup /etc/exports
sudo cp /etc/exports{,.bck}
# Append a link onto /etc/exports to configure nfs
echo '"'$(mkt root)'"' -alldirs -mapall=$(id -u $USER):$(id -g $USER) $(boot2docker ip) | sudo tee -a /etc/exports
sudo /sbin/nfsd restart
# Next let's unmount the old mount, start nfs and mount the nfs share.
boot2docker ssh "sudo umount $(mkt root)"
boot2docker ssh "sudo /usr/local/etc/init.d/nfs-client start"
boot2docker ssh "sudo mount $(boot2docker config | grep HostIP | cut -d'"' -f2):$(mkt root) $(mkt root) -o rw,async,noatime,rsize=32768,wsize=32768,proto=tcp"
View .travis.yml
language: node_js
- "0.10"
firefox: "18.0"
- "npm install"
- export SLIMERJSLAUNCHER=$(which firefox) DISPLAY=:99.0 PATH=$TRAVIS_BUILD_DIR/slimerjs:$PATH
- export SLIMERVERSION=0.10.0pre
View custom-prefs.js
pref("dom.payment.skipHTTPSCheck", true);
pref("dom.identity.enabled", true);
pref("toolkit.identity.debug", true);
pref("dom.mozApps.signed_apps_installable_from", ",,");
pref("", "firefoxmarketdev");
pref("dom.payment.provider.1.description", "");
pref("dom.payment.provider.1.uri", "");
pref("dom.payment.provider.1.type", "mozilla-dev/payments/pay/v1");
pref("dom.payment.provider.1.requestMethod", "GET");
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Simple command that prints out the current n last levels of the CWD
replacing the prefix with a horizontal ellipsis
Usage pwdn [numdirs]
Something went wrong with that request. Please try again.