Skip to content

Instantly share code, notes, and snippets.

jyap808 / Upgrade Yarn dependencies (and update package.json).md
Created Sep 25, 2021
Upgrade Yarn dependencies (and update package.json)
View Upgrade Yarn dependencies (and update package.json).md
jq '.dependencies | keys | .[]' package.json | xargs yarn add
jq '.devDependencies | keys | .[]' package.json | xargs yarn add --dev

FROM: yarnpkg/yarn#3266 (comment)

jyap808 /
Created Dec 17, 2020
Useful random notes

Undo Git changes (also pushed Git changes)

In the server, move the cursor back to the last known good commit:

git push -f origin <last_known_good_commit>:<branch_name>

Locally, do the same:

git reset --hard 
jyap808 / JBSclaimedaddresses.txt
Last active Oct 10, 2018
JBS claimed addresses - Signed messages
View JBSclaimedaddresses.txt
JBS Address UBQ Address (message) Signature
JJgMRVtSsjaoj8ZwSeWmgYHxx3Lm4MmVEM 0x3e5429d2c0D046430709F2001867fC5dAEd5DC79 H2irrHUv4HAh85mVPMxsywPKz7HTdijIbAHiUp2aJPPFmSiiXE9UsF+q7GSbc9WeE9Qs4fSJHTqaMTnYDEPQoy4=
JK5cjW1BiiLB8AUGRThE7Gt4TeJE7uauhC 0xD53788af956e7622Cfd258669036d37F07CB8B29 IMiur7lgHPQRXVZxethw8GdKHk924eeZ0WmUWpYNj6aEdainejVrxerZoPb6wcwL5W0ttGxUcpBbtzyaWUki9VU=
JK7v1tvm87oMNkrQViJG7zbb64vqcV2oVH 0xfa99053b813C6E47b0e2dd561848B028AE5396B3 IHIflksnd9OGIXqH3yDmigCAxhh138UQIWNZiXMuWpTAXgOlI7iZl96jHFwdgv0h+ZpQUFTaUqIIQtqp0aWbZJ0=
JKCidRbYRU3H38t5fixW6npQXG8hnP5aP9 0xF7cd47d4354f54aAD36861Cba8d9B666989fd496 ICN6Oq8+8Fd5r1aQJ0PKAjZub0GyuXhAnDJgJAtTvQW0lwgR2XjIzX4JVJ7H57iTSXGKFSoO8jTGDV7yOhOYGlU=
JKEEEbhpGNkPmKGfjVatFypwcU94y1EpSK 0xbF54b793938e9C83A1b1eFd5c8101BFa7f14942B IM5aofC6WXis+g9k0m+anbIt0uQ44mJ810j4YuyG6OJTyz2jzyNm5rmcB2CdGove9vVGqXOP1cyzAoKY+3VAO/A=
JKF2JvWS9scV419TvNR6epRqLP1gzPAvQS 0xBA0d2d3BECc70b355E9A1971C
jyap808 / UbiqNucleusBlock.json
Last active Sep 4, 2017
Ubiq Nucleus Block
View UbiqNucleusBlock.json
"nonce": "0x0000000000000888",
"timestamp": "0x588CF840",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x0",
"gasLimit": "0x8000000",
"difficulty": "0x12A05F2000",
"extraData": "0x4a756d6275636b734545",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
jyap808 / jbs_block_1284688.txt
Created Apr 2, 2017
Jumbucks - State of the ledger at block 1284688 (minted : Sat Jan 28 08:07:16 2017)
View jbs_block_1284688.txt
This file has been truncated, but you can view the full file.
State of the ledger at block 1284688 (minted : Sat Jan 28 08:07:16 2017)
Balance Hash160 Base58 nbIn lastTimeIn nbOut lastTimeOut
597245.70000000 5aa5ada8189f6b8f993a37c01b3e95bd2bd802ee JSoEdU717hvz8KQVq2HfcqV9A79Wihzusu 107 Fri Jan 27 19:55:28 2017 103 Fri Jan 27 22:51:12 2017
View blake256.go
package main
import (
func main() {
jyap808 /
Created Aug 17, 2015
Jumbucks Fantasy Football Draft Order 2015
import hashlib
names = []
names.append('MtGox Frappuccinos')
jyap808 / Dracula Coin.. Quick
Last active Aug 29, 2015
Dracula Coin.. Quick notes
View Dracula Coin.. Quick
jyap808 / Perl - Check a module is
Created Mar 4, 2015
Perl - Check a module is installed
View Perl - Check a module is

If you want to quickly check if module is installed (at least on Unix systems, with bash as shell), add this to your .bashrc file:

alias modver="perl -e\"eval qq{use \\\$ARGV[0];\\\\\\\$v=\\\\\\\$\\\${ARGV[0]}::VERSION;};\ print\\\$@?qq{No module found\\n}:\\\$v?qq{Version \\\$v\\n}:qq{Found.\\n};\"\$1"

Then you can:

=&gt; modver XML::Simple
jyap808 /
Last active Aug 29, 2015
Crypto Double - The anatomy of a Ponzi scheme

I've noticed that people still contemplate how a Ponzi scheme such as a site called Crypto Double works.

Wikipedia defines a Ponzi scheme as: A fraudulent investment operation where the operator, an individual or organization, pays returns to its investors from new capital paid to the operators by new investors, rather than from profit earned by the operator.

Here is an overview of a series of tweets I made which illustrates how this site works. Please note that there is nothing complicated about this site. There are no magical investors on the receiving end.

1) A Ponzi is "funded"

A large investment is put into the Ponzi scheme which can then fund the earlier participants.