Skip to content

Instantly share code, notes, and snippets.

@Knight1
Knight1 / hetzner.sh
Last active October 18, 2020 19:12
Hetzner Cloud create temporary Windows Servers
#!/bin/bash
ID=`hcloud server list | tail -1 | grep Windoof | awk '{print $1;}'`
CONTEXT=`hcloud context active`
if [ "$CONTEXT" != "testing" ]; then
echo "[CRIT] Aborting, wrong context"
exit
fi
@Knight1
Knight1 / Bunq-wish-list.md
Created January 10, 2020 05:55
Bunq.com personal wish list
  • physical cards only for POS and ATM usage
  • IFTTT
  • catalyst iPad App
  • hide card in overview
  • charity function
  • card express shipment
  • block card usages (NFC, Swipe, ATM, online, online without CCV2, POS)
  • token on card for verification (better then unsafe SMS)
  • ability to block bunq web or just allow card control
@Knight1
Knight1 / Dockerfile
Last active October 24, 2019 02:57
Simple Dockerfile for Ripe Atlas Software Probe
FROM centos:centos7
LABEL maintainer="Tobias Sachs"
RUN curl -O 'https://ftp.ripe.net/ripe/atlas/software-probe/centos7/noarch/ripe-atlas-repo-1-2.el7.noarch.rpm' \
&& yum install ripe-atlas-repo-1-2.el7.noarch.rpm -y \
&& yum install atlasswprobe openssh-clients iproute sysvinit-tools net-tools -y \
&& systemctl enable atlas.service \
&& (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
systemd-tmpfiles-setup.service ] || rm -f $i; done); \

Setting up netboot.xyz with an EdgeRouter legacy (not the 2.0 branch)

This document covers how to setup netboot.xyz, a service that provides iPXE-based installation and live boot of a bunch of operating systems, on a Ubiquiti EdgeRouter.

Assumptions

I've made a few assumptions throughout this document that will probably be different for your setup:

@Knight1
Knight1 / install mailcow
Last active November 11, 2018 18:44
install mailcow
#cloud-init
#ONLY USE THIS FOR CLEAN INSTALL with cloud-init!
runcmd:
- curl -sSL https://get.docker.com/ | CHANNEL=stable sh
- systemctl enable docker.service
- systemctl start docker.service
- curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
@Knight1
Knight1 / packet.net
Last active May 3, 2018 04:31
Check Packet.net availability of specific server type in every location and ~💵 not collected per month
#!/bin/bash
#Usage: default is Type 2a. If you wish another server type use ./packet.net 1/2/3
#See https://www.packet.net/bare-metal/
#Obtain api key here => https://app.packet.net/portal#/api-keys
KEY=
if [[ -z ${1+x} ]]; then
PLAN=2a
else

Keybase proof

I hereby claim:

  • I am knight1 on github.
  • I am knight22 (https://keybase.io/knight22) on keybase.
  • I have a public key ASAVuRBoy-GZH_mQ8WXGvVObZ-lPJzNL7crNkALeoOEcsgo

To claim this, I am signing this object: