Skip to content

Instantly share code, notes, and snippets.

@amgill
amgill / ec2_sg_rules.py
Last active August 11, 2025 22:34
Generate AWS Security Groups Rules Report of all the Security Groups, as Seen via AWS Web Console. Uses python 3 with boto3 to generate CSV.
#!/usr/local/bin/python3
######################################################################################################################
# Purpose: Generate rules report of all the security groups #
# Input Params: None [Make sure to set AWS CLI session by populating env. vars. with keys.] #
# Usage: ./ec2_sg_rules.py > account-date.csv [python ./ec2_sg_rules.py > gill-dev-sg-2018-04-11.csv] #
# Author: Abdul Gill #
# Doc. Ref: http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.Client.describe_security_groups#
######################################################################################################################
from __future__ import print_function
@tossmilestone
tossmilestone / Flake8.txt
Created March 30, 2018 06:55
Flake8 integrated with PyCharm
How to manually setup flake8 as PyCharm external tool
File / Settings / Tools / External Tools / Add
Name: Flake8
Program: $PyInterpreterDirectory$/python
Parameters: -m flake8 --max-complexity 10 --ignore E501 $FilePath$
Working directory: $ProjectFileDir$
Output Filters / Add
Name: Filter 1
@laughingman7743
laughingman7743 / .gitignore
Last active August 12, 2021 13:46
Terraform wrapper python
.idea
*.iml
*.tfstate
*.tfstate.backup
.terraform
*/*/*/__*.tf
!*/*/_template/__*.tf
Pipfile.lock
@mlafeldt
mlafeldt / README.md
Last active April 19, 2019 11:21
AWS Resources recommend by https://acloud.guru/
  • AWS Documentation
  • AWS Service FAQs
  • AWS Whitepapers
    • Read early and study later
      • Architecting for the Cloud: AWS Best Practices
      • AWS Security Best Practices
    • Read before exam
      • Overview of Amazon Web Services
      • Overview of Security Processes
  • AWS Storage Services Overview

《팀을 위한 Git》 독서 노트

책은 3개 부로 구성

  • 1부 워크플로우 작성하기(1장 - 4장)
  • 2부 워크플로우에 명령어 적용하기(5장 - 9장)
  • 3부 Git 호스팅(10장 - 12장)
  • 부록: 몇몇 Git 관련 도구 사용법
@brandond
brandond / function.py
Last active February 6, 2023 21:09
Python script to auto-tag AWS EBS Snapshots and Volumes using AMI and Instance tags
import copy
import logging
import os
import boto3
logging.basicConfig(level=os.environ.get('LOG_LEVEL', 'INFO'))
ec2 = boto3.client('ec2')
logger = logging.getLogger(__name__)
@redism
redism / kr_won_to_backquote.sh
Created April 26, 2017 16:20
macOS Sierra에서 원화(₩) 대신 백 쿼트(`) 입력하기
#!/bin/bash
if [ -f ~/Library/KeyBindings/DefaultkeyBinding.dict ]; then
echo "~/Library/KeyBindings/DefaultkeyBinding.dict already exists"
exit -1
fi
mkdir -p ~/Library/KeyBindings
cat << EOF > ~/Library/KeyBindings/DefaultkeyBinding.dict
{
"₩" = ("insertText:", "\`");