Skip to content

Instantly share code, notes, and snippets.

@OutOfThisPlanet
OutOfThisPlanet / BSCBridgeTotal.ps1
Last active December 27, 2023 17:03
Alert when Deeper Network BSC Bridge resets
View BSCBridgeTotal.ps1
Function BSCBridgeTotal
{
param()
(Invoke-WebRequest -UseBasicParsing -Uri "https://api-device.deeper.network/bridge/bsc/todayTotal" |
Select-Object -ExpandProperty Content | ConvertFrom-Json).data
}
$voice = New-Object -ComObject Sapi.spvoice
$voice.rate = 0
View indicator_pvsra.txt
{
"type": "indicator",
"name": "indicator:PVSRA",
"data": {
"options": {
"priceScaleId": "pvsra",
"blueVectorColor": "rgba(42,32,223,0.47)",
"greenVectorColor": "rgba(38,218,44,0.5)",
"redVectorColor": "rgba(255,0,0,0.5)",
"regularCandleDownColor": "rgba(60,60,60,0.5)",
@OutOfThisPlanet
OutOfThisPlanet / Get-FileInformation.ps1
Last active November 21, 2021 15:45
Get the Creation Date information from office files, Sent / Received Date from outlook emails. UK Date format.
View Get-FileInformation.ps1
Function Get-FileInformation # This function will gather date information and other properties about a file
{
param([string]$LiteralFilePath) # Target is the full path to a file
$Target = $LiteralFilePath
$Directory = ($Target -replace '[^\\]*$')
#region Filetypes
#region Outlook
if (
$Target -like "*.msg" # Handle Outlook Files (Has to open OutLook to get sent and received dates)
)