Skip to content

Instantly share code, notes, and snippets.

View papagunit's full-sized avatar
👨‍🚀
Don't mind me, just collecting stars...

Devon Guerrero papagunit

👨‍🚀
Don't mind me, just collecting stars...
View GitHub Profile
@PezzerDev
PezzerDev / Uuid.cls
Created July 5, 2019 19:04
[UUID Generator in Apex] #salesforce #apex
/**
* A UUID generator that can construct unique IDs in a variety of formats.
*
* A UUID is generated immediately upon instantiation of this class. The UUID can be retrieved in its normal form
* (e.g. f111b8c5-ca2f-4a1a-8d0d-a8dd5f37c05f) or as a shortened web-safe form (e.g. jp64hwPZ-Lh7vY8INQA7ImQPbQE), which
* is constructed by converting the UUID to Base64 and replacing '/' and '+' with '-' and '_', respectively.
*/
public class Uuid {
private static final String HEX_PREFIX = '0x';
@PezzerDev
PezzerDev / TestUtil.cls
Last active December 20, 2023 19:29
[Salesforce ID generator] Generates 15-character Salesforce IDs for testing #salesforce #apex
/**
* A collection of static utility methods for unit testing.
*/
@IsTest
public class TestUtil {
// ID generator configuration
private static final Integer ID_RESERVED_CHARACTERS = 7;
private static final Integer ID_INCREMENTER_PREFIX_LENGTH = 1;
private static final String BASE62_ALPHABET = '0123456789abcdefghijklmnopqrstuvwqyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
@Eskimon
Eskimon / countries.json
Created July 11, 2019 09:49
Countries ISO 3166 codes, names, slugs json list
[
{
"slug": "afghanistan",
"name": "Afghanistan",
"alpha2": "AF",
"alpha3": "AFG",
"numerical": "004",
"iso_3166_2": "ISO 3166-2:AF"
},
{
@dmitrybndar
dmitrybndar / hubspotValidate.js
Last active August 20, 2021 22:06
Hubspot Form validation function
hbspt.forms.create({
portalId: 'PORTAL_ID',
formId: 'FORM_ID',
onFormReady: function($form) {
var $formRequiredElements = $form.find('[required]');
var formRequiredFields = [];
$formRequiredElements.each(function() {
var fieldName = $(this).attr('name');
@nikhgupta
nikhgupta / gist:3b6e9de8b338b41bdf70b36dca5aeb73
Last active November 28, 2023 01:43
List of Disposable email domains
# `curl https://raw.githubusercontent.com/ivolo/disposable-email-domains/master/index.json -s | jq -r '.[]' | gist`
0-180.com
0-30-24.com
0-420.com
0-900.com
0-aa.com
0-mail.com
0-z.xyz
00.pe
000476.com
let bookmarkList = Array.from(document.querySelectorAll('.widget>.vbox'))
.map(e => e.shadowRoot)
.map(e => e && e.querySelector('.device-page-list'))
.find(e => e);
let bookmarks = Array.from(bookmarkList.querySelectorAll('.vbox'))
.map(e => `<a href="${e.querySelector('x-link').innerHTML}">${e.querySelector('.device-page-title').innerHTML}</a>`);
copy('<html><body>' + bookmarks.join('\n') + '</body></html>');
@colindix
colindix / tld_list.txt
Created April 2, 2020 04:56
Spamhaus TLD list 20200401
abb
abbott
abc
abogado
abudhabi
ac
academy
accountant
accountants
aco
@theodorosploumis
theodorosploumis / Spam_list.txt
Created April 21, 2020 15:26
Spam tld list 2020
*.abbott
*.abogado
*.abudhabi
*.ac
*.academy
*.accountant
*.accountants
*.aco
*.actor
*.ad
@dhh
dhh / tracker_blocking.rb
Last active June 30, 2024 14:35
Current list of spy pixels named'n'shamed in HEY, as of April 23, 2020
module Entry::TrackerBlocking
extend ActiveSupport::Concern
included do
has_many :blocked_trackers
end
email_service_blockers = {
"ActiveCampaign" => /lt\.php(.*)?l\=open/,
"AWeber" => "openrate.aweber.com",
@pvbhanuteja
pvbhanuteja / email_domains
Created July 26, 2020 09:53
top 100 email domains
gmail.com
yahoo.com
hotmail.com
aol.com
hotmail.co.uk
hotmail.fr
msn.com
yahoo.fr
wanadoo.fr
orange.fr