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
README - Secure Encrypted Backup Storage | |
This USB contains an encrypted backup of your 2FA recovery codes. The backup is stored as a GPG-encrypted tarball for maximum security and portability. Follow the instructions below to encrypt, decrypt, and format additional USB drives. | |
--- | |
ENCRYPTING BACKUP DIRECTORY (macOS/Linux) | |
To encrypt a directory (my_backup_dir) and store it as backup.tar.gpg on this USB: | |
#Contents of encrypt.sh below |
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
function generateTOTPURL(secret, label,issuer) { | |
return `otpauth://totp/${label}?secret=${secret}&issuer=${issuer}`; | |
} | |
// Function to encode a string to Base32 | |
function base32Encode(str) { | |
const base32Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; | |
let binString = ''; | |
for (let i = 0; i < str.length; i++) { | |
const charCode = str.charCodeAt(i); |
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
git submodule add [email protected]:iaindooley/benko-board-trellinator.git apps/benko-board-trellinator | |
git submodule add [email protected]:iaindooley/trellinator-libs.git apps/trellinator-libs | |
git submodule add [email protected]:iaindooley/trellinator.git apps/trellinator | |
git submodule init | |
git submodule update |
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
var notif = new Notification(notification); | |
var moved = notif.movedCard(); | |
if(!notif.member().notTrellinator())//ignore moves made by the bot | |
throw new InvalidActionException("Don't loop!"); | |
moved.cardsLinkedInAttachments().each(function(card) | |
{ | |
card.moveToList(moved.currentList(),"bottom"); | |
}); |
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
var notif = new Notification(notification); | |
var added = notif.addedChecklistItem(); | |
if(!notif.member().notTrellinator())//don't react if the bot added the item | |
throw new InvalidActionException("Don't loop!"); | |
var added_to = added.checklist(); | |
var source_card = added_to.card(); | |
card.board().cards().each(function(card) |
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
var members = [ | |
'username1', | |
'username2', | |
'username3' | |
]; | |
var target = new Trellinator().team("My New Workspace");//find or create | |
for(var i = 0;i < members.length;i++) | |
{ |
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
var added = new Notification(notification).addedLabel("Copy With State"); | |
var copy = added.card().copyToList( | |
added.card().board().findOrCreateList("Copied Cards"), | |
"top" | |
) | |
.markDueDateIncomplete(); | |
added.card().checklists().each(function(cl) | |
{ | |
cl.items().each(function(item) |
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
var moved = new Notification(notification).movedCard("Create PDF"); | |
var fields = {}; | |
moved.board().customFields().each(function(field) | |
{ | |
fields[field.name()] = moved.customFieldValue(field.name()); | |
}); | |
createGoogleDocsPdfFromFieldValues(fields);//this would be a library function |
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
var attached = new Notification(notification).attachedLink(); | |
attached.card().setCustomFieldValue("Box Link",attached.link()); | |
attached.remove(); |
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
var added = new Notification(notification).addedChecklistItem(); | |
var split = added.name().split("|"); | |
if(split.length == 3) | |
{ | |
var text = split[0].trim(); | |
var date = new Date(split[1].trim()); | |
var member = new Member({username: split[2].trim()}); | |
added |
NewerOlder