Skip to content

Instantly share code, notes, and snippets.

View uzi18's full-sized avatar

Bartłomiej Zimoń uzi18

  • PLD/Linux Team
  • Poland
View GitHub Profile
@uzi18
uzi18 / bash
Created February 3, 2021 07:57
nettemp remove data before 365 days
#! /bin/bash
db=$(ls /var/www/nettemp/db)
for i in $db
do
sqlite3 /var/www/nettemp/db/$i "DELETE FROM def WHERE time <= date('now','-365 day'); VACUUM;"
done
@uzi18
uzi18 / konf_TRK.py
Last active August 29, 2015 14:10
parametry dla TRK
#===============================================================================
# Parametry wspolne
#
# Tutaj wpisz parametry globalne pracy
#===============================================================================
# automatycznie przelaczanie w tryb manual sterownika i w tryb auto po zatrzymaniu skryptu
autotrybmanual = True
#======== parametry CO ===============