Skip to content

Instantly share code, notes, and snippets.

@seuf
seuf / pg_dump_zabbix_no_history.sh
Created July 17, 2017 11:42
pg_dump_zabbix_no_history.sh
#!/bin/sh
today=$(date "+%Y-%m-%d")
last_week=$(date -d "1 weeks ago" "+%Y-%m-%d")
data_dir="/tmp"
data_file="zabbix-$today.sql"
lastweek_file="zabbix-$last_week.sql"
echo "Dumping zabbix databse into $data_dir/$data_file"
pg_dump -h localhost -d zabbix -f $data_dir/$data_file --exclude-table-data=history* --exclude-table-data=trends* --exclude-table-data=events --exclude-table-data=alerts --exclude-table-data=sessions --exclude-table-data=auditlog --exclude-table-data=acknowledges
@bjoern-r
bjoern-r / Huawei_E3372_openwrt.md
Last active May 29, 2025 16:51
How to use a Huawei E3372 on OpenWRT

HOWTO use a Huawei E3372 on OpenWRT

This modem is also sold as a MegaFon M150-2 USB dongle

Needed Software

Install the needed packages via opkg tool

opkg update
==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into
@obfusk
obfusk / break.py
Last active December 7, 2024 13:12
python "breakpoint" (more or less equivalent to ruby's binding.pry); for a proper debugger, use https://docs.python.org/3/library/pdb.html
import code; code.interact(local=dict(globals(), **locals()))

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: