Skip to content

Instantly share code, notes, and snippets.

@dannycabrera
dannycabrera / SafariBiometricTesting.html
Last active October 21, 2020 19:23
Safari Biometric (Touch/Face ID) Testing
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=no; width=device-width">
<script type="text/javascript">
function testBiometrics() {
// Detects if device is on iOS
@dannycabrera
dannycabrera / GetDroidModel_Changes_9-29-2020.csv
Created September 29, 2020 14:00
GetDroidModel device changes 9-29-2020
Retail Branding Marketing Name Device Model
A1 A1 Alpha 20+ P671F60 A1 Alpha 20+
AG Mobile AGM A10 SHARKL5 AGM A10
AG Mobile AGM A10 SHARKL5 Android
ALMATEEN LXL43G7H-AT samseong AI PONT
ANAM ANAM seocho ANAM 4K Android TV
ANDRINO Andrino bangbae andrino 4K Android TV
AT&T U318AA U318AA U318AA
AT&T U705AA U705AA U705AA
AZOM TECH Desert2 Desert2 Desert2
@dannycabrera
dannycabrera / GetDroidModel_Changes_04012020.csv
Created April 2, 2020 03:28
GetDroidModel Changes 04012020
Retail Branding Marketing Name Device Model
1&1 DIW387-1&1 diw387_1u1 DIW387 1U1
A1 ADT-3 adt3 ADT-3
AT&T U202AA U202AA U202AA
ATM (Brazil) R5 R5 R5
AZPEN A1052 A1052 A1052
Accent FAST10 FAST10 FAST10
Acer Acer One 10 T4-129LI AcerO10T412LI Acer One 10 T4-129LI
Acer Acer One 10 T8-129L Acer_One_10_T8-129L Acer_One_10_T8-129L
Advan digital NASA ADVAN_NASA 5202
@dannycabrera
dannycabrera / GetDroidModel_Changes_01262020.csv
Last active January 26, 2020 19:29
GetDroidModel_Changes_01262020.csv
Retail Branding Marketing Name Device Model
1&1 1&1 Puck diw362_1u1 DIW362P 1U1
1&1 1&1 TV Box diw387_1u1 DIW387 1U1
10.or 10or_G2 G2 10or G2
10.or G2 G2 G2
3222222 Satelital G706 G706 G706
3Go GT70053G GT70053G GT70053G
3Go GT7007EQC GT7007EQC GT7007EQC
7mobile Kamba 2 7mobile_Kamba_2 Kamba_2
7mobile Swegue 2 Swegue_2 Swegue 2
@dannycabrera
dannycabrera / Program.cs
Created August 21, 2019 20:15
FaxApp Program.cs
using Microsoft.Owin.Hosting;
using System;
using Twilio;
using Twilio.Rest.Fax.V1;
namespace FaxApp
{
class Program
{
static IDisposable _app = null;
@dannycabrera
dannycabrera / Util.cs
Created August 21, 2019 20:08
FaxApp Util.cs
using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
namespace FaxApp
{
public class Util
{
public async Task<string> DownloadFile(string url)
@dannycabrera
dannycabrera / CallbackController.cs
Created August 21, 2019 19:54
FaxApp CallbackController.cs
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
@dannycabrera
dannycabrera / Startup.cs
Created August 21, 2019 19:50
FaxApp Startup
using Owin;
using System.Web.Http;
namespace FaxApp
{
class Startup
{
public void Configuration(IAppBuilder appBuilder)
{
// Configure Web API for self-host.
@dannycabrera
dannycabrera / GetDroidModel_Changes_8-24-2018.csv
Created August 24, 2018 15:01
GetDroidModel device changes 8-24-2018
Retail Branding Marketing Name Device Model
3Go GT10K3IPS GT10K3IPS GT10K3IPS
A1 A1 Smart N9 VFD720 VFD 720
AOC A741 A741 A741
AOC A941 A941 A941
ASTCA AA 787 S SURGE_AA_787_S AA 787 S
AT&T QS5509A QS5509QL QS5509A
AURII AURII_AMUSE_4G AURII_AMUSE_4G AURII_AMUSE_4G
AVH San Luis S.A. ExcerG5.6 ExcerG5_6 ExcerG5.6
Accent CAMELEON C5 CAMELEON_C5 CAMELEON C5
@dannycabrera
dannycabrera / AsposePDFReplaceText.cs
Created June 26, 2018 20:49
Aspose.PDF ReplaceText method
public void ReplaceText(string sourcePDF, string destinationPDF, string textPhrase, string replacementText)
{
// Open document
using (Document pdfDocument = new Document(sourcePDF))
{
// Create TextAbsorber object to find all instances of the input search phrase
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber(textPhrase);
// Accept the absorber for all the pages
pdfDocument.Pages.Accept(textFragmentAbsorber);