Skip to content

Instantly share code, notes, and snippets.

View pojntfx's full-sized avatar
💭
🌅

Felicitas Pojtinger pojntfx

💭
🌅
View GitHub Profile
@pojntfx
pojntfx / .tmux.conf
Last active November 14, 2019 17:27
tmux Configuration
set-window-option -g mode-keys vi
set -g status off
set -sg escape-time 0
bind m set-window-option main-pane-height 60\; select-layout main-horizontal
bind-key h select-layout even-horizontal
bind-key v select-layout even-vertical
bind-key j join-pane -t 0.0
bind-key -n C-a send-prefix
bind -n M-h select-pane -L
bind -n M-l select-pane -R
@pojntfx
pojntfx / .zprofile
Last active November 6, 2019 19:52
Zsh Configuration
export EDITOR=`which nvim`
@pojntfx
pojntfx / commands.md
Created December 21, 2019 15:01
DE Microservices Talk Notes

Microservice Talk Nodes and Snippets

bundle exec rake start
npm start
@pojntfx
pojntfx / index.md
Created February 16, 2020 08:38
CTPF Services 2020

CTPF Architecture

CTPF Builders

  • ipxebuilderd
    • Create(platform int, script string) (error, string)
  • pxepackagerd
    • Create(biosUrlAMD64 string, uefiUrlAMD64 string) (error, string)

CTPF Datacenters

@pojntfx
pojntfx / index.md
Last active March 4, 2020 15:11
Run Docker-in-Docker GitLab CI/CD Job Locally with GitLab Runner

Run Docker-in-Docker GitLab CI/CD Job Locally with GitLab Runner

Tested on macOS & Linux only.

As per the official docs, your Docker-in-Docker job should include this:

image: docker:stable
services:
 - name: docker:dind
@pojntfx
pojntfx / cloud-config.yaml
Created March 5, 2020 10:52
Start SSH-enabled Ubuntu VM with Multipass
#cloud-config
users:
- name: ubuntu
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCr1GTvRc9eVcI/Q3cJ0NqWVKrOH+ll1etpvwL8N7BpTUEB+1NGZdhXkYFqDz5PGYKdCUMsgdErJijWnmJa68zhze9ueEW+q1rZUqOcX/DfatVdn4on2n5wzKVfT/aTVAc1NUyKkBdSo9balyuJtHX/x/21s13ytltCTrxqQvd/oAuhs12kcLImPZpShLDFfndkDCj36RDzgpg2nDWZ/hAZWM1ErtJS8qy5zSkby06bsM1pnieYH4GgyQO3JGt4u3NwZ6AhBCZxuEXLzGISncn1TUoqje9aBd5K2pChJ29KLbO8W4eyt6QkPZaomlyis39VIB+UclwY4S7VDOXEzHvd [email protected]
@pojntfx
pojntfx / index.md
Last active April 21, 2023 14:45
Skaffold Development without a local Docker Daemon

Skaffold Development without a local Docker Daemon

First, provision a VM:

cat > /tmp/cloud-config.yaml <<EOF
#cloud-config
manage_etc_hosts: false
users:
  - name: ubuntu
@pojntfx
pojntfx / build.sh
Created March 9, 2020 11:00
Build an Alpine Linux `qcow2` image
#!/bin/sh
curl -LO /tmp/alpine-make-vm-image https://raw.githubusercontent.com/alpinelinux/alpine-make-vm-image/master/alpine-make-vm-image
sudo install /tmp/alpine-make-vm-image /usr/local/bin
sudo alpine-make-vm-image -f qcow2 alpine.qcow2
@pojntfx
pojntfx / main.sh
Created March 9, 2020 15:19
Boot QEMU virtual machine and get IP from hosts' DHCP server
# In one terminal
sudo su
ip tuntap add tap0 mode tap user root
ip addr add dev tap0 10.0.0/24
ip link set tap0 up
cat > /etc/dhcp/dhcpd.conf <<EOF
subnet 10.0.0.0 netmask 255.255.255.0 {
authoritative;
range 10.0.0.1 10.0.0.254;
@pojntfx
pojntfx / main.sh
Last active March 5, 2025 16:44
PXE booting iPXE in a QEMU virtual machine with the host's DHCP and TFTP server
sudo ip tuntap add tap0 mode tap user root
sudo ip addr add dev tap0 10.0.0/24
sudo ip link set tap0 up
# See https://pojntfx.github.io/go-isc-dhcp/
cat >/tmp/dhcpd.yaml <<EOF
dhcpd:
device: tap0
subnets:
- netmask: 255.255.255.0