Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Raketen Style

Marc Schnitzius sq3

🚀
Raketen Style
View GitHub Profile
@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
@sq3
sq3 / gist:713f388da8c8de53fae09c86282d6770
Created Aug 15, 2017
Download OpenJDK with aria2c via http Proxy
View gist:713f388da8c8de53fae09c86282d6770
$ aria2c --max-connection-per-server=16 \
--min-split-size=1M \
--header="Cookie: oraclelicense=accept-securebackup-cookie" \
--http-proxy="http://1.2.3.4:3128" \
http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
08/15 09:22:34 [NOTICE] Downloading 1 item(s)
[#3114d1 176MiB/176MiB(99%) CN:3 DL:10MiB]
08/15 09:22:52 [NOTICE] Download complete: /tmp/tmp/jdk-8u144-linux-x64.tar.gz