Skip to content

Instantly share code, notes, and snippets.

View oasido's full-sized avatar
💅

Ofek Asido oasido

💅
View GitHub Profile
@mattbell87
mattbell87 / Capslock.md
Last active November 13, 2022 16:50
Removing the caps lock delay on Linux

How to remove the caps lock delay on Linux

Some people prefer to use the Caps Lock key in order to type capital letters, but on linux there's a delay when the button is pressed. Since there appears to be very few people who prefer to type this way the problem has never been fixed.

This is a short and sweet tutorial on how to fix that.

Open your terminal

In most distibutions you can do this by pressing the Win/Super key, type terminal and press Enter.

@GNY-001F2
GNY-001F2 / NVInstall.md
Last active August 9, 2024 07:28
GUIDE: Installing Nvidia Drivers correctly on OpenSUSE Tumbleweed
## Prerequisite: You must either boot to your OS on runlevel 3, or you must manually disable all
## instances of the X server when running the NVIDIA installer.

# Check if you have the packman repository installed
$ zypper lr
# output will be like this:
#  | Alias                 | Name                  | Enabled | GPG Check | Refresh
---+-----------------------+-----------------------+---------+-----------+--------
 1 | RepoAlias             | RepoName              | Yes/No  | Yes/No    | Yes/No   
@Starefossen
Starefossen / tmux-cheats.md
Last active June 18, 2025 18:41
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session
@jtdp
jtdp / gist:5443498
Last active July 7, 2025 19:33
Revert file permission changes in local git repository.. Very useful when you change permissions due to working on a samba share. Lifted from: http://stackoverflow.com/questions/2517339/git-how-to-recover-the-file-permissions-git-thinks-the-file-should-be
git diff -p \
| grep -E '^(diff|old mode|new mode)' \
| sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
| git apply
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 22, 2025 09:29
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@mlconnor
mlconnor / country_date_formats.csv
Created February 22, 2012 20:49
Listing of countries with their preferred date formats, ISO3166 code, ISO629-2
ISO 3166 Country Code ISO639-2 Country Code Country ISO 3166 Country Code ISO639-2 Lang Language Date Format
ALB AL Albania sqi sq Albanian yyyy-MM-dd
ARE AE United Arab Emirates ara ar Arabic dd/MM/yyyy
ARG AR Argentina spa es Spanish dd/MM/yyyy
AUS AU Australia eng en English d/MM/yyyy
AUT AT Austria deu de German dd.MM.yyyy
BEL BE Belgium fra fr French d/MM/yyyy
BEL BE Belgium nld nl Dutch d/MM/yyyy
BGR BG Bulgaria bul bg Bulgarian yyyy-M-d
BHR BH Bahrain ara ar Arabic dd/MM/yyyy