Skip to content

Instantly share code, notes, and snippets.

View insan1k's full-sized avatar

insan1k insan1k

  • 404
  • 20:43 (UTC +02:00)
View GitHub Profile
@ngandrass
ngandrass / 51-rename-rode-rodecaster-pro-2.lua
Last active April 10, 2024 22:28
Rename RODE RODECaster Pro II outputs (sinks) and inputs (sources). To be used with PipeWire and WirePlumber.
-- Renames the outputs and inputs of the RODE RODECaster Pro II.
--
-- Place this file inside ~/.config/wireplumber/main.lua.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
-- - Your node names might differ. Run `pactl list sinks` and `pactl list sources` to check assigned names.
@ArtBIT
ArtBIT / glados.sh
Last active April 13, 2021 17:12
GLaDOS eSpeak
random_pitch() {
local delta=${1:-50}
local value=$(( ($RANDOM % $delta) - $delta/2 ))
echo "+${value}" | sed 's/+-/-/'
}
glados() {
local pitch=70
local speed=180
local lang=en
@ArtBIT
ArtBIT / thou shall not pusg merge commits.txt
Last active August 6, 2022 16:41
PUSH REJECTED BY EVIL DRAGON BUREAUCRATS
+---------------------------------------------------------------+
| * * * PUSH REJECTED BY EVIL DRAGON BUREAUCRATS * * * |
+---------------------------------------------------------------+
\
\ ^ /^
\ / \ // \
\ |\___/| / \// .\
\ /V V \__ / // | \ \ *----*
/ / \/_/ // | \ \ \ |
@___@` \/_ // | \ \ \/\ \
@mcastelino
mcastelino / iptables-cheatsheet.md
Last active May 1, 2024 09:10
iptables-cheatsheet

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active April 30, 2024 01:32
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@apparentlymart
apparentlymart / iptables-round-robin.sh
Last active August 30, 2023 21:45
round robin to three ports on the same host with iptables
# The following example shows a way to use iptables for basic round-robin load balancing, by redirecting
# packets two one of three ports based on a statistic counter.
#
# TCP packets for new sessions arriving on port 9000 will rotate between ports 9001, 9002 and 9003, where
# three identical copies of some application are expected to be listening.
#
# Packets that aren't TCP or that related to an already-established connection are left untouched, letting
# the standard iptables connection tracking machinery send it to the appropriate port.
#
# For this to work well, connections need to be relatively short. Ideally there would be an extra layer