Skip to content

Instantly share code, notes, and snippets.

Avatar
👍

Hugo Josefson hugojosefson

👍
View GitHub Profile
@hugojosefson
hugojosefson / tcp-forward.service
Last active Jan 30, 2021 — forked from gartnera/tcp-forward.service
systemd service to forward traffic from a port, to a different machine's (other) port
View tcp-forward.service
[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 Jan 28, 2021 — forked from zulhfreelancer/README.md
How to install Flynn on single host (single-node mode)?
View README.md
sudo bash < <(curl -s https://gist.github.com/zulhfreelancer/0b87a274686cb4d98b8144e116c5117c/raw/2adcb49704045d6b3b9ebd3c44f37a2a3b3c5da0/install-flynn-single-node.sh)
View keys.pub
BEGIN MESSAGE.
1kkupTdM42xYiHO 60LmNqd8HH4kxAH OU2JntTiL2QMJo8 oWS7ThpFbsbPKPJ
ibbuuv2E5bQQxx7 VssZUR6DX3nTCKq 6Xr2MZHgg4h4Nqi xdVY0fXuKEKSkxd
CDUKWBYiOPBXzKt TpJPPm4K8lcMVIB VLOHmO8kuQM93H2 ftKz2VZNa8hNp79
koIVcPF02srJs1V CafERaRjZbwETZO UyeZD2BwlTVlNtt .
END MESSAGE.
View Blockstack ID verification
Verifying my Blockstack ID is secured with the address 157eJK962aDZvpnDS2Z53wzxDaY2nwHSAh https://explorer.blockstack.org/address/157eJK962aDZvpnDS2Z53wzxDaY2nwHSAh
@hugojosefson
hugojosefson / debian-swap
Created Dec 10, 2017
Creates swap on debian, for example on a digitalocean vpc.
View debian-swap
#!/bin/bash
set -e
touch /var/swap.img
chmod 600 /var/swap.img
dd if=/dev/zero of=/var/swap.img bs=1M count=4096
mkswap /var/swap.img
swapon /var/swap.img
@hugojosefson
hugojosefson / affirmation
Created Oct 8, 2015
MuleSoft Contributor Agreement Acceptance by Hugo Josefson
View affirmation
I, Hugo Josefson, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Fri Oct 09 2015 01:00:46 GMT+0200 (CEST)
View designer.html
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
box-sizing: border-box;
View designer.html
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
View keybase.md

Keybase proof

I hereby claim:

  • I am hugojosefson on github.
  • I am hugojosefson (https://keybase.io/hugojosefson) on keybase.
  • I have a public key whose fingerprint is CA49 638E 4C21 03E4 A157 6EE8 1873 F7F6 BB18 F87C

To claim this, I am signing this object:

@hugojosefson
hugojosefson / package.coffee
Created Dec 2, 2011 — forked from mrjjwright/package.coffee
Put this in Cakefile to write out package.coffee to NPM package.json
View package.coffee
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')