Skip to content

Instantly share code, notes, and snippets.

View RdeWilde's full-sized avatar

R. de Wilde RdeWilde

View GitHub Profile
@RdeWilde
RdeWilde / btcpayments.rst
Created August 23, 2018 20:55 — forked from gavinandresen/btcpayments.rst
Bitcoin Payment Messages

SEE BIP 70

See https://en.bitcoin.it/wiki/BIP_0070 for the latest version of this document; I'll keep this document so the process of discussion/revision isn't lost.

Bitcoin Payment Messages

This document proposes protocol buffer-based formats for a simple payment protocol between a customer's bitcoin client software and a merchant.

@RdeWilde
RdeWilde / docker-compose.yml
Created October 9, 2017 20:04
Docker cluster for ION web application
version: '3'
services:
web:
image: nginx:latest
ports:
- "80:80"
- "3000:443"
restart: always
volumes:
- "./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
@RdeWilde
RdeWilde / Dockerfile
Created October 9, 2017 20:02
Latest ionomy IOND on Ubuntu 16.04
FROM ubuntu:16.04
ENV IOND_USERNAME ionrpc
ENV IOND_PASSWORD 34i29j9329j2320SJSndjasJfKFJdksjfjijfi32jifd
ENV IOND_ALLOWIP *
ENV IOND_ARGS -daemon=1
RUN apt update
RUN apt upgrade -y
RUN apt install make autoconf automake g++ git software-properties-common bsdmainutils libboost-all-dev libleveldb-dev pkg-config libssl-dev libcrypto++-dev libevent-dev libminiupnpc-dev libgmp-dev python python-pip -y # libdb++-dev
@RdeWilde
RdeWilde / README.md
Created October 30, 2016 11:46 — forked from sma/README.md
This is an ad-hoc Java-to-Dart translator written in three days. This is version 2 which some bug fixes.

Java to Dart

This is an ad-hoc Java-to-Dart translator originally written on two (admittedly long) evenings.

See http://sma.github.io/stuff/java2dartweb/java2dartweb.html for a demo.

Note: It doesn't support the complete Java grammar specification and cannot translate everything. It only translates syntax and does not attempt to translate Java library classes and methods to Dart equivalents (with the exception of String.charAt and StringBuffer.append). You will have to make changes to the resulting Dart code. It does not support anonymous inner classes.

However, I was able to successfully convert a 7000+ line command line application with only minimal fixes in 30 minutes.

@nnja
nnja / gist:9136152c163091614e70defcf3753d06
Created May 26, 2016 20:25
How to access the raw markdown source for a github wiki page
https://raw.github.com/wiki/user/repo/page.md?login=login&token=token
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
# Unzip
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@ManuelPeinado
ManuelPeinado / MainActivity.java
Created October 19, 2014 20:02
Fading action bar effect using the new Toolbar class from the support library
package com.github.manuelpeinado.toolbartest;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.View;
@ChrisMcKee
ChrisMcKee / nginxinstaller.sh
Last active December 3, 2015 21:55
install nginx from source with spdy and ssl support on CENTOS 6.5
#!/bin/bash
### VARIABLES ###
PRE_PACK="gcc gcc-c++ make pcre-devel zlib-devel unzip wget"
OPT_PACK="openssl-devel"
VER="1.5.12"
PREV_VER="1.5.11"
USER="nginx"
GROUP="nginx"
INSTALL_DIR="/etc/nginx"
@sma
sma / README.md
Last active July 4, 2023 06:28
This is an ad-hoc Java-to-Dart translator written in three days. This is version 2 which some bug fixes.

Java to Dart

This is an ad-hoc Java-to-Dart translator originally written on two (admittedly long) evenings.

See http://sma.github.io/stuff/java2dartweb/java2dartweb.html for a demo.

Note: It doesn't support the complete Java grammar specification and cannot translate everything. It only translates syntax and does not attempt to translate Java library classes and methods to Dart equivalents (with the exception of String.charAt and StringBuffer.append). You will have to make changes to the resulting Dart code. It does not support anonymous inner classes.

However, I was able to successfully convert a 7000+ line command line application with only minimal fixes in 30 minutes.

@erikflowers
erikflowers / gist:6710372
Created September 26, 2013 06:01
An easy way to include just super standard 1px text shadows. No frills.
.textShadowBlack(@shadow: 0 1px 0px rgba(0,0,0,1)) {
text-shadow: @shadow;
}
.textShadowWhite(@shadow: 0 1px 0px rgba(255,255,255,1)) {
text-shadow: @shadow;
}