Skip to content

Instantly share code, notes, and snippets.

View hugojosefson's full-sized avatar
👍

Hugo Josefson hugojosefson

👍
View GitHub Profile
@hugojosefson
hugojosefson / install_deno_in_alpine.sh
Created March 4, 2023 16:04
Install glibc+deno in alpine 3.17
#!/bin/sh
# Install glibc, deno in alpine 3.17
apk add curl wget unzip
export LANG=C.UTF-8
curl -sfSL https://raw.githubusercontent.com/Docker-Hub-frolvlad/docker-alpine-glibc/ce0f46a806ce7299dd24c14c8212bb2fc2374ab4/Dockerfile | sed -n '/RUN /,$p' | sed 's/^RUN //' | sh
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh
@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)
BEGIN MESSAGE.
1kkupTdM42xYiHO 60LmNqd8HH4kxAH OU2JntTiL2QMJo8 oWS7ThpFbsbPKPJ
ibbuuv2E5bQQxx7 VssZUR6DX3nTCKq 6Xr2MZHgg4h4Nqi xdVY0fXuKEKSkxd
CDUKWBYiOPBXzKt TpJPPm4K8lcMVIB VLOHmO8kuQM93H2 ftKz2VZNa8hNp79
koIVcPF02srJs1V CafERaRjZbwETZO UyeZD2BwlTVlNtt .
END MESSAGE.
Verifying my Blockstack ID is secured with the address 157eJK962aDZvpnDS2Z53wzxDaY2nwHSAh https://explorer.blockstack.org/address/157eJK962aDZvpnDS2Z53wzxDaY2nwHSAh
@hugojosefson
hugojosefson / debian-swap
Created December 10, 2017 22:05
Creates swap on debian, for example on a digitalocean vpc.
#!/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 October 8, 2015 23:00
MuleSoft Contributor Agreement Acceptance by Hugo Josefson
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)
@hugojosefson
hugojosefson / designer.html
Last active August 29, 2015 14:15
designer
<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;
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@hugojosefson
hugojosefson / keybase.md
Created May 13, 2014 19:59
keybase proof

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: