Skip to content

Instantly share code, notes, and snippets.

@Skyb0rg
Skyb0rg / list-expiring-app-registrations.ps1
Created September 17, 2024 20:07 — forked from BelRarr/list-expiring-app-registrations.ps1
Get the list of expired or soon-to-expire azure app registrations
$daysToExpire = 30
$SoonToBeExpiredList = @()
$AlreadyExpiredList = @()
# Connect to AzureAD
Write-Output "Connecting to AzureAD..."
$connection = Get-AutomationConnection -Name AzureRunAsConnection
Connect-AzureAD -TenantId $connection.TenantID -ApplicationId $connection.ApplicationID -CertificateThumbprint $connection.CertificateThumbprint
@Skyb0rg
Skyb0rg / mongo_backup.rb
Created January 4, 2021 18:15 — forked from freegenie/mongo_backup.rb
Backup solution for mongodb which dumps gridfs items on filesystem
#!/usr/bin/env ruby
# This script is a backup tool for mongodb.
#
# The main purpose is to dump files from gridfs to filesystem,
# to take advantage of backup solutions based on tools like
# rsync.
# Developed against mongo 1.6.0
@Skyb0rg
Skyb0rg / main.js
Created December 10, 2020 12:20 — forked from ahmedengu/main.js
Using simple-parse-smtp-adapter with cloud code, Parse Server, https://github.com/lcortess/simple-parse-smtp-adapter
var sendSmtpMail = require('simple-parse-smtp-adapter')({
fromAddress: 'your@sender.address',
user: 'email@email.com',
password: 'AwesomePassword',
host: 'your.smtp.host',
isSSL: true,
port: 465,
emailField: 'email'
}).sendMail;