Skip to content

Instantly share code, notes, and snippets.

View GottZ's full-sized avatar
🐝
The Bees Knees

Jan-Stefan Janetzky GottZ

🐝
The Bees Knees
View GitHub Profile
@vRobM
vRobM / Slack-Go-dARK.ps1
Created December 6, 2018 19:38
Make Slack Desktop for Windows have dARK mode using powershell.
// Ark Labs presents - Slack dARK mode
$slackBaseDir = "$env:LocalAppData\Slack"
$installations = Get-ChildItem $slackBaseDir -Directory | Where-Object { $_.Name.StartsWith("app-") }
$version = $installations | Sort-Object { [version]$_.Name.Substring(4) } | Select-Object -Last 1
Write-Output "Select highest intalled Slack version: $version";
$modAdded = $false;
$customContent = @'
@vurpo
vurpo / surface-fix-eraser-and-touch.py
Last active December 27, 2024 19:42
https://github.com/StollD/linux-surface-fix-eraser but modified to also disable the touch screen when the pen is near the screen
#!/usr/bin/env python3
"""
Copyright 2019 StollD, 2019 vurpo
Original: https://github.com/StollD/linux-surface-fix-eraser
Licensed under GNU GPL version 3
"""
import os
import os.path
@leandronsp
leandronsp / 001-README.md
Last active June 3, 2025 11:50
OOP in Bash script

OOP in Bash script

Wait, what?

Inspired by this awesome article.

Prelude about OOP

According to wikipedia, OOP is a programming paradigm or technique based on the concept of "objects". The object structure contain data and behaviour.

Data is the object's state, which should be isolated and must be private.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active July 16, 2025 01:46
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@trvswgnr
trvswgnr / compress_video
Last active February 5, 2025 20:37
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in