Skip to content

Instantly share code, notes, and snippets.

View horodchukanton's full-sized avatar

Anton Horodchuk horodchukanton

  • Python microservice backends for Shipping@Glopal
  • Odesa
View GitHub Profile
@gmartinerro
gmartinerro / update-aws-hosts.py
Last active October 25, 2022 13:21
Python script to update /etc/hosts and iTerm dynamic profiles with the list of aws instances
#!/usr/local/bin/python
# coding: UTF-8
import boto3
import json
# Main function that runs the whole thing
def updateAll():
instances,groups = getEC2Instances()
updateHosts(instances,groups)
@drAlberT
drAlberT / CS_ufw.md
Last active August 29, 2024 09:18
UFW Cheatsheet

UFW cheat sheet

Usage

ufw [--dry-run] enable|disable|reload
ufw [--dry-run] default allow|deny|reject [incoming|outgoing]
ufw [--dry-run] logging on|off|LEVEL
    toggle logging. Logged packets use the LOG_KERN syslog facility. Systems configured for rsyslog
    support may also log to /var/log/ufw.log. Specifying a LEVEL turns logging on for the specified LEVEL.
@meinside
meinside / smartctl_test.md
Last active August 31, 2024 14:23
For checking health of usb hdd on raspberry pi with smartctl.

for testing external hdd with smartctl,

install smartmontools

$ sudo apt-get install smartmontools

start test,