Skip to content

Instantly share code, notes, and snippets.

View aidrecabrera's full-sized avatar
🔵
Recovering

Svene aidrecabrera

🔵
Recovering
View GitHub Profile
#!/bin/bash
set -euo pipefail
# Directory setup
APP_DIR="${HOME}/Applications"
ICON_DIR="${HOME}/.local/share/icons"
DESKTOP_DIR="${HOME}/.local/share/applications"
BIN_DIR="${HOME}/.local/bin"
@zodwick
zodwick / telegram_cleanup.py
Created January 4, 2024 14:18
Leave unwanted/spam Telegram Groups - also delete joined Telegram messages chats
from telethon.sync import TelegramClient
from telethon.tl.functions.messages import GetDialogsRequest
from telethon.tl.types import InputPeerEmpty
# Go to https://my.telegram.org/apps, sign in, go to API development tools, create an app, copy and paste below:
api_id = 123456
api_hash = '303xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
phone = '+xxxxxxxxxxxx'
client = TelegramClient(phone, api_id, api_hash)
client.connect()
if not client.is_user_authorized():
@lbrame
lbrame / archtweaks.md
Last active August 5, 2024 00:46
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active September 22, 2024 05:22
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example