Skip to content

Instantly share code, notes, and snippets.

@vinloo
vinloo / dutch_news_blocklist.txt
Last active May 12, 2024 09:13
Dutch news blocklist
nos.nl
nu.nl
rtlnieuws.nl
telegraaf.nl
ad.nl
folia.nl
@vinloo
vinloo / facebook.txt
Created September 29, 2022 10:59
Facebook blocklist without Whatsapp
# ------------------------------------[UPDATE]--------------------------------------
# Title: The Block List Project - Facebook List
# Expires: 1 day
# Homepage: https://blocklist.site
# Help: https://github.com/blocklistproject/lists/wiki/
# License: https://unlicense.org
# Total number of network filters: 22459
# ------------------------------------[SUPPORT]-------------------------------------
# You can support by:
# - reporting false positives
@vinloo
vinloo / dark.sh
Created May 22, 2022 18:43
Switch between light and dark mode in Manjaro KDE [Breath/Breath Night themes and Bamboo/Bamboo Night wallpapers]
#!/bin/bash
lookandfeeltool -a org.manjaro.breath-dark.desktop
# you can replace the path with your own wallpaper
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "file:///usr/share/wallpapers/Bamboo at Night/contents/images/5120x2880.png")}'
@vinloo
vinloo / clear-music.py
Created November 29, 2021 15:11
Clear all metadata from mp3 files (in folder + all subfolders) except for the title and artist
# This program clears all metadata from mp3 files except for the title and artist
from pathlib import Path
from mutagen.easyid3 import EasyID3
INPUT_DIR = Path.cwd() / "Music"
count = 1
for file in list(INPUT_DIR.rglob("*.mp3*")):
audio = EasyID3(file)
for key in audio:
@vinloo
vinloo / github-backup.sh
Created November 25, 2021 13:35
GitHub backup all repos
USERNAME=vinloo
repos=(
"repo-1"
"repo-2"
"repo-3"
"etc"
)
rm -rf "GitHub Backup"
mkdir "GitHub Backup"
@vinloo
vinloo / Code.gs
Last active October 20, 2020 12:27
Google App Script for Gmail Auto Archiving
/* Paste this code in scrip.google.com.
* You have to manually add a (daily) trigger:
* Edit -> Current project's triggers -> Add trigger */
function RunAutoArchive(){
var threadCount = 0;
// All read emails older than 1 month will be archived
var searchQuery = 'label:read in:Inbox older_than:1m';
var threads = GmailApp.search(searchQuery);
threadCount = threads.length;
@vinloo
vinloo / DECRYPT.8xp
Last active June 11, 2019 13:43
Find decryption function of lineair encryption function
@vinloo
vinloo / INVERSE.8xp
Last active May 6, 2019 14:42
Find inverse of a number in a range of integers
@vinloo
vinloo / Office 365 update channel manager.bat
Created May 1, 2019 10:57
Change your Office 365 ProPlus update frequency as described here: https://bit.ly/2J80Wk0
@echo OFF
echo.
set m="http://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60"
set s="http://officecdn.microsoft.com/pr/7ffbc6bf-bc32-4f92-8982-f9dd17fd3114"
set mt="http://officecdn.microsoft.com/pr/64256afe-f5d9-4f86-8936-8840a6a4f5be"
set st="http://officecdn.microsoft.com/pr/b8f9b850-328d-4355-9145-c59439a0c4cf"
echo Select one of the following update channels:
echo 1: Monthly Targeted (fastest updates)
@vinloo
vinloo / GCDLIN.8xp
Last active April 6, 2019 11:22
Greates Common Divisor as Linear Combination finder with steps for TI Calculators