Skip to content

Instantly share code, notes, and snippets.

View ashishjullia's full-sized avatar
💻
Exploring

Ashish Jullia ashishjullia

💻
Exploring
View GitHub Profile
@ashishjullia
ashishjullia / aws-mfa-access.sh
Last active June 6, 2024 06:39 — forked from geekgunda/aws-mfa-access.sh
aws-cli MFA access via assume role
#!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: $(basename "$0") <MFA-TOKEN>"
exit 1
fi
session_duration=129600 # 36 hours
mfa_device_code=$(aws iam list-mfa-devices | jq -r .MFADevices[0].SerialNumber)
if [ -z "$mfa_device_code" ]; then
@rishabhgargg
rishabhgargg / gist:dc90efc36e37a687915321289433aa1e
Last active November 7, 2023 18:12
Remove all comments from VS code yaml

^\s*#.*$

@rishabhgargg
rishabhgargg / gist:a88dac2788cb75526a7a5fd70ec04a14
Created October 28, 2023 09:21
List containers with containerd CRI
ctr ns ls ------ To list namespaces
ctr -n k8s.io containers list
@mraaroncruz
mraaroncruz / steps.md
Last active July 9, 2024 03:13
Get the Telegram channel ID

To get the channel id

  1. Create your bot with botfather
  2. Make you bot an admin of your channel

Simplest way (via @anhtuank7c)

Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path

https://web.telegram.org/k/#-9999999999999