- i3 -- A tiling window manager
https://i3wm.org/
https://github.com/i3/i3
https://github.com/Airblader/i3 - Sway -- i3-compatible Wayland compositor
https://swaywm.org/
https://github.com/swaywm/sway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Rogue DHCP server discovery | |
# Simon Schürg | |
import scapy.all as scapy | |
import re | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# This script renders a given Jinja2 template and saves it as a new file. | |
# | |
# Simon Schürg | |
import argparse | |
import os | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# This script sets a value in an INI-file. | |
# It uses Python 3 configparser | |
# https://docs.python.org/3/library/configparser.html | |
# Simon Schürg | |
import argparse | |
import configparser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do every X intervals: */X | |
# For multiple values use commas: 3,12,47 | |
# Dump output: >/dev/null 2>&1 | |
# Aliases: @reboot, @yearly, @monthly, @weekly, @daily, @hourly | |
# Crontab generator: https://crontab-generator.org/ | |
SHELL=/bin/sh | |
# If empty "", then no mail is sent | |
MAILTO="" | |
CRON_TZ=Europe/Berlin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name example.com *.example.com blub.example.com; | |
# No redirect to HTTPS for Let's Encrypt renewal challenges | |
location ~ /.well-known { | |
root /var/www/html; | |
allow all; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Official Debian repositories | |
# https://wiki.debian.org/SourcesList | |
deb http://deb.debian.org/debian stretch main contrib non-free | |
deb-src http://deb.debian.org/debian stretch main contrib non-free | |
deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free | |
deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free | |
deb http://deb.debian.org/debian stretch-updates main contrib non-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Reboot the machine to a specific boot target (Grub entry). | |
# The boot target is interactivly selected with fzf. | |
# | |
# Simon Schürg | |
# Search for grub.cfg | |
GRUB_CFG=$(find /boot -name grub.cfg 2> /dev/null) | |
if [[ -z ${GRUB_CFG} ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Echo the release assets of a given GitHub repo to stdout. | |
# First parameter is the repo in the form neovim/neovim | |
# It uses the latest release by default. | |
# An other release can be selected by the release id as second parameter. | |
# | |
# Example usage: | |
# github-latest-release neovim/neovim | grep "linux" | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Daemon for copying to (a remote) clipboard over a TCP socket | |
After=graphical-session.target | |
StartLimitBurst=5 | |
[Service] | |
; %h gets expanded to the current user's home dir | |
; See https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Specifiers | |
ExecStart=%h/.local/bin/socopy-daemon | |
Type=simple |