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 (c) 2023 Backblaze, 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 so, subject to the following conditions: |
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
# Backblaze wants developers and organization to copy and re-use our | |
# code examples, so we make the samples available by several different | |
# licenses. One option is the MIT license (below). Other options are | |
# available here: | |
# | |
# https://www.backblaze.com/using_b2_code.html | |
# | |
# | |
# The MIT License (MIT) | |
# |
This file has been truncated, but you can view the full file.
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
2023-06-07 12:42:03,490 [main] DEBUG ch.cyberduck.binding.application.NSApplication - NSConcreteNotification 0x60000390e320 {name = NSApplicationWillBecomeActiveNotification; object = <NSApplication: 0x137e3cff0>} | |
2023-06-07 12:42:03,491 [main] DEBUG ch.cyberduck.binding.WindowController - Become main for window <NSWindow: 0x147e72c50> | |
2023-06-07 12:42:03,491 [main] DEBUG ch.cyberduck.binding.WindowController - Become key for window <NSWindow: 0x147e72c50> | |
2023-06-07 12:42:03,493 [main] DEBUG ch.cyberduck.binding.application.NSApplication - NSConcreteNotification 0x60000394d8e0 {name = NSApplicationDidBecomeActiveNotification; object = <NSApplication: 0x137e3cff0>} | |
2023-06-07 12:42:03,504 [main] DEBUG ch.cyberduck.core.resources.NSImageIconCache - No cached image for eject.pdf | |
2023-06-07 12:42:03,504 [main] DEBUG ch.cyberduck.core.resources.NSImageIconCache - Return default size for eject.pdf | |
2023-06-07 12:42:03,656 [main] DEBUG ch.cyberduck.core.resources.NSImageIconCache - No cached image for eject.pdf |
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 ( |
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)] |
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 |
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' |
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); |
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, |
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 |
NewerOlder