Skip to content

Instantly share code, notes, and snippets.

View sa-jbrooks's full-sized avatar

Jack Brooks sa-jbrooks

View GitHub Profile
@sa-jbrooks
sa-jbrooks / security-group-cleanup.py
Last active May 17, 2024 12:08 — forked from dritten/security-group-cleanup.py
Security Group Cleanup using boto3
#!/usr/bin/env python
import boto3
import argparse
def lookup_by_id(sgid):
sg = ec2.get_all_security_groups(group_ids=sgid)
return sg[0].name
@sa-jbrooks
sa-jbrooks / download-script.sh
Created October 15, 2018 16:12 — forked from amit-chahar/download-script.sh
Scirpt to download files from Google drive using curl (Detailed explanation can be read here: https://stackoverflow.com/a/49444877/4043524)
#!/bin/bash
fileid="FILEIDENTIFIER"
filename="FILENAME"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
@sa-jbrooks
sa-jbrooks / gist:b146f5dde3b09f65bd771337679f8e49
Created August 9, 2019 15:40 — forked from spudbean/gist:1558257
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons