-
Install
colordiff
using Homebrew:brew install colordiff
-
Add function to your
~/.bash_profile
:
Confirmed, T-Mobile hijacks DNS.
I am testing from my laptop tethered to a stock T-Mobile Note 3. Lookup of my IP address:
$ curl http://checkip.dyndns.org
<html><head><title>Current IP Check</title></head><body>Current IP Address: 172.56.20.69</body></html>
$ /usr/bin/whois 172.56.20.69 | grep OrgName
OrgName: T-Mobile USA, Inc.
Using WebSockets, React and Reflux together can be a beautiful thing, but the intial setup can be a bit of a pain. The below examples attempt to offer one (arguably enjoyable) way to use these tools together.
This trifect works well if you think of things like so:
- Reflux Store: The store fetches, updates and persists data. A store can be a list of items or a single item. Most of the times you reach for
this.state
in react should instead live within stores. Stores can listen to other stores as well as to events being fired. - Reflux Actions: Actions are triggered by components when the component wants to change the state of the store. A store listens to actions and can listen to more than one set of actions.
This file contains 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
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
This file contains 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
import Foundation | |
/// NSURLSession synchronous behavior | |
/// Particularly for playground sessions that need to run sequentially | |
public extension NSURLSession { | |
/// Return data from synchronous URL request | |
public static func requestSynchronousData(request: NSURLRequest) -> NSData? { | |
var data: NSData? = nil | |
let semaphore: dispatch_semaphore_t = dispatch_semaphore_create(0) |
This file contains 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
#!/bin/bash | |
INSIDE_PREFIX="fdxx::/64" | |
OUTSIDE_INTERFACE="eth2" | |
DUMMY_INTERFACE="dummypd0" | |
OUTSIDE_PREFIX_FILE="/var/run/my-npt-outside-prefix" | |
logger -p info -t my-npt "my-npt-dhcp6c-script invoked" | |
OLD_OUTSIDE_PREFIX="" |
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
This file contains 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
// What is the Google Document ID for your email template? | |
var googleDocId = "abcd0000abcd0000abcd0000abcd0000"; | |
// Which column has the email address? Enter the column row header exactly. | |
var emailField = 'Email'; | |
// What is the subject line? | |
var emailSubject = 'You\'re bringing {Type}!'; | |
// Which column is the indicator for email drafted? Enter the column row header exactly. | |
var emailStatus = 'Date drafted'; | |
/* ----------------------------------- */ |
OlderNewer