Skip to content

Instantly share code, notes, and snippets.

View Arvindtoorpudba's full-sized avatar

Arvindtoorpudba

View GitHub Profile
@Arvindtoorpudba
Arvindtoorpudba / sns-to-slack.py
Created November 19, 2021 18:33 — forked from hayd/sns-to-slack.py
sns to slack aws lambda python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Follow these steps to configure the webhook in Slack:
1. Navigate to https://<your-team-domain>.slack.com/services/new
2. Search for and select "Incoming WebHooks".
@Arvindtoorpudba
Arvindtoorpudba / postgres-backup.sh
Created August 18, 2021 19:14 — forked from 4410287/postgres-backup.sh
Shell script for daily postgres database backup with basic archiving.
#!/bin/bash
# Written 2018-11-15 by 4410287
# This script will create a backup file of a postgres database and compress it. It is capable of access a local or remote server to pull the backup. After creating a new backup, it will delete backups that are older than 15 days, with the exception of backups created the first of every month. It is recommended to create a seperate database user specifically for backup purposes, and to set the permissions of this script to prevent access to the login details. Backup scripts for different databases should be run in seperate folders or they will overwrite each other.
HOSTNAME=
USERNAME=
PASSWORD=
DATABASE=