Skip to content

Instantly share code, notes, and snippets.

View sq3's full-sized avatar
🚀
Raketen Style

Marc Schnitzius sq3

🚀
Raketen Style
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sq3 on github.
  • I am mschnitzius (https://keybase.io/mschnitzius) on keybase.
  • I have a public key ASAuC1oSIAvbkC1J_2A3rWtX-1-yOqrErtKbueX70J-iLAo

To claim this, I am signing this object:

@sq3
sq3 / links.md
Last active March 3, 2021 07:31
first month in the new job - link collection
@sq3
sq3 / inwx-dyndns
Last active February 24, 2021 16:00
inwx DynDNS
#!/usr/sbin/python3
# -*- coding: utf-8 -*-
from requests.auth import HTTPBasicAuth
from requests.exceptions import HTTPError
import argparse
import logging
import os
import requests
import sys
@sq3
sq3 / archlinux-deppin-desktop.md
Last active February 24, 2021 15:58
Installs ArchLinux Desktop with Deepin Desktop Environment
@sq3
sq3 / systemd-cheat-sheet.md
Last active February 26, 2018 08:19
systemd cheat sheet

systemd cheat sheet

systemctl

Controll a Service

Show service status

$ systemctl status httpd.service

Start / Stop a service

$ systemctl start httpd.service $ systemctl stop httpd.service

# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=nspawn container nextcloud
Documentation=man:systemd-nspawn(1)
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=nspawn container sniproxy
Documentation=man:systemd-nspawn(1)
@sq3
sq3 / install-salt-2016.11.2.sh
Last active February 2, 2018 12:44
Install Salt 2016.11.2 on Debian Jessi
#!/bin/bash
sudo echo 'deb http://ftp.debian.org/debian jessie-backports main' >> /etc/apt/sources.list
sudo apt update
sudo apt-get install \
-y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
python-tornado=4.4.3-1~bpo8+1 \
salt-common=2016.11.2+ds-1~bpo8+1 \
@sq3
sq3 / nsswitch.conf
Created December 9, 2017 13:53
Arch Linux nsswitch.conf for mDNS
# Begin /etc/nsswitch.conf
# requires nss-mdns package
passwd: compat mymachines systemd
group: compat mymachines systemd
shadow: compat
publickey: files
hosts: files mdns4_minimal [NOTFOUND=return] !UNAVAIL=return] resolve dns
@sq3
sq3 / iptables-clear.sh
Last active October 27, 2017 08:03
Clear iptables rules
#!/bin/sh
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z