Skip to content

Instantly share code, notes, and snippets.

View jabbalaci's full-sized avatar

Laszlo Szathmary jabbalaci

View GitHub Profile
@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

YouTube tippek

Q: Egy videó adatait hogyan lehet leszedni JSON formában?

A: Példa:

#!/usr/bin/env bash

URL="https://www.youtube.com/watch?v=YbZZ9X-jFog"
@jabbalaci
jabbalaci / dynamic_array.c
Created May 6, 2023 12:21
Simple dynamic array in C
#include <stdio.h>
#include <stdlib.h>
int main()
{
int *tomb = NULL;
int n = 0; // elemszám
while (1)
{
@jabbalaci
jabbalaci / stations.csv
Last active April 30, 2023 15:30
Online Radio Stations
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
id;stream;homepage
slay;http://relay3.slayradio.org:8000/;http://www.slayradio.org/home.php
bestfm;http://stream.webthings.hu:8000/fm95-x-128.mp3;http://www.bestfm.hu
retro;https://icast.connectmedia.hu/5001/live.mp3
kossuth;http://stream002.radio.hu/mr1.mp3;http://www.mr1-kossuth.hu/
szkr;http://radio.szentkoronaradio.com:8048/;http://radio.szentkoronaradio.com
maria;http://www.mariaradio.hu:8000/mr;http://www.mariaradio.hu