Skip to content

Instantly share code, notes, and snippets.

View CuriousLearner's full-sized avatar
❣️
I've gone to search myself, if I return before I get back, ask me to wait. 🐍 🐝

Sanyam Khurana CuriousLearner

❣️
I've gone to search myself, if I return before I get back, ask me to wait. 🐍 🐝
View GitHub Profile

PostgreSQL VACUUM ANALYZE & Debug Cheatsheet

Last updated: 2025-05-10 14:16:59 UTC


✅ Connect to a Different Database with Elevated Permissions

\c your_db your_writer_user
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
// Mapping from QWERTY to Dvorak
@CuriousLearner
CuriousLearner / asg-cleanup.sh
Created October 10, 2024 13:49
Delete ASG instances and launch configurations only for ASG using deprecated LCs
# Loop through all Auto Scaling Groups (ASGs) with Launch Configurations
for asg in $(aws autoscaling describe-auto-scaling-groups --region us-east-1 \
--query 'AutoScalingGroups[?LaunchConfigurationName!=null].AutoScalingGroupName' \
--output text); do
echo "Deleting Auto Scaling group: $asg"
# Set desired capacity to 0 to terminate instances
aws autoscaling update-auto-scaling-group --auto-scaling-group-name "$asg" \
--region us-east-1 --desired-capacity 0
@CuriousLearner
CuriousLearner / CONTRIBUTING.md
Created May 5, 2017 04:52
CONTRIBUTING guidelines for LinuxChix Projects

Guideline to contribute to the website

  • We accept PRs only on develop branch. No PRs shall be accepted on master branch.

  • We prefer small feature changes instead of bulk changes. That makes it easier for both the developer as well as reviewer. Smaller requests would have a faster turn-around time in the review-response cycle.

Workflow

Keybase proof

I hereby claim:

  • I am CuriousLearner on github.
  • I am curiouslearner (https://keybase.io/curiouslearner) on keybase.
  • I have a public key whose fingerprint is 6FAC F6BD 0443 B161 1C45 8462 828A 7A6A C418 1695

To claim this, I am signing this object:

@CuriousLearner
CuriousLearner / CSS-Styleguide.md
Last active April 6, 2016 16:56
CSS guidelines for mozpacers repositories

This page outlines the style guide for CSS stylesheets in all Mozpacers' projects.

CSSComb

In general, all Mozpacers' repositories has a .csscomb.json file with the configuration as follows:

{
    "remove-empty-rulesets": true,
 "always-semicolon": true,