Skip to content

Instantly share code, notes, and snippets.

View tigattack's full-sized avatar

tigattack tigattack

View GitHub Profile
"""Ansible vault exporter
- Finds all ansible-vault encrypted files and strings in a given path
- Extracts and decrypts each secret
- Writes plaintext secret to a file with the path to secret's the soruce
"""
import re
import os
import subprocess
# Directory to search recursively for vault strings/files
@tigattack
tigattack / flow-http.json
Last active March 4, 2024 23:47
Node-RED flows to send Home Assistant device tracker data to Owntracks via MQTT or HTTP - https://blog.tiga.tech/posts/selfhost-location-history
[
{
"id": "978f06ed.f5189",
"type": "trigger-state",
"z": "90f1f83a.381b38",
"name": "Example Device Tracker",
"server": "4bc0b8a8.1c9238",
"version": 4,
"inputs": 1,
"outputs": 2,
@tigattack
tigattack / gource.conf
Last active August 25, 2023 17:56
tig's Gource config
[display]
fullscreen=true
high-dpi=true
multi-sampling=true
output-framerate=60
output-ppm-stream=-
screen=2
[gource]
auto-skip-seconds=0.1
@tigattack
tigattack / README.md
Last active March 7, 2024 14:16
Autorestic backup reports for Discord

Autorestic Discord Backup Report

  1. Replace your webhook in the WEBHOOK_URL variable.
  2. Optionally set MENTION_ON_FAIL to True and set DISCORD_USER_ID if you wish to be @mentioned when a job fails.
  3. Add the script to the success & failure hooks in Autorestic, like so:
locations:
  my-location:
    from: /data
 to: my-backend
@tigattack
tigattack / Dockerfile
Last active July 19, 2023 09:14
Discord alerts for Raspberry Pi stock in a given region. Gets stock updates from rpilocator.com.
from python:alpine
env PYTHONUNBUFFERED=1
run pip install --no-cache-dir feedparser requests
copy rpilocator-discord.py .
cmd ["python", "/rpilocator-discord.py"]
@tigattack
tigattack / bitwarden_sm.py
Last active August 21, 2023 02:41
DEPRECATED Bitwarden Secrets Manager Ansible lookup plugin
See https://docs.ansible.com/ansible/latest/collections/community/general/bitwarden_secrets_manager_lookup.html
@tigattack
tigattack / DaysSince.ps1
Last active December 30, 2020 00:00
"Days since last incident" automated meme generator
#######################
## GitHub Configuration
#######################
$githubUser = 'tigattack'
$githubSecret = ''
$gistID = 'e02e7039a07404f9df48e28a4558467c'
$githubURI = "https://api.github.com/user"
$githubGistURI = "https://api.github.com/gists"
##############
@tigattack
tigattack / Get-PnPFolderContents.psm1
Last active April 24, 2021 14:32
List all files in a folder and it's subfolders in SharePoint Online
If (Get-Module -ListAvailable -Name 'SharePointPnPPowerShellOnline') {
Import-Module SharePointPnPPowerShellOnline
}
Else {
$PnPPInstallStatus = 'False'
}
Function Get-PnPFolderContents {
param (
$Credential = (Get-Credential),