Skip to content

Instantly share code, notes, and snippets.

View nimbosa's full-sized avatar

nimbosa nimbosa

View GitHub Profile
@nimbosa
nimbosa / 3boxdb.md
Created December 17, 2019 14:55
Open a new gist file in Github and paste the key in the body of the file. Save the gist as public with any valid name and file type.

This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.

✅ did:muport:QmYgjB9J7ECKjXZXZMXP9hHbKQpfzXtRwRWvBYcahhvZfE ✅

Create your profile today to start building social connection and trust online at https://3Box.io/

MIMBLEWIMBLE

Tom Elvis Jedusor 19 July, 2016

*/ Introduction /*\

Bitcoin is the first widely used financial system for which all the necessary data to validate the system status can be cryptographically verified by anyone.

@nimbosa
nimbosa / ZEC-ETH.md
Last active April 15, 2018 05:03 — forked from arielgabizon/gist:7e9906d3e06106cb5cfb7651a954c8b4
ZEC-ETH atomic cross-chain trading

I was reading about atomic cross-chain trading in the wiki https://en.bitcoin.it/wiki/Atomic_cross-chain_trading and think that perhaps the Zcash circuit could be used to easily get semi-private Zcash-ETH atomic cross-chain trading.

As in the wiki it would require the parties to communicate before and verify by themselves that certain things have appeared on the two chains. On the other hand, it doesn't require ETH chain to verify Zcash Proof of Work as I thought was needed. What the ETH client will need to do is verify a snark of the Zcash circuit (which was recently implemented for the C++ client as described in https://z.cash/blog/zcash-eth.html)

Semi-private means Alice will agree with Bob to exchange say 10 zec for 1 eth, and this 10 will only be known by both of them. Furthermore the address to which Bob's 10 zec note will be sent will be a z-addr known only by him and Alice.

So here's how it could work (simplified)

  1. Alice will send Bob the Eth address Addr where she wants to receive her 1 eth

Previously described at: ERC20 critical problems medium article.

Description.

ERC20 is the most common Ethereum token standard. It should be noted that it is also the first Ethereum token standard as well.

It is also important that the original ERC20 proposal is a definition of token interface. EIP20 does not define a reference implementation for this token standard. Here is the OpenZeppelin implementation of ERC20 token: https://github.com/OpenZeppelin/zeppelin-solidity/tree/master/contracts/token/ERC20

ERC20 token standard implementation assumes two ways of token transfer: 1.) transfer function; and 2.) approve + transferFrom pattern.

@nimbosa
nimbosa / OneName.com-nimbosa
Created August 22, 2017 21:00
Verifying that "nimbosa.id" is my Blockstack ID.
Verifying that "nimbosa.id" is my Blockstack ID. https://onename.com/nimbosa
@nimbosa
nimbosa / keybase.md
Created August 2, 2017 01:24
KeyBase.io two-way proof of identity

Keybase proof

I hereby claim:

  • I am nimbosa on github.
  • I am nimbosa (https://keybase.io/nimbosa) on keybase.
  • I have a public key ASAYTI3Mt1of_6upVp_VulZgURI112am7miVR2Z6K9MzfAo

To claim this, I am signing this object:

@nimbosa
nimbosa / peace.DRAFT.md
Last active January 5, 2019 01:01
the World towards a Path of Peace

Humans, our ancestors, and all sentient beings on earth have been living in a state of harmony, a natural balance for millions of years undisturbed. It is the primal human condition, our natural state. John F. Kennedy in 1963 called it "the most important topic on earth: peace." In his university commencement address, he was referring to what he called genuine peace, "not merely peace in our time but peace in all time." In as much as the freedom of conscience is mankind's inalienable right, peace for all the peoples of the earth is a sacred right that has to be respected and honored by every human individual and every human institution.

The United Nations has made a historic realization and reaffirmation of this principle in its General Assembly on the 12th of November 1984: the "Declaration on the Right of Peoples to Peace" recognizes that the promotion of peace is vital for the full enjoyment of all other human rights. The right to peace is a key and a precondition to all other freedoms that humans

@nimbosa
nimbosa / culture+society.TXT.md
Last active January 5, 2019 01:29
Anthropology, Paleo-ecology, Eco-socialism and the Open Source movement, expounding new views on human progress by synthesis of previous strategies - Rick Potts via nimbosa

meaning, ayon kay Rick Potts (Anthropologist, Paleontologist, Paleo-ecologist):

Culture is the means by which individual differences among humans interact symbologically (through symbolic meaning) wthin a social group in specific environmental circumstances usually mediated under various forms of institutions like family / kinship, politics, economics, morals, law and art, to better equip humans to express themselves and to adapt and act as part of a whole against different challenges and stresses in their changing environment, giving humans the collective capacity to imagine and invent, to revise and reject, to solidify and diversify the social approaches of fellow humans and transmit these approaches to succeeding generations and other social group.

Culture began to emerge when complex social variation was first manifested, when early humans began to

@nimbosa
nimbosa / Qemu-KVM-shrink+compress.MD
Created August 14, 2014 07:51
shrink + compress virtual disk image in Qemu/KVM

shrink + compress virtual disk image in Qemu/KVM

originally from Martin Kopta's blog

Tue Apr 22 10:41:10 UTC 2014

In order to shrink virtual disk of your virtual machine (process called disk space reclamation) in Qemu/KVM, you can go with following. In your running virtual machine, fill all remaining empty space with zeroes. Then, shut down virtual machine and convert the disk image from original format to the same format (esentially doing nothing). In the process of conversion, Qemu will skip the zeroes and save you some space. You can even add some compression to save even more space.

root@vm# dd if=/dev/zero of=/file
root@vm# rm /file
@nimbosa
nimbosa / last-common-ancestor-delphiX-4.1.TXT
Last active August 29, 2015 14:04
delphiX-4.1 last common ancestor from upstream 'illumos-gate/master'
Feb 19, 2014
Basil Crow basil Merge remote-tracking branch 'illumos-gate/master' … 3911d0b
we are closer to home on 4.1 than 4.0 was..
ALL future development henceforth shall track Delphix 4.1 in addition to upstream changes and OpenIndiana illumos-gate
$ date
Sun Jul 27 08:31:56 PHT 2014
_____________________________________________
_____________________________________________