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
# Renames the outputs and inputs of the RODE RODECaster Pro II. | |
# Based on the lua version: https://gist.github.com/ngandrass/c81cda4903b8429262fe80dc69d8252f | |
# | |
# Place this file inside ~/.config/wireplumber/wireplumber.conf.d/ | |
# | |
# Tips on using the RODE RODECaster Pro II on Linux: | |
# - Use PipeWire together with WirePlumber. I'm using the following packages on | |
# Arch Linux: pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber. | |
# Optional packages: qpwgraph | |
# - Configure the RODE RODECaster Pro II to use the 'Pro Audio' profile |
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
printf 'network={\n ssid="%sC3"\n key_mgmt=WPA-EAP\n eap=TTLS\n identity="%s"\n password="%s"\n ca_cert="/etc/ssl/certs/DST_Root_CA_X3.pem"\n altsubject_match="DNS:radius.c3noc.net"\n | |
phase2="auth=PAP"\n}\n' `date +'%Y'| awk '{print $1-1983}'` `openssl rand -base64 32` `openssl rand -base64 32` |
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=Apply Kernel Variables after network | |
DefaultDependencies=no | |
Conflicts=shutdown.target | |
After=network-online.target | |
ConditionPathIsReadWrite=/proc/sys/ | |
Wants=network-online.target | |
[Service] | |
Type=oneshot |
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 | |
# Pre commit hook to sync changes from the PKGBUILD to the .SRCINFO file. | |
# Depends on: pkgbuild-introspection | |
if git diff --cached --stat --name-only | grep PKGBUILD 2>&1 | |
then | |
mksrcinfo | |
git add .SRCINFO | |
fi |
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
### Keybase proof | |
I hereby claim: | |
* I am slaveriq on github. | |
* I am slaveriq (https://keybase.io/slaveriq) on keybase. | |
* I have a public key whose fingerprint is 8E96 F6BB D6B7 8C1C E3B1 0DC1 1F4E 13A3 4D0C E5D7 | |
To claim this, I am signing this object: |
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=OpenVPN connection to %i | |
After=network.target | |
Requires=systemd-ask-password-wall.service | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/openvpn --cd /etc/openvpn/%i --config /etc/openvpn/%i/openvpn.conf --daemon openvpn@%i | |
[Install] | |
WantedBy=multi-user.target |
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 | |
import random | |
import time | |
def secret_gen(): | |
random.seed() | |
while(1): | |
num = int(random.randint(1,100)) | |
yield num | |
def leave(secret): |
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=Imapfilter | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/imapfilter -dc /home/%I/.imapfilter/config.lua | |
ExecReload=/bin/kill -HUP $MAINPID | |
KillMode=process | |
Restart=always |
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
#include <iostream> | |
#include <string> | |
#include <sstream> | |
using namespace std; | |
int ask() | |
{ | |
int number; |