Skip to content

Instantly share code, notes, and snippets.

View rajivharlalka's full-sized avatar
🐥

Rajiv Harlalka rajivharlalka

🐥
View GitHub Profile
@rajivharlalka
rajivharlalka / PostgreSQL Resources
Last active June 23, 2023 11:17
A list of good places to get started with postgreSQL
Resources I found while reading about postgreSQL during my GSoC Journey'23.
@rajivharlalka
rajivharlalka / GSoC Journey.md
Last active May 27, 2024 04:13
GSoC'23 Work Progress - pg_statviz - Rajiv Harlalka

Reading

Read

  • Mastering PostgreSQL 15: Build, administer, and maintain database applications efficiently with PostgreSQL 15

    • Hans-Jürgen Schönig
  • PostgreSQL Administration Cookbook - Great Book for simple recepies on different sub-topics.

  • Simon Riggs, Gianni Ciolli

@rajivharlalka
rajivharlalka / script.py
Created May 5, 2023 15:49
Python script that bulk delete all DNS records. Since CF does not provide an api to delete all records, this script can do the same easily. CF_ZONE_ID and CF_AUTH_ID are two environment variables required for this script.
import requests
import json
import os
zone_id = os.environ['CF_ZONE_ID']
token='Bearer '+ os.environ['CF_AUTH_TOKEN']
authentication={'Authorization' : token}
list_url="https://api.cloudflare.com/client/v4/zones/{0}/dns_records".format(zone_id)
delete_url="https://api.cloudflare.com/client/v4/zones/{0}/dns_records/{1}"
@rajivharlalka
rajivharlalka / functions.zsh
Created November 7, 2022 03:34
A list of zsh functions I use for better terminal efficiency.
#Run Code -Code runner for C/C++ codes
rc() {
#!/bin/bash
PROG_NAME=$1
g++ -Werror $PROG_NAME
if [[ $? == 0 ]]; then
./a.out
fi
}