Skip to content

Instantly share code, notes, and snippets.

View stevenlivz's full-sized avatar

Steven Livingstone-Perez stevenlivz

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div style="float:left">
<video controls width="250">
<source src="/media/examples/flower.mp4"
@stevenlivz
stevenlivz / ExportKindle.js
Last active February 7, 2019 13:00 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
Visual Studio Enterprise 2017 for Mac (Preview)
Version 7.6 Preview (7.6 build 711)
Installation UUID: 71d6029a-504c-4497-994e-cf0311359b9f
Runtime:
Mono 5.12.0.226 (2018-02/9824e260f56) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 4.4.0.36 (master / 0c7c49a6)
Package version: 512000226
{
"runtimeTarget": {
"name": ".NETStandard,Version=v2.0/",
"signature": "4036a07a131b5ffdc1bb11ac1ce7735f1a963874"
},
"compilationOptions": {},
"targets": {
".NETStandard,Version=v2.0": {},
".NETStandard,Version=v2.0/": {
"testfunc-src/1.0.0": {
-module(sub_server).
-behaviour(gen_server).
-export([start_link/0]).
%% gen_server callbacks
-export([init/1,
handle_call/3,
handle_cast/2,
connect() ->
io:format("Connecting~n"),
Hostname = "mybroker.servicebus.windows.net",
Port = 5671,
User = <<"test">>,
Password = <<"xxxxxx=">>,
OpnConf = #{address => Hostname,
port => Port,
-module(mod_echobot).
-author('Steven Livingstone-Perez').
-behavior(gen_server).
-behavior(gen_mod).
%% Interface
-export([start_link/2]).
@stevenlivz
stevenlivz / gist:a9fbe51702dfdf63e74d
Created February 1, 2016 11:58
riak cluster config
#only get the ip of the seed
if [[ -z ${SEED_CONTAINER_IP} ]] ; then
SEED_CONTAINER_IP=$(docker inspect "${CONTAINER_ID}" | grep IPAddress | cut -d '"' -f 4)
SEED_CONTAINER_IP=$(echo $SEED_CONTAINER_IP | tr -d ' ')
fi
docker run -e "DOCKER_RIAK_CLUSTER_SIZE=${DOCKER_RIAK_CLUSTER_SIZE}" \
-e "DOCKER_RIAK_AUTOMATIC_CLUSTERING=${DOCKER_RIAK_AUTOMATIC_CLUSTERING}" \
-e "DOCKER_RIAK_BACKEND=${DOCKER_RIAK_BACKEND}" \
-e "SEED_PORT_8098_TCP_ADDR=${SEED_CONTAINER_IP}" \