Skip to content

Instantly share code, notes, and snippets.

@hackfisher
hackfisher / Darwinia RPC Author Insert Key.sh
Created April 9, 2020 15:27
Darwinia RPC Author Insert Key
curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": [
"babe",
"sr mnemonic",
"sr public"
]
@hackfisher
hackfisher / main.go
Last active August 29, 2015 14:15 — forked from mschoebel/main.go
package main
import (
"fmt"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
"net/http"
)
// cookie handling
@hackfisher
hackfisher / gist_tag.rb
Created March 31, 2012 01:21 — forked from BinaryMuse/gist_tag.rb
A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'
module Jekyll
class GistTag < Liquid::Tag
def initialize(tag_name, text, token)
super
@text = text