Skip to content

Instantly share code, notes, and snippets.

View esmaeelE's full-sized avatar
🌴
On vacation

esmaeelE esmaeelE

🌴
On vacation
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>My Website</title>
  </head>
  <body>
 Welcome to My Website 
@esmaeelE
esmaeelE / pass.md
Created April 15, 2025 12:50
debian password

qcow2 debian debian

tmux rust, cargo

If we have install cargo with rustlang script its add cargo source comamnd to the ~/.profile.

So after removing cargo binary from system tmux in every session will generate error complaning that cargo path is not found. Simply remove correspond line from ~/.profile

@esmaeelE
esmaeelE / present.md
Created March 11, 2025 10:31
Present in Terminal

Download latest release

https://github.com/maaslalani/slides/releases/download/v0.9.0/slides_0.9.0_linux_amd64.tar.gz

Exctract and place on /usr/local/bin

sudo tar -C /usr/local/bin/ -xvf slides_0.9.0_linux_amd64.tar.gz slides

Run

slides present.md

@esmaeelE
esmaeelE / multiple_ssh_setting.md
Created March 10, 2025 08:16 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@esmaeelE
esmaeelE / xfce-terminal.md
Created February 26, 2025 11:09
xfce terminla drop down
xfconf-query -c xfce4-keyboard-shortcuts -lv | grep -i "Terminal"

Output

/commands/custom/<Alt>F12                  xfce4-terminal --drop-down --fullscreen
/commands/custom/<Primary><Alt>t           exo-open --launch TerminalEmulator
/commands/default/<Primary><Alt>t          exo-open --launch TerminalEmulator
@esmaeelE
esmaeelE / click.py
Last active February 18, 2025 07:57
click cli read from stdin
#!/env/bin/python3
import click
import sys
@click.group()
def cli():
pass
@esmaeelE
esmaeelE / download.md
Last active April 7, 2025 09:47
download

Download with aria2

alias dn='aria2c -s16 -x16 -j4 -c'

download with username and password

http://username:password@link
@esmaeelE
esmaeelE / virtualbox.md
Last active April 16, 2025 09:19
virtualbox on Debian

Virtualbox

Run virtualbox while using debian testing/sid as there is no pre-packaged virtualbox for Debian testing/sid we must add stable channel to get Virtualbox and all needed dependency packages.

$ sudo apt install -t stable virtualbox
@esmaeelE
esmaeelE / 2fa.md
Last active January 5, 2025 08:47
2FA with google auth

Prerequistics

python3 -m venv env
source env/bin/activate
python3 -m pip install pillow pyotp qrcode

code

import time