Skip to content

Instantly share code, notes, and snippets.

View nos486's full-sized avatar
💭
🤓

Sina nos486

💭
🤓
  • Iran
View GitHub Profile
@nos486
nos486 / harden_ubuntu.sh
Last active May 13, 2026 06:16
Harden Ubuntu
#!/bin/bash
# ==========================================
# 1. Root Privilege Check
# ==========================================
if [ "$EUID" -ne 0 ]; then
echo "[!] Error: Please run this script as root (use: sudo ./harden_ubuntu.sh)."
exit 1
fi
@nos486
nos486 / clicker.py
Last active January 22, 2022 15:29
Simple Python Skat Clicker
#! /usr/bin/python
# first create empty "db.txt" file
import pyautogui
import keyboard
import time
isActive = False
row = 0
key = 0
import serial
import serial.tools.list_ports
def getSerialPorts():
ports = list(serial.tools.list_ports.comports())
for p in ports:
print(p)