Skip to content

Instantly share code, notes, and snippets.

@lpranam
lpranam / squash.md
Last active July 3, 2025 18:41
How to squash commits

What is squashing?

Squashing is a process in which we squeeze multiple commits into one pretending it is only a single commit.

Basically squashing commits means we are rewriting the history of commits to make them look like single commit.

squash-diagram.jpg

Why squashing commits is necessary?

@irazasyed
irazasyed / 1-dnsmasq-dnscrypt-proxy-setup.md
Last active June 24, 2025 20:17
How to Setup dnsmasq with dnscrypt-proxy and Cloudflare DNS on macOS

How to Setup dnsmasq with dnscrypt-proxy and Cloudflare DNS on macOS

Using Laravel Valet for localhost development, So it installs dnsmasq with it. dnsmasq runs on port 53, The default DNS port. So we setup dnscrypt-proxy on port 5300 with the default config files in this gist.

dnscrypt-proxy Installation

brew install dnscrypt-proxy
@zoonderkins
zoonderkins / awesome-dns-resolver.md
Last active May 13, 2023 14:57
awesome-dns-resolver
# Sample Nginx configuration for Misskey
#
# 1. Replace example.tld to your domain
# 2. Copy to /etc/nginx/sites-enabled
# or copy to /etc/nginx/sites-available and symlink from /etc/nginx/sites-ebabled
# For WebSockets
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
@ndlrx
ndlrx / docker-help.md
Created February 12, 2019 03:15 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@573
573 / readme.md
Last active January 20, 2024 21:02
nix complains "error: cannot auto-call a function that has an argument without a default value ('stdenv')"?

Add on top of default.nix: with import {}; or simply run as nix-build '' (i. e. for nix-build complaining) or rather nix-build -E 'with import {}; callPackage ./default.nix {}' (or even import)

@tuxPT
tuxPT / sway-config
Last active April 23, 2025 06:40
sway config
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
exec wal -R
#notifications
exec mako
exec mailnag
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active July 22, 2025 19:25
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@leto
leto / worms.md
Created November 16, 2019 14:48
SilentDragon Wormhole Update

SD Wormhole Update

Just 24hrs ago, we were much further from having a wormhole. The service was down, there was no routing from port 443 to the localhost:7070 port that the wormhole runs on, we were not using CloudFlare and our SSL certs were not working correctly.

Now we have a WormHole running, where CloudFlare listens on wormhole.myhush.org:443 and sends data to our haproxy instance maps that to the wormhole backend running localhost:7070.

SDA can initiate a connection, and attempts to register a websocket sessionid. This is where things go wrong:

@Sherex
Sherex / README.md
Last active February 18, 2025 22:34
A script for the Wireguard config options PostUp/PostDown entries. It will allow peers to connect to the Wireguard interface and do IP forwarding (port forwarding will be added later)

IfScript

Hi, I made this for my use-case, but feel free to use it :)
This is currently only handling the NAT side of things, not PAT!
The from-to port options is just a placeholder it will use the first port specified.

route_port 80 80 tcp $vpn_ip $server_ip

How to use?

Download and make executable