Skip to content

Instantly share code, notes, and snippets.

View awwong1's full-sized avatar
🕳️
some

Alexander Wong awwong1

🕳️
some
View GitHub Profile
-----> Elixir app detected
-----> Checking Erlang and Elixir versions
Will use the following versions:
* Stack cedar-14
* Erlang 18.3
* Elixir 1.4.1
-----> Will export the following config vars:
DATABASE_URL
DOMAIN_NAME
LETS_ENCRYPT_CHALLENGE
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@awwong1
awwong1 / beeMovieScriptNotica.sh
Created December 27, 2016 21:38
Bee Movie Script, Notica
#!/usr/bin/env bash
# Playing around with Tanner Collin's Notica service.
# Script from http://www.script-o-rama.com/movie_scripts/a1/bee-movie-script-transcript-seinfeld.html
# Notica from https://notica.us/
# Will send a single line of the bee movie script to Notica every 5 seconds.
# https://notica.us/BeeMovie
beemovieScript="
{
uid: (node_uid)
submitter_uid: (user_uid)
text: blah
markdown: blah
image: blah
video: blah
...
required_uids: (set of node_uids)
# excluded_uids: (set of node_uids) (maybe this is impossible to do 'well')
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', '/static/common/js/testing.js', true);
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState === XMLHttpRequest.DONE) {
eval(xmlhttp.responseText);
update_match_details = function (data) {
console.log('match_token: ' + data.match_token);
console.log('internal_ip: ' + data.internal_ip);
var bridge_info = data.bridge_info;
console.log('watchLink: ' + get_match_link(data.server_ip, bridge_info.bridge_host, bridge_info.bridge_port, data.match_token));