Skip to content

Instantly share code, notes, and snippets.

@vielhuber
vielhuber / script.sh
Last active April 28, 2024 06:38
PostgreSQL: Backup and restore export import pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux
@nick123pig
nick123pig / readme.md
Last active April 10, 2019 15:13
Dashing Table

dashing-table

Allows you to use tables with the dashing framework.

Preview

Basic Table Preview

@visibilityspots
visibilityspots / bacula-dashing-widget.md
Last active February 9, 2016 07:36
A dashing widget to show the state of your bacula backups

Bacula widget

We have a dashing dashboard to give an overview of our infrastructure. Icinga, jenkins, foreman, web-services, traffic times.. Almost everything is been captured.. Only for bacula I could not find an existing one.

So I decided to write one myself. The first idea was to scrape the bacula-web overview site and use that output in a dashing screen. Mainly because a missing API for bacula or bacula-web. Nevertheless scraping a website isn't the best idea if that layout changes your quite fucked up..

screenshot

After googling around I came across an exampling of using mysql with ruby. So I decided to use this approach to have an overview of the bacula state since we configured bacula using a mysql database.

@gregology
gregology / README.md
Last active September 5, 2019 14:05
Load averages of *nix server running dashing.

Setup

Put the loadavg1min.rb to jobs/loadavg1min.rb.

Add the code from loadavg1min.erb to the desired dashboard.

Preview