Skip to content

Instantly share code, notes, and snippets.

View SomajitDey's full-sized avatar

Somajit SomajitDey

View GitHub Profile
@SomajitDey
SomajitDey / freemium_port_forwarding_services.md
Last active February 15, 2026 15:22
A list of free or freemium services for exposing localhost to internet with a public ip
@SomajitDey
SomajitDey / anydesk-enable-remote-access.md
Created April 2, 2023 13:56 — forked from imami/anydesk-enable-remote-access.md
AnyDesk - How Enable Remote Access from ubuntu/debian terminal

###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.

Note:

Here are the commands might be usefull in this purpose:

  • anydesk --get-status : To get current status of anydesk, which might be offlien,online or nothing.
  • anydesk --get-id : To get the ID that your system can be accessed by.
  • anydesk --service : To start anydesk service if not already running (for Linux).
  • anydesk --restart-service : To restart anydesk service
  • anydesk --stop-service : To stop anydesk service
@SomajitDey
SomajitDey / web_dev_resources.md
Last active December 17, 2025 07:06
Resources for HTML, CSS and JS/NodeJS development
@SomajitDey
SomajitDey / WSL2-Windows_port-forward.md
Last active December 16, 2025 15:06
How to forward WSL2 port to Windows port and vice versa
@SomajitDey
SomajitDey / install_ifort_ifx.md
Last active November 23, 2025 05:15
Install INTEL Fortran compiler ifort for free on Ubuntu(WSL2). Also install MKL. OpenMP and OpenMPI runtime for coarray support.

My route:

  1. curl -Lo- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
  2. sudo tee /etc/apt/sources.list.d/oneAPI.list <<< "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main"
  3. sudo apt update
@SomajitDey
SomajitDey / static_site_howto.md
Last active September 24, 2025 11:44
Create and deploy static site for personal website or blog. Contains contact form, feeds and comment section.
@SomajitDey
SomajitDey / GraphQL_GitHub.md
Last active September 24, 2025 11:43
GraphQL offers many advantages over REST API. Once learned, it's fast, it's efficient, it's fun

Notes and Learning Resources

@SomajitDey
SomajitDey / WSLg.md
Last active September 24, 2025 09:56 — forked from 4wk-/README.md
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

A - Uninstall wsl and related stuff

  1. In powershell (as admin)
# list all installed distros
wsl -l -v

# destroy distros
wsl --unregister Ubuntu
@SomajitDey
SomajitDey / compression_cryptography_using_URL_shortener.md
Last active September 24, 2025 09:56
Any data can be compressed using URL shorteners. Two such compression can form a public-private key pair. Only one can lead to the other not the other way round.

Compression

  • take your minified JSON and turn it into a URL safe base64 string. The length of this string can be as big as this.
  • make a dummy url like http://dummy.tld/<the base64 string> and shorten it using any URL shortener.
  • save the unique path of the shortened url as your compressed data (henceforth called token). No need to store the domain of the shortened URL as the URL shortener would be hardcoded in your app.

Decompression

  1. Reconstruct the shortened URL from the token. Try to fetch (GET) the shortened URL.
  2. Parse the response for the redirect url and extract the base64 string.
  3. Decode the base64.