Skip to content

Instantly share code, notes, and snippets.

View kunaldawn's full-sized avatar
:octocat:
Focusing

Kunal Dawn kunaldawn

:octocat:
Focusing
View GitHub Profile
@kunaldawn
kunaldawn / download.py
Created May 22, 2026 08:51
IA PDF Archiver
#!/usr/bin/env python3
"""
Download the smallest (text) PDF for each item across pages of an Internet
Archive search for creator "Gita Press Gorakhpur", in parallel.
Why smallest? IA typically produces two PDFs per item:
- <id>.pdf : image-heavy scan (large)
- <id>_text.pdf : OCR'd text-layer-only version (small)
Picking by smallest file size reliably grabs the text version.
@kunaldawn
kunaldawn / docker.md
Created August 20, 2022 18:35 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@kunaldawn
kunaldawn / setup.sh
Last active September 24, 2021 20:08
brew my mac
brew install google-chrome pock iina motrix insomnia bitwarden htop cmake wget curl figlet jq tldr ncdu awscli calc hh links nmap tig tmux tree caffeine firefox iterm2 slack ack git colordiff gnu-sed youtube-dl redis ffmpeg go helm kubernetes-cli zsh zsh-syntax-highlighting postman visual-studio-code neofeth goland pycharm
@kunaldawn
kunaldawn / docker_compose.yaml
Created August 12, 2020 18:49 — forked from moonraker595/docker_compose.yaml
Docker Compose file for the Kafka Connect Websocket Data Sink
version: '3'
services:
minio1:
# viewable at http://127.0.0.1:9001/
image: minio/minio:RELEASE.2020-03-14T02-21-58Z
container_name: minio1
restart: always
volumes:
- data1:/data
@kunaldawn
kunaldawn / search.cpp
Created September 18, 2018 05:09
Binary Search With Modes
#include <iostream>
#include <utility>
#include <algorithm>
using namespace std;
enum class SearchMode {
Any,
First,
Last
@kunaldawn
kunaldawn / journal.cpp
Created September 16, 2018 16:48
Journal
//
// Created by kunaldawn on 16/9/18.
//
#include <iostream>
#include <vector>
#include <memory>
using namespace std;
package main
import (
"fmt"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
"net/http"
)
// cookie handling