var host = "127.0.0.1"; | |
var port = 1337; | |
var express = require("express"); | |
var app = express(); | |
app.use('/', express.static(__dirname + '/')); | |
app.listen(port, host); | |
console.log('Running server at http://localhost:' + port + '/'); |
reload() { | |
source ${BASH_SOURCE[0]} | |
} | |
alias r=reload | |
get-image-field() { | |
local imageId=$1 | |
local field=$2 | |
: ${imageId:? reuired} |
#!/bin/bash | |
# credits to: https://gist.github.com/2called-chaos/4285767 | |
# Install: | |
# curl -O https://gist.githubusercontent.com/ziogaschr/74884b8d5095c86a7cef/raw/d236c87d89a34b588f37838843279e8e02f073e9/setup-autossh-tunnel.sh | |
# chmod u+x setup-autossh-tunnel.sh | |
# ./setup-autossh-tunnel.sh | |
# | |
# Extra: | |
# it is good to make a new user on both host and remote (http://linuxaria.com/howto/permanent-ssh-tunnels-with-autossh) | |
# useradd -m -s /bin/false autossh |
We will explain how to configure a cubieboard running debian as a reverese proxy.
The modules that will be used are wvdial
and autossh
Credits goes to:
1. http://blog.rootshell.be/2015/02/19/my-little-pwnie-box/
2. https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd
This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.
In that post I talked about 3 main reasons for moving from require.js to webpack:
- Common JS support
- NPM support
- a healthy loader/plugin ecosystem.
Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.
" Vim Configuration file with vundle plugin manager | |
" Use vim settings rather than vi settings | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins |
go*.linux-armv6l.tar.gz |
Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).
Log in as root.
First, make sure the system is up to date, and install tar
and wget
: