Skip to content

Instantly share code, notes, and snippets.

View fernvenue's full-sized avatar
💜
HELP CHANGE THE WORLD.

fernvenue fernvenue

💜
HELP CHANGE THE WORLD.
View GitHub Profile
@fernvenue
fernvenue / onedrive.reg
Created March 8, 2025 09:04 — forked from yefengwu/onedrive.reg
OneDriveRepair
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}]
"Attributes"=dword:00000001
"Category"=dword:00000004
"DefinitionFlags"=dword:00000040
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
00,31,00,30,00,34,00,30,00,00,00
[Unit]
Description=Btrfs Snapshot Service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/btrfsSnapshot.sh
#!/bin/bash
initial_directory=$(pwd)
temp_directory=$(mktemp -d)
build_directory=$(mktemp -d)
cd $temp_directory
wget https://ppa.launchpadcontent.net/aglasgall/pipewire-extra-bt-codecs/ubuntu/pool/main/p/pipewire/libspa-0.2-bluetooth_1.0.5-2~glasgall1_amd64.deb
dpkg -x $(ls *.deb) $temp_directory
mkdir $build_directory/DEBIAN
mkdir -p $build_directory/usr/lib/x86_64-linux-gnu/spa-0.2/bluez5/
@fernvenue
fernvenue / mute-when-lock.service
Last active August 21, 2024 07:15
Mute system sounds when lock the screen on Debian GNOME.
[Unit]
Description=Mute When Lock
After=default.target
[Service]
ExecStart=/usr/local/bin/mute-when-lock.sh
Restart=on-failure
[Install]
WantedBy=default.target
@fernvenue
fernvenue / teamspeak-nickname-keeper.service
Created August 12, 2024 02:26
TeamSpeak Server Nickname Keeper
[Unit]
Description=TeamSpeak Server Nickname Keeper
After=network-online.target
Wants=network-online.target
[Service]
DynamicUser=yes
Type=simple
Restart=on-failure
ExecStart=curl -s "https://named.myteamspeak.com/lookup?name="
@fernvenue
fernvenue / reverseAny.js
Created June 25, 2024 01:35
Simple web server to reverse anything in whitelist.
const http = require('http');
const https = require('https');
const url = require('url');
const whitelist = ['www.example.com'];
const server = http.createServer((req, res) => {
const parsedUrl = url.parse(req.url);
if (!parsedUrl.pathname.startsWith('/archive/http')) {
console.error(`Received invalid request: ${req.method} ${req.url}`);
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import re
import csv
def extract_clippings(clippings_file):
clippings = []
with open(clippings_file, 'r', encoding='utf-8') as file:
data = file.read()
@fernvenue
fernvenue / disableDirect3D.reg
Created May 8, 2023 23:22
Simple Direct3D controller.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw]
"EmulationOnly"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Direct3D\Drivers]
"SoftwareOnly"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DirectDraw]
"EmulationOnly"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Direct3D\Drivers]
"SoftwareOnly"=dword:00000001
@fernvenue
fernvenue / getGoogle.sh
Created February 22, 2023 05:42
Get outbound IP address from Google.
#!/bin/bash
apt install -y pcregrep
curl -s "https://www.google.com/sorry/index" | pcregrep -o1 "IP address: (.*?)<"
@fernvenue
fernvenue / djvu2pdf.sh
Last active February 11, 2023 08:32
Simple script to convert multiple djvu files to pdf.
#!/bin/bash
apt install -y djvulibre-bin ghostscript
for file in *.djvu; do djvups -verbose "$file" "${file%.*}.ps"; done
for file in *.ps; do ps2pdf "$file" "${file%.*}.pdf"; done