Skip to content

Instantly share code, notes, and snippets.

View xanderificnl's full-sized avatar
💭
Rest In Piece Xander 13-09-2023

Xander xanderificnl

💭
Rest In Piece Xander 13-09-2023
View GitHub Profile
@xanderificnl
xanderificnl / yolo-merge.sh
Created February 15, 2022 13:23
YOLO merge dependabot deps
gh pr list --label "dependencies" | grep "dependabot" | grep -oE '^[[:digit:]]' | xargs -I '{}' -- gh pr merge -s '{}'
@xanderificnl
xanderificnl / clone-all.bash
Created April 6, 2022 02:48
Quickly clone all github repositories under your own namespace
gh repo list --json 'nameWithOwner' --jq '.[] | .nameWithOwner' | xargs -I '{}' gh repo clone '{}'
@xanderificnl
xanderificnl / gist:15be41cb6738c60952495a480d9d5ae3
Created April 6, 2022 02:58
Quickly archive all personal repositories on GitHub
gh repo list | awk '{print $1}' | xargs -I '{}' bash -c 'gh repo archive -y {}'
############################################################################
# This file was created with O&O ShutUp10++ V1.9.1429
# and can be imported onto another computer.
#
# Download the application at https://www.oo-software.com/shutup10
# You can then import the file from within the program.
#
# Alternatively you can import it automatically over a command line.
# Simply use the following parameter:
# OOSU10.exe <path to file>
@xanderificnl
xanderificnl / run.sh
Last active October 22, 2022 05:18
Install recursive mono font (quick 'n dirty)
#!/bin/sh
sudo apt install -y wget p7zip-full curl
mkdir -p ~/.fonts
wget "$(curl "https://www.recursive.design" | grep -o 'https://github.com/.*.zip' | head -n1)" -O /tmp/recursive-fonts.zip
( cd ~/.fonts ; 7z e -y -r -i\!*.ttf /tmp/recursive-fonts.zip )
@xanderificnl
xanderificnl / README.md
Last active August 25, 2022 08:27
Mikrotik / RouterOS: Native IPv6 w/ Tweak (gigabit fiber)

Preface

Execute these steps in a terminal or translate them to WebFig or WinBox.

Search and replace these values in a text editor if your set up differs:

key value
Wan interface ether1
Bridge interface bridge
@xanderificnl
xanderificnl / mikrotik.md
Created August 21, 2022 14:37
Mikrotik TFTP - netboot.xyz

Be sure to replace the Mikrotik IP & the DHCP network (see line 8, "network set #")

Mikrot IP: 192.168.88.1/24 DHCP network: 0

/tool fetch url="https://boot.netboot.xyz/ipxe/netboot.xyz.kpxe"
/ip tftp add ip-addresses=192.168.88.0/24 req-filename=netboot.xyz.kpxe real-filename=netboot.xyz.kpxe allow=yes read-only=yes
/ip dhcp-server network set 0 next-server=192.168.88.1 boot-file-name=netboot.xyz.kpxe
@xanderificnl
xanderificnl / ha-install.bash
Last active August 21, 2022 14:53
Home assistant @ ubuntu
sudo apt install -y docker.io
sudo mkdir /usr/local/etc/homeassistant
sudo systemctl enable --now docker
sudo gpasswd -a $USER docker
sudo -u $USER bash
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
@xanderificnl
xanderificnl / install.sh
Created August 21, 2022 21:10
Install cloudeflared (debian)
#!/bin/sh
TOKEN=""
(curl -V || sudo apt-get install -y curl)
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared.deb
sudo cloudflared service install $TOKEN
@xanderificnl
xanderificnl / 1 - install.md
Last active August 21, 2022 23:09
home assistant supervisor @ debian w/ cloudflare tunnel

Set up:

sudo apt-get install \
jq \
wget \
curl \
udisks2 \
libglib2.0-bin \
network-manager \