Skip to content

Instantly share code, notes, and snippets.

View tigattack's full-sized avatar

tigattack tigattack

View GitHub Profile
@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 / 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),