This file contains hidden or 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
#!/bin/bash | |
write_xml () { | |
local type_name="$1" | |
shift | |
local type_arry=("$@") | |
XML="${XML}\n\t<types>\n\t\t<name>${type_name}</name>" | |
for FILENAME in "${type_arry[@]}"; do | |
XML="${XML}\n\t\t<members>${FILENAME}</members>" | |
done |
This file contains hidden or 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
/** | |
* Developed by Doug Ayers | |
* douglascayers.com | |
* | |
* Designed to be used by SendEmailInvocable class when sending | |
* several emails but need to stay within the apex governor limits | |
* of how many emails can be sent per transaction. Call this batchable | |
* with all the emails to send and set the batch size to max per transaction. | |
* https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm | |
* |
This file contains hidden or 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
const admin = require('firebase-admin'); | |
admin.initializeApp(); | |
function deleteAllUsers(nextPageToken) { | |
admin.auth().listUsers(10, nextPageToken) | |
.then(function(listUsersResult) { | |
listUsersResult.users.forEach(function(userRecord) { | |
admin.auth().deleteUser(userRecord.uid).then(() => { | |
console.log(`deleted ${userRecord.uid}`); | |
}); |
This file contains hidden or 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
public class RSA { | |
private Key key; | |
// Hex digits | |
private static final String DIGITS = '0123456789abcdef'; | |
private static final Decimal HEX_BASE = 16; | |
public abstract class Key { | |
private String modulus; | |
public Key(String modulus) { |