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 October 17, 2024 17:32
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 November 1, 2024 23:05
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.
@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)