Skip to content

Instantly share code, notes, and snippets.

View swarupdonepudi's full-sized avatar
🎯
Focusing

Swarup Donepudi swarupdonepudi

🎯
Focusing
View GitHub Profile
@swarupdonepudi
swarupdonepudi / delete-docker-images.md
Last active June 17, 2025 22:41
How to clean up docker images on mac? #51
docker system prune --all

Running the above command displayed the following on my mac

Total reclaimed space: 124.4GB
@swarupdonepudi
swarupdonepudi / gist:51e8148fba3f2f3d7addd7f352f6e9a5
Last active June 2, 2025 11:01
check ssl certificate using openssl cli
Below is the command I used to check the status of an SSL Certificate for `id.planton.cloud` domain from command line
```sh
echo | openssl s_client -connect id.planton.cloud:443 -servername id.planton.cloud | head
```
```sh
Connecting to 104.19.168.24
depth=2 C=US, O=Internet Security Research Group, CN=ISRG Root X1
docker ps -q | xargs -r docker stop
docker builder prune --all --force
docker system prune --all --volumes --force
@swarupdonepudi
swarupdonepudi / template.yaml
Last active May 12, 2025 13:13
aws-ecs infra-chart template
---
apiVersion: aws.project-planton.org/v1
kind: AwsEcrRepo
metadata:
env: dev
name: ecr-repo
org: acmecorp
spec:
encryptionType: AES256
imageImmutable: true
@swarupdonepudi
swarupdonepudi / gist:b19ffc33fc66a332b41f30b32f6340a3
Created May 8, 2025 23:10
Turn on hidden files permanently on Mac OS.
```
# make dot-files visible in all Open/Save panels system-wide
defaults write -g AppleShowAllFiles -bool true
# quit and reopen any app whose dialogs should respect the new setting
```
@swarupdonepudi
swarupdonepudi / bash-new.sh
Created February 13, 2020 04:00
New bash programs
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Set magic variables for current file & dir
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "info : __dir is ${__dir}"
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
echo "info : __file is ${__file}"
@swarupdonepudi
swarupdonepudi / varnish-commands.md
Last active June 20, 2019 21:16
varnish-commands

list vcls

varnishadm -n /var/run/varnish-home vcl.list

Show a full vcl

varnishadm -n /var/run/varnish-home vcl.show <vcl-id>

Compile a vcl on varnish - make sure to provide absolute path

@swarupdonepudi
swarupdonepudi / keybase.sh
Created May 9, 2019 00:36
Terraform output keybase key
terraform output -json | jq --raw-output '."aws-iam_creds-iam_admin".value.encrypted_secret'| base64 -D | keybase pgp decrypt
@swarupdonepudi
swarupdonepudi / pri-to-pub.sh
Created May 8, 2019 23:08
Command to create a public key from private key
ssh-keygen -yf private-key.pem > public-key.pub

Keybase proof

I hereby claim:

  • I am swarupdonepudi on github.
  • I am swarupdonepudi (https://keybase.io/swarupdonepudi) on keybase.
  • I have a public key whose fingerprint is 5F27 22C1 EFD3 E109 3DDB 94EC 2713 5434 9AF7 F01D

To claim this, I am signing this object: