Skip to content

Instantly share code, notes, and snippets.

View coreyphillips's full-sized avatar

Corey coreyphillips

View GitHub Profile
@coreyphillips
coreyphillips / gist:f27025c86b838cc5372c
Last active July 19, 2022 20:04 — forked from mhawksey/gist:1276293
Google App Script to insert data to a google spreadsheet via POST or GET - updated version as per https://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
Verifying my Blockstack ID is secured with the address 1En774vaDxAey7PaM9sn5FoJb6iP18aKyV https://explorer.blockstack.org/address/1En774vaDxAey7PaM9sn5FoJb6iP18aKyV
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-4.0.1_Setup.md
Last active March 12, 2019 16:44
How To Add bitcoinjs-lib Version 4.0.1 To A React Native Project

Newer version available. Please see 4.0.2

How To Add bitcoinjs-lib Version 4.0.1 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@4.0.1 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack"
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-4.0.2_Setup.md
Last active March 12, 2019 16:45
How To Add bitcoinjs-lib Version 4.0.2 To A React Native Project

Newer version available. Please see 4.0.3

How To Add bitcoinjs-lib Version 4.0.2 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@4.0.2 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add base-x@3.0.4 && cd ../../"
### Keybase proof
I hereby claim:
* I am coreyphillips on github.
* I am coreyphillips (https://keybase.io/coreyphillips) on keybase.
* I have a public key ASBe0KXIw_GNtgCJGDPO9mp_ayNa37mhGAOGc8ENRvZfRwo
To claim this, I am signing this object:
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-4.0.3_Setup.md
Last active May 30, 2019 18:52
How To Add bitcoinjs-lib Version 4.0.3 To A React Native Project

Newer version available. Please see 5.0.5

How To Add bitcoinjs-lib Version 4.0.3 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@4.0.3 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add base-x@3.0.4 && cd ../../"
@coreyphillips
coreyphillips / Moonshine_Altcoin_Implementation_Guide.md
Last active March 13, 2020 17:15
Moonshine Altcoin Implementation Guide

Altcoin Support

Please be aware and take note that my primary focus is on expanding the core functionality of this wallet and not on adding altcoins. However, for those wishing to add a specific altcoin for personal use, this guide was created so that you may fork off in a proper fashion. If you have any questions I'm always happy to help so don't hesitate to reach out.

Feel free to use the following commit as a reference to what changes need to be made: https://github.com/coreyphillips/moonshine/commit/0eeecdeea7a9004bacf6db369cec61bc2c930962

Files that will need to be modified/updated for this process:

@coreyphillips
coreyphillips / rn-bitcoinjs-lib-5.0.5_Setup.md
Last active August 7, 2019 13:32
How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project

Newer version available. Please see 5.1.1

How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@5.0.5 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add base-x@3.0.4 && cd ../../"
@coreyphillips
coreyphillips / bitcoinjs-lib_Setup.md
Last active April 25, 2024 22:07
How To Add bitcoinjs-lib To A React Native v0.60+ Project

How To Add bitcoinjs-lib To A React Native v0.60+ Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib ecpair @bitcoinerlab/secp256k1 react-native-randombytes buffer readable-stream
  • yarn add --dev rn-nodeify
  • cd ios && pod install && cd ..
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm,process --hack"

Install any remaining dependencies and run postinstall.

@coreyphillips
coreyphillips / apkdiff.py
Last active July 19, 2022 20:05
Compares two apk files for differences.
import sys
from zipfile import ZipFile
#Source: https://github.com/DrKLO/Telegram/blob/master/apkdiff.py
def compareFiles(first, second):
while True:
firstBytes = first.read(4096);
secondBytes = second.read(4096);
if firstBytes != secondBytes: