Skip to content

Instantly share code, notes, and snippets.

View ShubhamRasal's full-sized avatar
💻
Cooking software

Shubham Rasal ShubhamRasal

💻
Cooking software
View GitHub Profile
@ShubhamRasal
ShubhamRasal / 2026-03-03-gcp-ssh-config-iap-gist.md
Created March 3, 2026 10:18
SSH into GCP VMs via IAP using standard SSH config — ProxyCommand setup and the username trap

SSH into GCP VMs via IAP Using Standard SSH Config

If your GCP VMs don't have external IPs (or you use IAP for security), gcloud compute ssh --tunnel-through-iap works — but it's verbose. You can't use it with scp, rsync, Ansible, or VSCode Remote-SSH easily.

This guide shows how to set up ~/.ssh/config so you can just run:

ssh my-vm
@ShubhamRasal
ShubhamRasal / deploy.yaml
Created September 27, 2025 19:19
demo deployment and service
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-deployment
spec:
replicas: 2
selector:
matchLabels:
app: hello
template:
@ShubhamRasal
ShubhamRasal / report.py
Created June 9, 2023 11:12 — forked from Huntinex/report.py
Automatic bug bounty report generator
import poe, sys
client = poe.Client("<POE_API_KEY_HERE>")
title=sys.argv[1]
path=sys.argv[2]
more=""
if len(sys.argv) > 3:
more="\" and here is more information: "+sys.argv[3]
message="""generate a bug bounty report for me (hackerone.com), the title of the bug is """+title+""" and the vulnerability path is \""""+path+more+"""
@ShubhamRasal
ShubhamRasal / report.py
Created June 9, 2023 11:12 — forked from Huntinex/report.py
Automatic bug bounty report generator
import poe, sys
client = poe.Client("<POE_API_KEY_HERE>")
title=sys.argv[1]
path=sys.argv[2]
more=""
if len(sys.argv) > 3:
more="\" and here is more information: "+sys.argv[3]
message="""generate a bug bounty report for me (hackerone.com), the title of the bug is """+title+""" and the vulnerability path is \""""+path+more+"""
- name: email
type: regex
regex:
- '([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)'
- '([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)'
- name: phone
type: regex
regex:
- '\d{3}-\d{8}|\d{4}-\d{7}'
@ShubhamRasal
ShubhamRasal / getopts.sh
Created March 2, 2023 08:09 — forked from rosterloh/getopts.sh
An example of how to use bash getopts
#!/bin/bash
######################################################################
#This is an example of using getopts in Bash. It also contains some
#other bits of code I find useful.
#Author: Linerd
#Website: http://tuxtweaks.com/
#Copyright 2014
#License: Creative Commons Attribution-ShareAlike 4.0
#http://creativecommons.org/licenses/by-sa/4.0/legalcode
@ShubhamRasal
ShubhamRasal / .env
Created February 16, 2023 04:38
Deploy metabase with Caddy using Docker compose
# =====================================
# Database environment
#
DB_TYPE=mysql
DB_HOST=
DB_NAME=
DB_USER=
DB_PASSWORD=
@ShubhamRasal
ShubhamRasal / main.go
Created January 19, 2023 17:41
nuclie-as-sdk
package main
import (
"context"
"fmt"
"log"
"os"
"path"
"time"
@ShubhamRasal
ShubhamRasal / Install-docker-ansible.yml
Last active January 18, 2021 09:35
Install docker using ansible
- hosts: myserver
become: true
tasks:
- debug:
var: ansible_os_family
- name: "create yum repository for docker"
yum_repository:
name: docker-repo
description: "repo for docker"