Skip to content

Instantly share code, notes, and snippets.

View rocka's full-sized avatar
🐧
Soonβ„’

rocka

🐧
Soonβ„’
View GitHub Profile
@lunalucadou
lunalucadou / ProtonLaunch.sh
Last active December 21, 2024 19:00 — forked from smo0z/ProtonLaunch.sh
Proton Launch Script for Games in any Steam Library Folder
#!/bin/sh
# This is a script that allows you to easily launch Steam apps via Proton
# without going through Steam.
# It also allows you to specify specific libraries, for those who utilize
# multiple Steam library folders.
# Finally, it also makes use of curly braces for variable expansion,
# which is best-practice: https://stackoverflow.com/a/8748880
#
# To use this script:
# 1. Save it somewhere (e.g. ~/Desktop/LaunchMyGame.sh)
@obfusk
obfusk / README.md
Last active December 27, 2024 06:54
baseline.profm not deterministic

This for loop:

for (let i = 0, getI = () => i; i < 3; i++)
  console.log(getI());

unrolls to:

@lilydjwg
lilydjwg / colors.py
Last active December 1, 2025 23:24
colors.py: show all kinds of terminal colors at a glance
#!/usr/bin/python3
from functools import partial
def colors16():
for bold in [0, 1]:
for i in range(30, 38):
for j in range(40, 48):
print(f'\x1b[{bold};{i};{j}m {bold};{i};{j} |\x1b[0m', end='')
print()
@LnLcFlx
LnLcFlx / archlogo.txt
Last active December 5, 2025 20:28
Arch Linux logo using unicode block characters
\033[38;2;23;147;209m β–„
β–Ÿβ–ˆβ–™
β–Ÿβ–ˆβ–ˆβ–ˆβ–™
β–Ÿβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–™
β–Ÿβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–™
β–‚β–”β–€β–œβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–™
β–Ÿβ–ˆβ–ˆβ–…β–‚β–β–œβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–™
β–Ÿβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–™
β–Ÿβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–™
β–Ÿβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–™
@IanColdwater
IanColdwater / twittermute.txt
Last active December 6, 2025 11:37
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@lilydjwg
lilydjwg / findorphanfiles
Created August 3, 2019 07:43
Find files not managed by pacman (for Arch Linux and derivatives)
#!/usr/bin/python3
import os
def allrepofiles():
repo = '/var/lib/pacman/local'
files = set()
for dirpath, dirnames, filenames in os.walk(repo):
for file in filenames:
if file != 'files':
@lilydjwg
lilydjwg / btrfs-autosnapshot
Last active December 5, 2024 16:29
btrfs-autosnapshot
#!/usr/bin/python3
import os
import datetime
import subprocess
import logging
import tempfile
import contextlib
from pathlib import Path
@sainnhe
sainnhe / lightline-and-tmux-config.md
Last active October 23, 2025 04:01
Sexy & Powerful Configuration for Lightline and Tmux

π‘Ίπ’†π’™π’š & π‘·π’π’˜π’†π’“π’‡π’–π’ π‘ͺπ’π’π’‡π’Šπ’ˆπ’–π’“π’‚π’•π’Šπ’π’ 𝒇𝒐𝒓 π‘³π’Šπ’ˆπ’‰π’•π’π’Šπ’π’† 𝒂𝒏𝒅 π‘»π’Žπ’–π’™

Nerd Font

First of all, install a nerd font, and apply it: nerd font

@smo0z
smo0z / ProtonLaunch.sh
Last active June 12, 2025 09:55
Proton Launch Script
#!/bin/sh
# Application path
APP_PATH="$(dirname "${BASH_SOURCE[0]}")"
cd "$APP_PATH"
# Executable file
APP_EXEC="$APP_PATH/.exe"
# Steam / IDs