Skip to content

Instantly share code, notes, and snippets.

View ibnsamy96's full-sized avatar
😶
trying to find hope

Mahmoud Samy ibnsamy96

😶
trying to find hope
View GitHub Profile

Micro Editor Cheat Sheet

Micro is a terminal text editor that uses standard Ctrl-key shortcuts (like a normal GUI editor) — no modes to worry about.

Files

Shortcut Action
Ctrl+s Save
Ctrl+o Open file

tmux Cheat Sheet

Prefix key is Ctrl+b by default — press it, release, then press the next key.

Sessions

Command Action
tmux Start new session
tmux new -s name Start named session
  1. Download wezterm https://wezterm.org/install/linux.html#__tabbed_1_3
  2. Download and install the needed fonts
    mkdir -p ~/.local/share/fonts
    cd ~/.local/share/fonts
    wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FiraCode.zip
    unzip FiraCode.zip
    fc-cache -fv
  3. Create a file a file ~/.wezterm.lua

Issues I've faced after installing Windows

As a note, I've used windows 11, and these are the issues I've faced while using it.

1. Installing UnitGetUI

  1. Head to https://www.marticliment.com/unigetui
  2. Download and install it
  3. Use the backup in your gists
@ibnsamy96
ibnsamy96 / get-all-stored-wifi-passwords.md
Created April 9, 2025 07:05
get all stored wifi passwords

Use this command: sudo grep -r '^psk=' /etc/NetworkManager/system-connections/

It will give you output like this:

/etc/NetworkManager/system-connections/<wifi1-ssid>:psk=<wifi1-password>
/etc/NetworkManager/system-connections/<wifi2-ssid>:psk=<wifi2-password>
/etc/NetworkManager/system-connections/<wifi3-ssid>:psk=<wifi3-password>
@ibnsamy96
ibnsamy96 / linux_issues.md
Last active April 27, 2026 22:31
Issues I've faced during using linux and what I've done to fix them.
@ibnsamy96
ibnsamy96 / ssh_git_authentication.md
Last active June 25, 2025 09:31
authenticating new github account to the git cli using ssh
  1. Create the ssh public key using this command in the terminal, enter the command and follow all the presented steps
    ssh-keygen -t ed25519 -C <account_email>
  2. Terminal will show the path of the file which has the public key in your system, copy that path and open it.
    cat <file_path> ## ~/.ssh/id_ed25519.pub
  3. You'll see the key, copy all the file content and go to this page https://github.com/settings/keys and click New SSH key.
  4. In the opened page, use any understandable title, use Authentication Key as key type, and add the copied key to the key box.
@ibnsamy96
ibnsamy96 / startup_script_linux.md
Last active November 19, 2023 00:43
linux shell script that open apps when the system starts

Script to start apps in shell:

#!/bin/bash

# Open Google Chrome with specific tabs
google-chrome "https://www.google.com" "https://www.stackoverflow.com" "https://www.github.com" &

# Open Visual Studio Code
code &
"files.associations": {
"*.js": "javascriptreact"
}
In the workspace create 'settings.json' file in '.vscode' folder and put this peice of code in it.
{
"liveSassCompile.settings.generateMap": true, // good for debugging
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": "~/../css",
"indentType": "tab",