Skip to content

Instantly share code, notes, and snippets.

View dprothero's full-sized avatar

David Prothero dprothero

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dprothero on github.
  • I am dprothero (https://keybase.io/dprothero) on keybase.
  • I have a public key ASCWQRGkMvduC0_8zqP3s2LC-oKk_Tb65reSyjK1K5cRQAo

To claim this, I am signing this object:

TODO

If you've reached this page, you've found a link that still needs to be completed.

@dprothero
dprothero / sample.cs
Created October 29, 2018 22:13
Using a unique TwilioRestClient for requests
string accountSid = string.Empty;
string authToken = string.Empty;
if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["TwilioAccountSID"]) && !string.IsNullOrEmpty(ConfigurationManager.AppSettings["TwilioAuthToken"]))
{
accountSid = ConfigurationManager.AppSettings["TwilioAccountSID"];
authToken = ConfigurationManager.AppSettings["TwilioAuthToken"];
var readClient = new TwilioRestClient(accountSid, authToken);
var writeClient = new TwilioRestClient(accountSid, authToken);
@dprothero
dprothero / superclass-speakers.md
Last active May 23, 2017 14:05
Superclass talk schedule

SUPERCLASS TALK SCHEDULE

09:20AM - HELLO, TWILIO!

by Kat King

09:50AM - CHAT FUNDAMENTALS

by Randy Beiter

10:30AM - SYNC FUNDAMENTALS

by Andres Jaan Tack

@dprothero
dprothero / Program.cs
Created March 1, 2017 18:31
Send SMS with Twilio 5.x helper library with manually created TwilioRestClient
using System;
using Twilio.Clients;
using Twilio.Rest.Api.V2010.Account;
using Twilio.Types;
namespace ConsoleApplication32
{
class Program
{
static void Main(string[] args)
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst googlechrome
cinst firefox
cinst fiddler4
cinst git-credential-manager-for-windows
cinst console-devel
cinst poshgit
cinst nodejs.install
@dprothero
dprothero / gist:224a4752faa6c1797526
Last active September 9, 2015 18:51 — forked from nsilvah/gist:a7a31f017de098a79f38
DatePicker directive to fix timezone issues
app.directive('datepickerLocaldate', [function () {
var directive = {
require: 'ngModel',
link: link
};
return directive;
function link(scope, element, attr, ngModel) {
scope.$watch(
function(){
@dprothero
dprothero / lenas-pearls.md
Last active December 9, 2015 22:35
Lena's Pearls of Wisdom

Lena's Pearls of Wisdom

  1. Please stop taking Nyquil… Mucinex is a much better drug and helps right away.
  2. When you work out, you must only be thinking about the work out….that way you work harder.
  3. Be somebody who makes everyone feel like somebody.
  4. Nothing f##$$#ks up my Friday like realizing it is Tuesday!
  5. If I don't like it, I will tell you.
  6. I don't like boring people.
  7. 95% Pure Curcumin turmeric! And nothing less!
  8. We can achieve anything...It's all in the Sub-conscious.
  1. Decide on a subdomain to use with ngrok. This makes the whole process easier.
  2. Open up a Command Prompt in Administrator mode and run the following command to register the URL with HTTP.sys replacing "modernie" with your subdomain and ##### with your VisualStudio/IISExpress application's port.
netsh http add urlacl url=http://modernie.ngrok.com:#####/ user=everyone
  1. Edit your applicationhost.config. The easiest way to is start up the site and right-click the IISExpress icon in the System Tray. Click "Show All Applications" and select your website running at localhost:#####. Click the path next to "Config" to open the file in an editor.
  2. Search for you site's <bindings> configuration. The easiest way is to search for *:#####:localhost, which should bring you to the <bindings> section for your site. Edit them to include the following: