Skip to content

Instantly share code, notes, and snippets.

View kulvind3r's full-sized avatar

Kulvinder Singh kulvind3r

View GitHub Profile
@kulvind3r
kulvind3r / ahk_scripts.ahk
Created January 11, 2026 15:43
Bunch of Auto Hot Key v2 shortcuts for various nick nacks. Serves as backup and implementation examples.
; Toggle Navigation pane in Windows Explorer
!n::
{
Send('!vn{enter}')
}
; End
; Toggle Power Profile
^!p::
{
@kulvind3r
kulvind3r / github_gifs.md
Last active September 27, 2024 09:21
Github GiFs crash course

Guide to Github GiFs

Constraints

  1. Max 100 MB File size allowed in commit check in. Max 10 MB if you use drag and drop on web.
  2. Anything above 50MB takes eons to load. You need to shrink file size as much as you can.
  3. MP4/MOV file support is limited to web drag and drop only thus limiting to 10 MB size. It also adds an ugly player frame with controls. Gifs are much prettier.

Pipeline

  1. Screen capture to MP4 format using ShareX
  2. Use Openshot to remove dead space in recording, add transitions etc. (See Tip 6 at bottom for a super hack)
@kulvind3r
kulvind3r / mist.ahk
Last active May 24, 2025 07:01
Mist: A browser overlay for non steam games built using AutoHotKey v2.0. Opens your installed browser for looking up guides, walkthroughs, maps or anyting else you want.
; Mist: A browser overlay for non steam games.
browserPath := "C:\Program Files\Mozilla Firefox\firefox.exe" ; replace with browser of your choice
browserExe := "firefox.exe" ; exe of the browser in above line
browserWidth := 1600 ; Horizontal size of browser you will like. Must be less than max horizontal resolution of primary monitor
browserHeight := 900 ; Vertical size of browser you will like. Must be less than max horizontal resolution of primary monitor
!Space:: ; Default hotkey is Alt + Space
{
; Toggle the overlay and browser
if WinExist("Dark Overlay")
{
@kulvind3r
kulvind3r / what_next.sh
Created June 13, 2021 18:15
Script that randomly suggest something to do from your favourites. Useful for those slow days when you are bored to death and have no idea what to do with your life.
#!/bin/bash
set -e
SCRIPT=$0
ARG=$1
ACTIVITIES_FILE=~/what_next_activities.json
# Colors
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
@kulvind3r
kulvind3r / certify.md
Last active September 14, 2024 13:51
SSL Certs Cheatsheet: Quick reference guide for setting up well generated self-signed / trusted certificates for your internal https connection requirements

SSL Certs Cheatsheet

A quick guide to do all things certificate related.

1. Self signed certificate and private key

Ready to use self signed certificate with SAN extensions.

openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -nodes \
-keyout app.domain.com.key -out app.domain.com.cer \

-subj /C=IN/ST=MH/L=PUN/O=TW/OU=IT/CN=app.domain.com \

@kulvind3r
kulvind3r / keepass.md
Last active April 8, 2019 08:12
Why use KeePass and How?

KeePass - Password Manager for Masses

Conventional wisdom recommends using a unique, randomized, long password for each set of credentials you setup for your use. It increases security and prevents loss of multiple accounts if any one account gets hacked thereby leaking your creds.

Conventional wisdom fails to say anything about remembering these unique long hieroglyphs. How very convinient for conventional wisdom.

The solution to this problem, like every other problem is to make it someone else's problem. In this scenario, a password manager's.

A password manager is a software that does the job of generating such unique randomized passwords for you, storing them and giving them to you when you need them, like an obedient lackey. In return all you have to do is to remember the one password for the Password Manager.

@kulvind3r
kulvind3r / git_version.sh
Last active September 1, 2024 08:42
Version build artefacts using git tags. Maintain history and remove dependency on your CI server.
#!/bin/bash
set -e
SCRIPT=$0
ARG=$1
BASE_VERSION="0.1"
validation_error() {
echo "Not inside a git repo. Exiting."
@kulvind3r
kulvind3r / git_multi.sh
Last active December 21, 2024 17:47
Minimalist git multi script. Make alias 'gm' to script, use as "gm <git_command>" to run command across multiple checked out git repos.
#!/bin/bash
set -e
ARG="$1"
WORK_DIR=$(pwd)
run() {
find "$WORK_DIR/" -maxdepth 1 -type d | while read DIR
do
cd "${DIR}"
@kulvind3r
kulvind3r / crypt.sh
Last active September 14, 2024 13:52
Crypt: Bare bones en/decryption script based on aes-256-cbc algo. Handy to store file based secrets securely.
#!/bin/bash
set -e
SCRIPT_NAME=$0
OPT=$1
FILES_PATH=$2
PASSPHRASE=$3
usage() {
echo -n "${SCRIPT_NAME} [OPTIONS] [FILE_PATH] [PASSPHRASE]