Skip to content

Instantly share code, notes, and snippets.

@applsdev
applsdev / github_desktop_linux.md
Created September 26, 2025 10:55 — forked from dvmn-tasks/github_desktop_linux.md
Как установить клиент Github Desktop для Linux

Как установить клиент Github Desktop для Linux

По этой ссылке вы можете найти релизы Github Desktop для Linux. Чтобы скачать один из них, кликните по нужному названию (например, GitHubDesktop-linux-amd64-1.4.2-linux1.deb).

Если вы используете Ubuntu или Debian - вам нужен установщик с расширением .deb. Скачайте его, откройте и нажмите install в появившемся окошке. Готово, программа установлена.

Как запустить

@applsdev
applsdev / static_site_howto.md
Created September 24, 2025 11:44 — forked from SomajitDey/static_site_howto.md
Create and deploy static site for personal website or blog. Contains contact form, feeds and comment section.
@applsdev
applsdev / GraphQL_GitHub.md
Created September 24, 2025 11:43 — forked from SomajitDey/GraphQL_GitHub.md
GraphQL offers many advantages over REST API. Once learned, it's fast, it's efficient, it's fun

Notes and Learning Resources

@applsdev
applsdev / rainbow.sh
Created September 24, 2025 11:00 — forked from the-moog/rainbow.sh
Bash shell scipt that prints lots of colous on an ANSI terminal
#!/bin/bash
# rainbow
# A bash script that prints a nice set of colours on an ANSI terminal
# Written as a platform to test capability and conformance, but it's also pretty!!
# Written in celebration of Pride Month 2023 and support of LGBTQ+
# J. Morgan (@the-moog on github)
#
# License: MIT: Free to the community not commercial gain and no warranties applied.
@applsdev
applsdev / WSLg.md
Created September 24, 2025 09:56 — forked from SomajitDey/WSLg.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
@applsdev
applsdev / compression_cryptography_using_URL_shortener.md
Created September 24, 2025 09:56 — forked from SomajitDey/compression_cryptography_using_URL_shortener.md
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.
@applsdev
applsdev / WSL2-Windows_port-forward.md
Created September 24, 2025 09:55 — forked from SomajitDey/WSL2-Windows_port-forward.md
How to forward WSL2 port to Windows port and vice versa
@applsdev
applsdev / WSL2-DNAT-HowTo.md
Created September 24, 2025 09:54 — forked from the-moog/WSL2-DNAT-HowTo.md
Make WSL2 networking play nicely with DNAT/dest-NAT/portproxy and/or give WSL a static IP address

Port forwarding from host (aka WSL2 Static IP)

I have read many articles about WSL networking that try and sort DNAT and static IP and none that I've found seem to work or only work for some. So here is my attempt....

It seems getting port forwarding to work in WSL is not easy. I think WSL has unusual hidden network mechanisms and that confuses the matter. Also when WSL boots the WSL init mechanism gives the guest a random address, which is no use for static NAT

This worked for me. Try it yourself and let me know if I've finally cracked it !!

Анимация Земли. Подробнее о создании можно почитать на Хабрахабре.