Skip to content

Instantly share code, notes, and snippets.

View ipcjk's full-sized avatar
😍
so much younger than today

Jörg Kost ipcjk

😍
so much younger than today
  • Munich, Germany
View GitHub Profile
@ipcjk
ipcjk / ssh_ubuntu_cloud
Created March 11, 2019 12:08 — forked from tpaskhalis/ssh_ubuntu_cloud
Adding ssh public key to Ubuntu cloud image
# Instructions for working with QEMU image come from
# https://www.kumari.net/index.php/system-adminstration/49-mounting-a-qemu-image
1. Download image http://cloud-images.ubuntu.com/
2. Install qemu, nbd-client
3. Load the module
sudo modprobe nbd max_part=8
4. Connect image
sudo qemu-nbd --connect=/dev/nbd0 Downloads/xenial-server-cloudimg-amd64-disk1.img
5. Mount image
@ipcjk
ipcjk / container.go
Created July 16, 2017 11:56 — forked from christophberger/container.go
A container in less than 60 lines of Go
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {