Skip to content

Instantly share code, notes, and snippets.

View sonlexqt's full-sized avatar

Son Le sonlexqt

View GitHub Profile
@sonlexqt
sonlexqt / gist:9f7f82c689f8245119280eb0726dde70
Created June 11, 2020 09:27
Lumin - add GTM script to DEV environment
Paste this code as high in the <head> of the page as possible:
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MDDLF72');</script>
<!-- End Google Tag Manager -->
Additionally, paste this code immediately after the opening <body> tag:
@sonlexqt
sonlexqt / multitenant.md
Created May 29, 2020 06:12 — forked from woloski/multitenant.md
Multi Tenant Apps in Auth0

Multitenancy refers to a principle in software architecture where a single instance of the software runs on a server, serving multiple client-organizations (tenants)

Let's start by enumerating some multi tenant applications and understand how they handle it.

Slack

Authentication:

@sonlexqt
sonlexqt / xfdf-string.txt
Created May 12, 2020 08:27
XFDF String of a deleted annotation (that doesn't work when passed into importAnnotationCommand method)
"<?xml version="1.0" encoding="UTF-8"?>
<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
<add />
<modify />
<delete>
<id>-M76yKMtZ86qZIsrepwV</id>
</delete>
<pdf-info import-version="3" version="2" xmlns="http://www.pdftron.com/pdfinfo" />
</xfdf>"
@sonlexqt
sonlexqt / gist:73e75fec80d75e5ac1718e54d5d8723c
Created November 4, 2019 03:01
+994502657053 - all contacts
{
"_id" : null,
"result" : [
"+994502958930",
"+994553868638",
"+994502785724",
"+994502958998",
"+994502355382",
"+994502355381",
"+994504653629",
@sonlexqt
sonlexqt / gist:f9b3dc9ff429af0d03271ec0e8782752
Created November 4, 2019 03:00
+16506958324 - all contacts
{
"_id" : null,
"result" : [
"+994555559353",
"+994502320100",
"+994557914011",
"+994557140012",
"+994503752964",
"+994555898110",
"+994506353525",
@sonlexqt
sonlexqt / gist:9ff9cc231bbc0ca0f695682b9de20e1b
Created November 4, 2019 02:59
+19162707884 - all contacts
{
"_id" : null,
"result" : [
"+971506597500",
"+37379245110",
"+447769353574",
"+37378384072",
"+37369538999",
"+971502720986",
"+37378543747",
@sonlexqt
sonlexqt / gist:ac058b8321a99a267c014573d8185781
Created November 2, 2019 19:04
contacts (+994502657053)
{
"_id" : null,
"result" : [
"+18102104150",
"+18102824223",
"+18102826670",
"+18108141770",
"+19163881540"
]
}
@sonlexqt
sonlexqt / gist:fe9335d276ba82b1eba0424971ae0466
Created November 2, 2019 19:03
contacts (+16506958324)
{
"_id" : null,
"result" : [
"+18623695917",
"+18326826932",
"+12034436227",
"+16506913065",
"+16509954844",
"+19292724769",
"+14245423126",
@sonlexqt
sonlexqt / gist:0ef2bcb251122ffc313f351833b9d144
Created November 2, 2019 19:00
contacts (+19162707884)
{
"_id" : null,
"result" : [
"+13127812700",
"+16502658286",
"+13479614596",
"+13155299494",
"+19165984116",
"+16506873600",
"+19165984114",
bundle exec fastlane ios setup --env=dev
[✔] 🚀
+---------------------------+---------+------------------+
| Used plugins |
+---------------------------+---------+------------------+
| Plugin | Version | Action |
+---------------------------+---------+------------------+
| fastlane-plugin-appcenter | 1.4.0 | appcenter_upload |
| fastlane-plugin-load_json | 0.0.1 | load_json |
+---------------------------+---------+------------------+