Skip to content

Instantly share code, notes, and snippets.

View esmaeelE's full-sized avatar
🌴
On vacation

esmaeelE esmaeelE

🌴
On vacation
View GitHub Profile
@esmaeelE
esmaeelE / SelfHostOpenStreetMapDocker.md
Created July 10, 2025 15:31 — forked from jbaranski/SelfHostOpenStreetMapDocker.md
How to self host an Open Street Map server (using Docker)

Here are the steps needed to run a self hosted Open Street Map server (using Docker):

  1. Download desired pbf files (like south-carolina-latest.osm.pbf) from https://download.geofabrik.de or just use the following empty planet below:

    
      <?xml version='1.0' encoding='UTF-8'?>
      <osm version="0.6" generator="osmconvert 0.8.8" timestamp="2019-10-23T20:18:02Z">
        <bounds minlat="42.4276" minlon="1.412368" maxlat="42.65717" maxlon="1.787481"/>
      </osm>
    
@esmaeelE
esmaeelE / syntax.s
Created June 30, 2025 08:45 — forked from mishurov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code
@esmaeelE
esmaeelE / gist:88caa9febeb9d42044e03684d2ebb366
Created May 26, 2025 08:55 — forked from jauderho/gist:6b7d42030e264a135450ecc0ba521bd8
HOWTO: Upgrade Raspberry Pi OS from Bullseye to Bookworm
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ###
#
# Officially, this is not recommended. YMMV
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/
#
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit
#
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels
#
<!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