Skip to content

Instantly share code, notes, and snippets.

View jabbalaci's full-sized avatar

Laszlo Szathmary jabbalaci

View GitHub Profile
@jabbalaci
jabbalaci / vscode_light.toml
Last active November 11, 2026 15:06
Visual Studio Light theme for the moe text editor
# Theme color configuration
# Converted from VS Code's "Light (Visual Studio)" theme (light_vs.json).
# Colors that light_vs.json does not define were taken from VS Code's built-in
# light-theme defaults. Semi-transparent VS Code colors (#RRGGBBAA) were
# pre-blended against the white background, since moe only takes #RRGGBB.
#
# Color format: "#RRGGBB" (hex) or "termDefault" (terminal default color)
[Colors]
@jabbalaci
jabbalaci / nfshp2.txt
Created July 9, 2026 05:26
Play NFSHP2 on Linux
How to play Need for Speed Hot Pursuit 2 on Linux
=================================================
We'll import it to Steam and play it with the Proton compatibility layer.
1) Install it under Windows
see https://ubuntuincident.wordpress.com/2024/12/29/make-nfshp2-run-under-windows-10/
+ add the noCD patch
+ add the widescreen patch (in my case: 1920Γ—1080)
Summary: make sure that it runs well on Windows
#!/usr/bin/env python3
# Author: Laszlo Szathmary, alias Jabba Laci, 2026
import json
import os
import shlex
from pathlib import Path
from pprint import pprint
from subprocess import PIPE, STDOUT, Popen
@jabbalaci
jabbalaci / settings.json
Last active March 13, 2024 06:01
My VS Code settings for autoformatting C code
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.c$",
"isAsync": false,
"cmd": "cd '${fileDirname}' && clang-format --style=Microsoft -i '${fileBasename}'"
},
]
},
@jabbalaci
jabbalaci / gist:ff36bd0146887c2aec55478d46821682
Created March 5, 2024 20:25
My settings for VS Code and Ruff
My `settings.json` for VS Code
------------------------------
{
"files.eol": "\n",
"workbench.colorTheme": "Visual Studio Light",
"workbench.colorCustomizations": {
"editor.background": "#fcf5e3",
"sideBar.background": "#f9edcd",
// "editor.lineHighlightBackground": "#e9f2fa",
"editor.lineHighlightBackground": "#efefef",

BlackArch Linux

Things to do after installation

  • increase font size in terminal
  • check the shell (it's bash)
  • add an alias (alias d="ls -al")
  • edit /etc/pacman.conf, and add this line: ParallelDownloads = 20
  • edit mirror lists in /etc/pacman.d
@jabbalaci
jabbalaci / .bashrc
Created November 5, 2023 09:54
.bashrc settings for the micro text editor
# add these to the end of your ~/.bashrc
alias m="micro"
# if you want to use micro everywhere
export EDITOR="micro"
export VIEWER=$EDITOR
export VISUAL=$EDITOR
export GIT_EDITOR=$EDITOR
@jabbalaci
jabbalaci / auto_clicker.py
Created October 22, 2023 13:53
Automatically perform mouse operations with PyAutoGUI
#!/usr/bin/env python3
import time
import pyautogui
# where to click on the screen
X, Y = 1079, 481
# How many times to click.
@jabbalaci
jabbalaci / gist:8f3132fa0d91b3690de1ca7015168da9
Created June 12, 2023 20:27 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@jabbalaci
jabbalaci / data-of-one-video.py
Created June 6, 2023 19:44
Fetch data of a YouTube video in JSON format
#!/usr/bin/env python3
"""
using the yt-dlp package
"""
import json
from pprint import pprint
import yt_dlp