This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM --platform=linux/amd64 alpine:latest | |
RUN apk add --update \ | |
7zip \ | |
curl \ | |
wine | |
ARG QAAC_VERSION=2.80 | |
ENV WINEDEBUG=-all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<customers> | |
<customer> | |
<!-- Kundennummer --> | |
<number>1234</number> | |
<!-- Debitorennummer, wenn abweichend von Kundennummer --> | |
<debtorNumber>10512</debtorNumber> | |
<!-- m=Herr | f=Frau --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
EXAMPLES = ''' | |
# Reads or generates a wireguard key | |
- wg_key: path=/etc/wireguard/site/secret.conf | |
''' | |
from ansible.module_utils.basic import AnsibleModule | |
import os | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Install wireguard | |
apt: name=wireguard | |
- name: Read private key | |
slurp: | |
src: /etc/systemd/network/99-wg0.netdev | |
register: netdev | |
ignore_errors: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 -u | |
import select | |
import re | |
import subprocess | |
from systemd import journal | |
from datetime import timedelta | |
from collections import defaultdict | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=OTRS daemon | |
After=network.target | |
Requires=mysql.service | |
[Service] | |
Type=forking | |
ExecStart=/opt/otrs/bin/otrs.Daemon.pl start | |
User=otrs | |
Restart=on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
host="otrs.example.com" | |
pass="topsecret" | |
rsync -av $host:/var/lib/mysql /var/lib/ --exclude usr_\* --exclude confixx --delete | |
rsync $host:/etc/mysql/debian.cnf /etc/mysql/ | |
# Perl-Pakete für OTRS | |
apt install --no-install-recommends libtimedate-perl libnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libgd-text-perl libtext-csv-xs-perl libjson-xs-perl libgd-graph-perl libapache-dbi-perl libcrypt-eksblowfish-perl libarchive-zip-perl libtemplate-perl libyaml-libyaml-perl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"net" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import subprocess | |
import re | |
import urllib2 | |
import os | |
hostname = "xxx.dynv6.net" | |
token = "your-secret-token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package devd | |
import "strings" | |
const ( | |
NotifyEvent = iota | |
DeviceAttached | |
DeviceDetached | |
Unknown | |
) |
NewerOlder