Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Raketen Style

Marc Schnitzius sq3

🚀
Raketen Style
View GitHub Profile
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 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 / zfs-arch-install.sh
Last active May 16, 2018
setup zfs on arch
View zfs-arch-install.sh
#!/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 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-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 \
View archlinux-install.sh
# 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%