start new:
tmux
start new with session name:
tmux new -s myname
var Gun = require('gun'); | |
var gun = Gun('https://gun-eu.herokuapp.com/gun'); // connect to gun-eu peer (UI prototype also connects to this peer) | |
// Photos are stored in root -> starling -> photos -path | |
var photosPath = gun.get('starling').get('photos'); | |
// UNCOMMENT next line to see results, explanation below: | |
//photosPath.once((res) => console.log(res)) | |
/* |
#!/usr/bin/env bash | |
set -e | |
while getopts r:u:p: option | |
do | |
case "${option}" | |
in | |
r) RELEASE=${OPTARG};; | |
u) URL=${OPTARG};; |
# -*- coding: utf-8 -*- | |
""" | |
Re-Pack `Wheel` to a PYC-Only One | |
""" | |
from __future__ import print_function, unicode_literals | |
import argparse | |
import compileall |
# -*- coding: utf-8 -*- | |
# ############################################################################ | |
# This example demonstrates how to use the MultipartEncoderMonitor to create a | |
# progress bar using clint. | |
# ############################################################################ | |
from clint.textui.progress import Bar as ProgressBar | |
from requests_toolbelt import MultipartEncoder, MultipartEncoderMonitor |
https://github.com/fourdollars/scripts/blob/master/ubuntu/dkms-helper.sh |