View Create-MarkerFilesConfirm.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# .SYNOPSIS | |
Create a marker file in each empty directory under a given root directory | |
.DESCRIPTION | |
This script recursively finds empty directories under the given root | |
directory and creates a marker file with the given filename in each one. | |
.NOTES | |
Author : Pat Patterson | |
#> | |
param ( |
View Create-MarkerFiles.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# .SYNOPSIS | |
Create a marker file in each empty directory under a given root directory | |
.DESCRIPTION | |
This script recursively finds empty directories under the given root | |
directory and creates a marker file with the given filename in each one. | |
.NOTES | |
Author : Pat Patterson | |
#> | |
[CmdletBinding(SupportsShouldProcess)] |
View drivestats2parquet.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import os | |
import re | |
from datetime import date | |
from io import BytesIO | |
from zipfile import ZipFile | |
import pyarrow as pa | |
import pyarrow.csv as csv |
View sync-deletes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import boto3 | |
from botocore.config import Config | |
from dotenv import load_dotenv | |
# Use -d command line option for a dry run - i.e. don't actually delete files | |
dry_run = len(sys.argv) == 2 and sys.argv[1] == '-d' |
View b2_multipart.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// PHP sample code to show multipart file upload using the B2 Native API | |
// User supplies optional -v for verbose output from curl, then bucket name | |
// and path to local file | |
$rest_index = null; | |
$opts = getopt("v::", [], $rest_index); | |
$args = array_slice($argv, $rest_index); |
View Purge All Deleted Objects.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Purge All Deleted Objects | |
// @description Erase all deleted custom objects from the Salesforce org | |
// @include https://*.salesforce.com/p/setup/custent/DeletedEntitiesList?* | |
// ==/UserScript== | |
// UserScripts: https://github.com/quoid/userscripts | |
// Sometimes, when you're testing Salesforce metadata operations, you end up with a | |
// lot of deleted custom objects in your org. There's no API to erase a deleted object, |
View CitrixAuth.psm1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
MIT License | |
Copyright 2021, Citrix Systems, Inc. | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do |
View S3 to Azure Synapse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ciConfig" : null, | |
"currentExternalCIStatus" : null, | |
"currentRules" : { | |
"commitId" : "55b9a63d-8712-4a8d-96bf-511618889159:dpmfrancois", | |
"definitionRemoveMessage" : null, | |
"definitionRemoveTime" : 0, | |
"definitionRemover" : null, | |
"id" : "d53e9e53-eb4c-4204-9227-fd40d3a1b440:dpmfrancois", | |
"message" : "Committed with pipeline", |
View personal_box.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pipelineConfig" : { | |
"schemaVersion" : 6, | |
"version" : 12, | |
"pipelineId" : "personalbox4f3590a2-1b4e-40ac-beae-600e976ef496", | |
"title" : "personal_box", | |
"description" : "", | |
"uuid" : "043a4e85-7989-4761-90de-e68401257e9e", | |
"configuration" : [ { | |
"name" : "executionMode", |
View Metrics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pipelineConfig" : { | |
"schemaVersion" : 6, | |
"version" : 12, | |
"pipelineId" : "Metrics635c20ed-872c-48d7-87fb-7043ab937ae6", | |
"title" : "Metrics", | |
"description" : "", | |
"uuid" : "08bce59b-151b-47d4-97dc-5d4f58da9672", | |
"configuration" : [ { | |
"name" : "executionMode", |
NewerOlder