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
@meinside
meinside / smartctl_test.md
Last active June 9, 2024 16:12
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,

@drAlberT
drAlberT / CS_ufw.md
Last active March 13, 2024 17:56
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
@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)