Skip to content

Instantly share code, notes, and snippets.

View smtchahal's full-sized avatar

Sumit Chahal smtchahal

View GitHub Profile
@smtchahal
smtchahal / ExpressVPN-Installer-for-Bazzite-Linux.md
Last active May 17, 2026 09:27
ExpressVPN installer for Bazzite Linux (immutable Fedora Atomic)

ExpressVPN Installer for Bazzite Linux

Installs ExpressVPN on Bazzite Linux (immutable Fedora Atomic), working around the limitations of the official .run installer.

Usage

Step 1 — Download the ExpressVPN installer

Go to expressvpn.com/vpn-download/vpn-linux and download the Linux .run file. It'll land in your ~/Downloads folder.

@smtchahal
smtchahal / Bookmarklet to enable right-click & copy-paste.js
Created April 13, 2025 16:17
Bookmarklet to enable right-click & copy-paste
javascript:Array.from(document.getElementsByTagName('*')).forEach(elm => { elm.addEventListener('contextmenu', evt => { evt.stopPropagation(); return true; }, true); elm.addEventListener('paste', evt => { evt.stopPropagation(); return true; }, true); });
@smtchahal
smtchahal / iptables.sh
Created January 11, 2019 05:52 — forked from thomasfr/iptables.sh
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
#!/bin/bash
IPT="/sbin/iptables"
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
DNS_SERVER="8.8.4.4 8.8.8.8"
# Allow connections to this package servers
@smtchahal
smtchahal / hide-dashed-lines-google-docs.css
Last active July 31, 2018 04:15
Hide dashed lines in Google Docs when you disable print layout
.kix-page-compact::before {
border-top: unset;
}
@smtchahal
smtchahal / convert.py
Last active August 14, 2020 17:34
GTA V Snapmatic to JPG converter
#!/usr/bin/env python3
# Converts GTA V's snapmatic files to JPG files.
# It basically removes the first 292 bytes from the file.
#
# Usage: python3 convert.py file1 file2 file3...
#
# Output is stored as file1.jpg, file2.jpg, file3.jpg
# in the same directory.