Skip to content

Instantly share code, notes, and snippets.

View ebeeson's full-sized avatar

Erik Beeson ebeeson

View GitHub Profile
@ebeeson
ebeeson / index.html.diff
Last active May 23, 2017 19:05
import inlineParamsUtil
$ diff a/index.html b/index.html
3994d3993
< Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
4009c4008
< /* harmony default export */ __webpack_exports__["default"] = (inlineParamsUtil);
---
> /* harmony default export */ __webpack_exports__["a"] = (inlineParamsUtil);
4446c4445
< var queryParams = __WEBPACK_IMPORTED_MODULE_0_tv_old_common_js_inline_inlineParamsUtil__["default"].parse();
---
@ebeeson
ebeeson / mkv_3840x2160_80.4mbps_avc_8bit_29.970fps_aac-2ch_[648bb24926]-2.mkv.txt
Created April 27, 2017 21:40
The file `mkv_3840x2160_80.4mbps_avc_8bit_29.970fps_aac-2ch_[648bb24926].mkv` came from a QA PMS.
General
Unique ID : 56769369794619293036519884635459270741 (0x2AB562071EC288A0B84407B9BEEBB855)
Complete name : /Users/erik/Media/4K (mkv)/mkv_3840x2160_80.4mbps_avc_8bit_29.970fps_aac-2ch_[648bb24926]-2.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 988 MiB
Duration : 1mn 43s
Overall bit rate mode : Variable
Overall bit rate : 80.4 Mbps
Writing application : Lavf57.56.101

Keybase proof

I hereby claim:

  • I am ebeeson on github.
  • I am ebeeson (https://keybase.io/ebeeson) on keybase.
  • I have a public key ASDxOo2nuN7UFl0UuBaziA0MbVT1xdqhQFyIrs54FOp-Zwo

To claim this, I am signing this object:

<script type="text/javascript" src="https://cdn.firebase.com/js/client/1.0.17/firebase.js"></script>
<script type="text/javascript" src="https://cdn.firebase.com/js/simple-login/1.6.1/firebase-simple-login.js"></script>
<script type="text/javascript">
var firebase = new Firebase('https://<YOUR-FIREBASE>.firebaseio.com');
var auth = new FirebaseSimpleLogin(firebase, function(error, user) {
if(error) {
console.log('Firebase Login Error: ', error);
} else if(user) {
console.log('Firebase Login Success: ', user);
} else {
---> HTTP GET https://cache-aws-us-east-1.iron.io/1/projects/XXXXXXXXXXXXX/caches/cache_name/items/test1?oauth=XXXXXXXXXXXXX
---> END HTTP (0-byte body)
<--- HTTP 200 https://cache-aws-us-east-1.iron.io/1/projects/XXXXXXXXXXXXX/caches/cache_name/items/test1?oauth=XXXXXXXXXXXXX (1063ms)
: HTTP/1.1 200 OK
Date: Wed, 19 Mar 2014 18:16:49 GMT
Access-Control-Allow-Origin: *
Content-Length: 127
Connection: keep-alive
Content-Type: application/json
@ebeeson
ebeeson / gist:7014450
Last active December 25, 2015 17:39
Example of building a basic "index" in Firebase.
var users = firebase.child('users');
var usersByEmailIndex = firebase.child('indexes/users/email');
var createUser = function(username, emails) {
var newUserRef = users.push({
username: username,
emails: emails
});
var userId = newUserRef.name();
emails.forEach(function(email) {
@ebeeson
ebeeson / jetty-single-webapp.xml
Created August 7, 2011 09:19
The simplest jetty config file for a single webapp.
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.server.Server">
<Set name="connectors">
<Array type="org.eclipse.jetty.server.Connector">
<Item>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set>
</New>
set the clipboard to (do shell script "echo `curl -s \"http://www.random.org/strings/?num=1&len=20&digits=on&upperalpha=off&loweralpha=on&unique=on&format=plain&rnd=new\"``curl -s \"http://www.random.org/strings/?num=1&len=20&digits=on&upperalpha=off&loweralpha=on&unique=on&format=plain&rnd=new\"`")
startshape S
background {a -1}
rule S {
CIRCLE {a -0.7}
S {s 0.99 x 0.15 y 0.15 r 4.5}
}
@ebeeson
ebeeson / Random MD5.scpt
Created July 4, 2011 20:00
Copy a random MD5 string to the clipboard.
set the clipboard to (do shell script "head /dev/random | md5 | awk '{printf \"%s\", $1}'")