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
# 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)

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 / zfs-arch-install.sh
Last active May 16, 2018 08:19
setup zfs on arch
#!/bin/bash
# this script isntalls zfs via dkms and needs sudo package installed an
# configured for the user who runs this script.
#
# The zpools are named tank.
# Give the disk you want to use for the zpool as $1
#
# https://wiki.archlinux.org/index.php/ZFS
@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 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 \
# confirm you can access the internet
if [[ ! $(curl -Is http://www.google.com/ | head -n 1) =~ "200 OK" ]]; then
echo "Your Internet seems broken. Press Ctrl-C to abort or enter to continue."
read
fi
# make 2 partitions on the disk.
parted -s /dev/sda mktable msdos
parted -s /dev/sda mkpart primary 0% 100%