Skip to content

Instantly share code, notes, and snippets.

@principis
principis / fix-nltk.py
Last active March 10, 2024 16:12
paperless-ngx update script
#!/usr/bin/env python3
import nltk
nltk.download('stopwords')
nltk.download('punkt')
#!/bin/bash
# Only print for interactive shells.
if [[ $- != *il* ]]; then
return 0
fi
function get_zpool_status {
pool_name="$1"
res=$(zpool list | grep "$pool_name" | awk '{print $3 " / " $2 "\t " $10}')
#!/bin/bash
set -e
FAILED=$(systemctl list-units --state=failed --no-legend --plain)
sensor="coretemp-isa-0000"
USER=$(whoami)
HOSTNAME=$(uname -n)
TEMPERATURE=$(sensors $sensor | awk 'NR==3{print $4}')