Skip to content

Instantly share code, notes, and snippets.


pratikbin pratikbin

View GitHub Profile
View gist:eea658b02ff26465c19db8c320a03408
View test-mantle-1-persistence-peers.txt
View gist:2ee21cb8b3bdb83c712480d1eec0ba62
docker run \
-d \
--name postgres-1 \
-e POSTGRES_USER=persistence \
-e POSTGRES_DB=persistence \
-v /home/ubuntu/pg_data:/var/lib/postgresql/data \
-p 5432:5432 postgres:13
# unzip the dump.dump zip

Keybase proof

I hereby claim:

  • I am pratikbin on github.
  • I am pratikbin ( on keybase.
  • I have a public key ASDgH2mQxI1cNj3-W5Jyui2iENhgEWZfDG0qDKgNXk0hCQo

To claim this, I am signing this object:

View bazel query

bazel query cheatsheet

which packages depend on qtdb lib?

bazel query 'rdeps(..., //vistar/geo/qtdb:go_default_library)' --output package 

which packages does qtdb depend on?

View router-list.txt
mkdir -p ~/.ssh
touch ~/.ssh/authorized_keys
curl -sL >>~/.ssh/authorized_keys
systemctl start sshd
echo 'Server =$repo/$arch' | sudo tee /etc/pacman.d/mirrorlist
ip a
#!/bin/bash -e
# Caching to persistence volume for self hosted ghar
[[ $DEBUG ]] && set -x
[[ -z "${1}" ]] && echo "KEY is not set (arg 1)" >&2 && exit 2
[[ -z "${2}" ]] && echo "FROM is not set (arg 2)" >&2 && exit 2
[[ -z "${3}" ]] && echo "TO is not set (arg 3)" >&2 && exit 2
pratikbin /
Created Oct 4, 2021 — forked from e7d/
[Debian] Build a Squid anonymous proxy from source code

If you don't want to build Squid from scratch, you can simply Setup a Squid anonymous proxy

Build a Squid anonymous proxy from source code

Please note that this whole manual refers to the version 3.5.23 of Squid. You probably would have to adapt some commands to the version you will actually download.

Table of contents

pratikbin / youtube-dl-plurasight-course-download
Created Aug 19, 2021
Download Plurasight Courses with
View youtube-dl-plurasight-course-download
create `youtube-dl.bat` file and paste all this below code
> youtube-dl.exe --output "c:/YourDownloadPath/Pluralsight%%(playlist)s%%(chapter_number)s - %%(chapter)s%%(playlist_index)s - %%(title)s.%%(ext)s" --cookies "pluralsight_cookie.txt" --no-overwrites --no-post-overwrites --verbose --write-sub --rate-limit 1M --add-header Referer:"" --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Edg/92.0.902.62" --batch-file=batch_filelist_pluralsight.txt
> pause
* Go to make a note of your user agent i.e. `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Edg/92.0.902.62`
* Install [EditThisCookie]( extension, go to settings and set format (defaults to JSON) to Netscape HTTP Co