Skip to content

Instantly share code, notes, and snippets.

View varunchandak's full-sized avatar
🏠
Working from home

Varun Chandak varunchandak

🏠
Working from home
View GitHub Profile
@broo0ose
broo0ose / SessionManager.ps1
Last active March 17, 2023 11:45
Creates a tunnel using AWS session manager to an AWS instance so that you can connect with a local client over the tunnel. e.g. RDP from your PC.
# Creates a tunnel using AWS session manager to an AWS instance so that you can connect with a local client over the tunnel
# https://github.com/broo0ose 24/08/2021
# pre-reqs for this script
# - AWS CLI environment on powershell
# - the AWS Session Manager plugin https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html
# - I use SSO to connect to AWS so I needed to use 'aws configure sso' to the correct account and profile.
# - logged in using 'aws login sso' Or however you connect to AWS, eg IAM account.
# - the instance must be set up to use AWS Session Manager, and you must have the rights to run the client connection eg. remote admin group.
@okaufmann
okaufmann / README.md
Created December 18, 2019 18:27
Fix `warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)` error on Raspberry PI

Run the following:

echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment > /dev/null
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen > /dev/null
echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null
sudo locale-gen en_US.UTF-8
@shortjared
shortjared / list.txt
Last active April 25, 2024 16:53
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@leonardofed
leonardofed / README.md
Last active April 24, 2024 01:47
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@Chandler
Chandler / slack_history.py
Last active March 26, 2024 14:35
Download Slack Channel/PrivateChannel/DirectMessage History
print("UPDATE AUG 2023: this script is beyond old and broken")
print("You may find interesting and more up to date resources in the comments of the gist")
exit()
from slacker import Slacker
import json
import argparse
import os
# This script finds all channels, private channels and direct messages