Skip to content

Instantly share code, notes, and snippets.

View RedBearAK's full-sized avatar
🐻
Bearish

RedBearAK

🐻
Bearish
View GitHub Profile

Useful Tools and Resources

Ubuntu

Ubuntu
Ubuntu is a popular Linux distribution for desktops, servers, and cloud computing, known for its ease of use and robust community support.

Toshy

Toshy
Toshy is a tool that remaps keyboard shortcuts on Linux to make them similar to MacOS, facilitating a smoother transition for Mac users.

@talisein
talisein / README.md
Last active November 30, 2023 02:40
Torrenting in a network namespaced wireguard vpn

Network Namespaced NordVPN & rtorrent

This is my approach for running NordVPN in a network namespace, and then running rtorrent in that netns.

I did this on Fedora 39 in November 2023.

NordVPN Details

You need to get the wireguard details that the NordVPN client uses to get the private key, local ip, and local port number. This post is helpful.

@jpsutton
jpsutton / toggle_touchpad.sh
Last active May 31, 2024 16:53
Bash script to toggle the enabled status on your touchpad while running under KDE Plasma 5
#!/bin/bash
SERVICE="org.kde.KWin"
DBUS_PATH="/org/kde/KWin/InputDevice"
INTERFACE="org.kde.KWin.InputDevice"
METHOD_GET="org.freedesktop.DBus.Properties.Get"
METHOD_SET="org.freedesktop.DBus.Properties.Set"
function find_touchpad {
DM_INTERFACE="org.kde.KWin.InputDeviceManager"
@srithon
srithon / kde-qdbus.org
Last active June 30, 2024 21:48
A list of all the KDE-related DBus commands on my machine

This document was generated by running the following script

#!/bin/fish

for service in (qdbus "org.kde.*")
  echo "* $service"

  for path in (qdbus "$service")
    echo "** $path"
@lukassup
lukassup / zipapp.md
Last active September 12, 2023 02:17
Python zipapp

Python zipapp web apps

What's a zipapp?

This concept is very much like .jar or .war archives in Java.

NOTE: The built .pyz zipapp can run on both Python 2 & 3 but you can only build .pyz zipapps with Python 3.5 or later.

Initial setup

@0xbb
0xbb / macbook-mute.sh
Last active November 7, 2024 13:20
Turn off Macbook startup sound - Linux
#!/bin/bash
printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
@paulo-raca
paulo-raca / unicode_input.py
Last active February 18, 2023 22:56
Using UInput to enter unicode text
from evdev import UInput, ecodes as e
import time
# This class sends CTRL+SHIFT+U+<HEXCODE> sequences to produces arbitrary unicode characters.
# It works fine on Gnome applications, but not on KDE
# in https://en.wikipedia.org/wiki/Unicode_input#In_X11_.28Linux_and_other_Unix_variants.29
class UnicodeInput:
def __init__(self):
keys = [
e.KEY_LEFTCTRL,