Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am anderson4u2 on github.
  • I am andersonsilva (https://keybase.io/andersonsilva) on keybase.
  • I have a public key whose fingerprint is 3081 A63A E1AF 2FFF 26E7 25C5 9887 3A4B DC82 31F1

To claim this, I am signing this object:

@anderson4u2
anderson4u2 / another_example.py
Created November 18, 2018 22:33 — forked from codersquid/another_example.py
a learning example for using a pushgateway with prometheus
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@anderson4u2
anderson4u2 / autopgsqlbackup
Created November 18, 2018 21:49 — forked from matthewlehner/autopgsqlbackup
Auto PostgreSQL backup script.
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9