Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Raketen Style

Marc Schnitzius sq3

🚀
Raketen Style
View GitHub Profile
View keybase.md

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 Mar 3, 2021
first month in the new job - link collection
@sq3
sq3 / inwx-dyndns
Last active Feb 24, 2021
inwx DynDNS
View 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 Feb 24, 2021
Installs ArchLinux Desktop with Deepin Desktop Environment
View archlinux-deppin-desktop.md
@sq3
sq3 / systemd-cheat-sheet.md
Last active Feb 26, 2018
systemd cheat sheet
View systemd-cheat-sheet.md

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

View nspawn-nextcloud.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)
View nspawn-sniproxy.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 sniproxy
Documentation=man:systemd-nspawn(1)
@sq3
sq3 / install-salt-2016.11.2.sh
Last active Feb 2, 2018
Install Salt 2016.11.2 on Debian Jessi
View install-salt-2016.11.2.sh
#!/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 Dec 9, 2017
Arch Linux nsswitch.conf for mDNS
View nsswitch.conf
# 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 Oct 27, 2017
Clear iptables rules
View iptables-clear.sh
#!/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