Are you ready for more action?
chmod +x armagedocker
sudo mv armagedocker /usr/local/bin/
armagedocker.sh
Are you ready for more action?
chmod +x armagedocker
sudo mv armagedocker /usr/local/bin/
armagedocker.sh
# Enable debug? | |
#sudo nano /etc/nvidia-container-runtime/config.toml | |
# Install Nvidia container toolkit | |
sudo apt-get update | |
sudo apt-get install -y nvidia-container-toolkit | |
sudo apt install --reinstall nvidia-compute-utils-560 # https://forums.developer.nvidia.com/t/nvidia-smi-really-slow-to-execute/165429/3 | |
# Check drivers & Cuda | |
nvidia-smi |
# Reference: https://unix.stackexchange.com/questions/693846/razer-pro-type-ultra-keyboard-how-to-use-function-keys-without-holding-down-fn | |
# Save the following lines at /etc/udev/hwdb.d/50-razer-pro-type-ultra.hwdb | |
evdev:input:b*v1532p027B* | |
KEYBOARD_KEY_c00e2=f1 | |
KEYBOARD_KEY_c00ea=f2 | |
KEYBOARD_KEY_c00e9=f3 | |
KEYBOARD_KEY_c018a=f4 | |
KEYBOARD_KEY_c0227=f5 |
# https://snapcraft.io/install/snap-store/ubuntu --------------------------------- | |
sudo apt update | |
sudo apt install snapd | |
sudo snap install snap-store | |
# https://www.baeldung.com/linux/limit-user-computer-time ------------------------- | |
sudo add-apt-repository ppa:mjasnik/ppa | |
sudo apt update | |
sudo apt install timekpr-next |
#!/usr/bin/env python3 | |
import boto3 | |
import datetime | |
from pathlib import Path | |
from typing import Dict, List, Tuple | |
import humanize | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger(__name__) |
#!/bin/bash | |
# Nombre del script: cleanup.sh | |
# Descripción: Elimina recursivamente directorios .ipynb_checkpoints y node_modules | |
# Colores para mensajes | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
NC='\033[0m' # No Color |
# A vantablack friday: How to be prepared to stop DDoS Attacks after Halloween | |
# https://blog.evereven.tech | |
# Create a cloudwatch alarm | |
aws cloudwatch put-metric-alarm \ | |
--alarm-name High-CPU-Utilization \ | |
--metric-name CPUUtilization \ | |
--namespace AWS/EC2 \ | |
--period 300 \ | |
--evaluation-periods 1 \ |
# A vantablack friday: How to be prepared to stop DDoS Attacks after Halloween | |
# https://blog.evereven.tech | |
# Create a WebACL Group Rule (replace [SUSPICIOUS_AGENT_IN_BASE64]) | |
aws wafv2 create-rule-group \ | |
--name "pattern-matching-rules" \ | |
--scope REGIONAL \ | |
--capacity 1000 \ | |
--visibility-config \ | |
MetricName=DDOSRuleMetric,SampledRequestsEnabled=true,CloudWatchMetricsEnabled=true \ |
# A vantablack friday: How to be prepared to stop DDoS Attacks after Halloween | |
# https://blog.evereven.tech | |
# Create a local json file with the configuration | |
cat > dashboard.json << 'EOL' | |
{ | |
"widgets": [ | |
{ | |
"type": "metric", | |
"properties": { |