Skip to content

Instantly share code, notes, and snippets.

@kiryasolod
kiryasolod / DiscordWaylandFullScreenStreaming.md
Last active August 24, 2024 01:40
Discord Wayland full-screen streaming in ArchLinux (tested on Hyprland)

1. Add yourself to video group

sudo usermod -aG video <username>

2. Add some variables (I'm not sure it's necessary)

export XDG_RUNTIME_DIR="/run/user/$(id -u)"

3. Install packages

sudo pacman -S wf-recorder v4l2loopback-dkms v4l2loopback-utils

4. Execute the following commands. They will create config files for modprobe service

@kiryasolod
kiryasolod / nm_l2tp_ipsec_vpn.md
Created April 24, 2022 21:23 — forked from yyolk/nm_l2tp_ipsec_vpn.md
setup L2TP IPSEC VPN in archlinux using NetworkManager

setup L2TP IPsec VPN in archlinux using NetworkManager

install networkmanager-l2tp first:

yaourt -S networkmanager-l2tp
apt install -y network-manager-l2tp
set_from_resource $color15_i3wmthemer color15
set_from_resource $color14_i3wmthemer color14
set_from_resource $color13_i3wmthemer color13
set_from_resource $color12_i3wmthemer color12
set_from_resource $color11_i3wmthemer color11
set_from_resource $color10_i3wmthemer color10
set_from_resource $color09_i3wmthemer color9
set_from_resource $color08_i3wmthemer color8
set_from_resource $color07_i3wmthemer color7
@kiryasolod
kiryasolod / ipc.example.js
Created February 17, 2022 07:58 — forked from Xaekai/ipc.example.js
Example of Interprocess communication in Node.js through a UNIX domain socket
/*
**
** Example of Interprocess communication in Node.js through a UNIX domain socket
**
** Usage:
** server> MODE=server node ipc.example.js
** client> MODE=client node ipc.example.js
**
*/
@kiryasolod
kiryasolod / nm_l2tp_ipsec_vpn.md
Created January 25, 2022 21:38 — forked from pastleo/nm_l2tp_ipsec_vpn.md
setup L2TP IPSEC VPN in archlinux using NetworkManager