Skip to content

Instantly share code, notes, and snippets.

@chrisduesing
chrisduesing / gist:5f5be05bd6d1ed4477471df125e6d59f
Created December 10, 2021 23:25
tezos profile attestation
I am attesting that this GitHub handle chrisduesing is linked to the Tezos account tz1bGnjvpHXpdBbPWJ4X5hokuHEpgX1tJPnu for tzprofiles
sig:edsigtpSrrRUe8RH3g772u3SaU2u9mwRgDxB1vc8d2tyJhsTbAczyhCHehGL2xENAox4rsjpERkL8uAxpMCeSkJ1fvTPX1Nh6GJ
@chrisduesing
chrisduesing / jsbin.ibaYicA.html
Created August 22, 2013 16:10 — forked from anonymous/jsbin.ibaYicA.html
Not quite working 'how to hook websockets up to Ember' copied from Yehuda example during training class.
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.6/ember.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
@chrisduesing
chrisduesing / my_test.exs
Last active December 20, 2015 14:39
Can't seem to check if a process is alive in an Elixir test file. This test will hang.
Code.require_file "test_helper.exs", __DIR__
defmodule MyTest do
use ExUnit.Case
def loop do
receive do
_ -> IO.puts "loop!"
end
loop
# Config for Nginx to act as a front-end for Riak
# The main goal is to proxy all GETs directly to Riak, and disallow anything else (POST, PUT, etc)
# Also, disallow use of the map/reduce query links (i.e. /riak/bucket/key/_,_,_)
# Config is in /etc/nginx/sites-available/default or somewhere like that
# Set up load-balancing to send requests to all nodes in the Riak cluster
# Replace these IPs/ports with the locations of your Riak nodes
upstream riak_hosts {
server 127.0.0.1:8098;
-module(first_example).
-export([say_hello/1]).
say_hello(Name) ->
io:format("hello ~s~n", Name).