Skip to content

Instantly share code, notes, and snippets.

View nimbosa's full-sized avatar

nimbosa nimbosa

View GitHub Profile
@ezynda3
ezynda3 / WTF.sol
Created July 22, 2017 18:48
WTF Token
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;

Keybase proof

I hereby claim:

  • I am aayanl on github.
  • I am anarch3 (https://keybase.io/anarch3) on keybase.
  • I have a public key whose fingerprint is 2953 6AA7 7602 FF25 94B3 C33D D957 6718 016B 7D44

To claim this, I am signing this object:

@kirrg001
kirrg001 / changelog.md
Last active July 17, 2017 06:35
Full 1.0.0-beta.2 Changelog
  • e9b26aa4 Updated Ghost-Admin to 1.0.0-beta.2 - kirrg001
  • bababa3a Version bump to 1.0.0-beta.2 - kirrg001
  • 3ba5ac5e5 Version bump to 1.0.0-beta.2 - kirrg001
  • 12b0bb0a7 🐛 Add conditional to fix post scheduling (#760) - Aileen Nowak
  • 117aeaa6 ✨ Pass clientExtensions to Ghost Admin (#8617) - Hannah Wolfe
  • a1e814be5 ✨ Minimal client extensions (#759) - Hannah Wolfe
  • 79e4b08f 🙈 fix tests (#8618) - Katharina Irrgang
  • c696b1d2 Upgrading Casper: 2.0 - kirrg001
  • 6a589f78 ⬆️ bump dependencies - kirrg001
  • [a270d2b18](
@gavinandresen
gavinandresen / ReplayProtection.patch
Created June 15, 2017 15:15
OP_RETURN replay protection patch
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp
index ec398f662..6724399c0 100644
--- a/src/policy/policy.cpp
+++ b/src/policy/policy.cpp
@@ -117,6 +117,10 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason, const bool witnes
return false;
}
+ if (tx.ReplayProtected()) {
+ return false;
@francolaiuppa
francolaiuppa / data.json
Created January 19, 2017 10:06
Sample multiline JSON for demos
{
"web-app": {
"servlet": [
{
"servlet-name": "cofaxCDS",
"servlet-class": "org.cofax.cds.CDSServlet",
"init-param": {
"configGlossary:installationAt": "Philadelphia, PA",
"configGlossary:adminEmail": "ksm@pobox.com",
"configGlossary:poweredBy": "Cofax",
@alexellis
alexellis / Dockerfile
Last active September 30, 2021 10:54
ZCash Dockerfile - installs and builds ZCash tool and pulls proving cert.
FROM ubuntu:latest
RUN apt-get update -q && apt-get -qy install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python \
zlib1g-dev wget bsdmainutils automake
WORKDIR /root/
RUN git clone https://github.com/zcash/zcash.git
WORKDIR /root/zcash/
@battermann
battermann / Game.fsx
Created February 19, 2016 11:14
Data-centric vs Function-centric Domain Design
open System
// -----------------------------------------------------------
// Domain
// -----------------------------------------------------------
module GameDomain =
type Dice = One | Two | Three | Four | Five | Six

Share a ZFS file system over SMB/CIFS and advertise it via mDNS so that it shows up in the OS X Finder. Assumes SmartOS, but should work fine on any illumos distribution.

# Allow guest access to a trusted subnet
zfs set sharesmb=ro=192.168.1.0/25,guestok=true,name=store zones/store

# Advertise the SMB service, it will now show up in Finder
dns-sd -R "Loft Server" _smb._tcp local 445 &

# Give it a pretty icon. If you want something different, choose from the list in
@nmarley
nmarley / conv.rb
Last active August 9, 2017 17:20
Convert Dash BIP32 extended public key version prefix from 'xpub' to 'drkv'
#! /usr/bin/env ruby
# Utility converting BIP32 extended key version bytes
require './dashutil'
xkey = ARGV.shift
pref = ARGV.shift
# xpub661MyMwAqRbcFnEEbFf8idiyo8QGKiqhTujUmaJsDhAEZ82cEQPMq69Y4V27vGc5rJnxsd26kyHpBJDW72YMjntsmASbdBy1awfGMsUvLCa
@seberm
seberm / gist:a74cfd838ea66d734d79
Created December 29, 2015 11:46 — forked from andrewlkho/gist:7373190
How to use authentication subkeys in gpg for SSH public key authentication

GPG subkeys marked with the "authenticate" capability can be used for public key authentication with SSH. This is done using gpg-agent which, using the --enable-ssh-support option, can implement the agent protocol used by SSH.

Requirements

A working gpg2 setup is required. It may be possible to use gpg 1.4 but with gpg-agent compiled from gpg2. If you are using OS X 10.9 (Mavericks) then you may find the instructions [here][1] useful.