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 / proxy.md
Last active April 18, 2025 17:00
Use Proxy for some programs to bybass intenet restriction on IRAN.

Install

sudo apt install proxychains

Config

[ProxyList]
# add proxy here ...
# meanwile
@jauderho
jauderho / gist:6b7d42030e264a135450ecc0ba521bd8
Last active July 13, 2025 05:36
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
#
@arunrreddy
arunrreddy / index.html
Created March 8, 2022 09:41 — forked from kertnik05/index.html
html table cell split diagonally
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Cell Split Diagonally</title>
</head>
<body>
<table>
<tr>
<td>
<div class="c1">A</div>
@sts10
sts10 / rust-command-line-utilities.markdown
Last active July 10, 2025 08:11
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@lakshyabatman
lakshyabatman / bitcoin.sh
Created January 9, 2021 14:29
Small script to show bitcoin price on terminal!
#!/bin/bash
#A Shell script to fetch bitcoin price and display !
#Author: Lakshya Khera
#Dependencies
# - jq https://stedolan.github.io/jq/
# - lolcat https://github.com/busyloop/lolcat/
#
bitcoin_price=$(curl -s https://api.coindesk.com/v1/bpi/currentprice.json | jq '.bpi.USD.rate ')
@jbaranski
jbaranski / SelfHostOpenStreetMapDocker.md
Created August 1, 2020 14:52
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>
    
@kertnik05
kertnik05 / index.html
Last active October 5, 2023 21:26
html table cell split diagonally
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Cell Split Diagonally</title>
</head>
<body>
<table>
<tr>
<td>
<div class="c1">A</div>
/* This file is part of:
* Jalali, a Gregorian to Jalali and inverse date convertor
* Copyright (C) 2001 Roozbeh Pournader <[email protected]>
* Copyright (C) 2001 Mohammad Toossi <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
@spyesx
spyesx / docker-cheat-sheet.md
Last active November 2, 2024 08:44 — forked from dwilkie/docker-cheat-sheat.md
Docker Cheat Sheet

Stop all containers

$ docker stop $(docker ps -q)

Build docker image

$ cd /path/to/Dockerfile
@monkeym4ster
monkeym4ster / docker.sh
Created July 6, 2017 06:04
Docker: save/load container using tgz file (tar.gz)
#for not running docker, use save:
docker save <dockernameortag> | gzip > mycontainer.tgz
#for running or paused docker, use export:
docker export <dockernameortag> | gzip > mycontainer.tgz
#load
gunzip -c mycontainer.tgz | docker load