Skip to content

Instantly share code, notes, and snippets.

View hugojosefson's full-sized avatar
👋

Hugo Josefson hugojosefson

👋
View GitHub Profile
@hugojosefson
hugojosefson / tcp-forward.service
Last active January 30, 2021 20:42 — forked from gartnera/tcp-forward.service
systemd service to forward traffic from a port, to a different machine's (other) port
[Unit]
Description=Forward TCP from 9999 to 8888 on 10.77.77.77
After=network.target
[Service]
Type=simple
User=nobody
Group=nobody
ExecStart=/usr/bin/socat TCP-LISTEN:9999,fork TCP:10.77.77.77:8888
Restart=always
@hugojosefson
hugojosefson / README.md
Last active January 28, 2021 22:35 — forked from zulhfreelancer/README.md
How to install Flynn on single host (single-node mode)?
sudo bash < <(curl -s https://gist.github.com/zulhfreelancer/0b87a274686cb4d98b8144e116c5117c/raw/2adcb49704045d6b3b9ebd3c44f37a2a3b3c5da0/install-flynn-single-node.sh)
@hugojosefson
hugojosefson / package.coffee
Created December 2, 2011 20:01 — forked from mrjjwright/package.coffee
Put this in Cakefile to write out package.coffee to NPM package.json
fs = require 'fs'
CoffeeScript = require 'coffee-script'
task "build:package", "Builds the package.json from its coffee source", (options) ->
js = CoffeeScript.compile "return #{fs.readFileSync('package.coffee', 'utf8')}"
json = JSON.stringify eval(js), null, 2
fs.writeFileSync 'package.json', json
console.log('Successfully wrote out package.json')