Skip to content

Instantly share code, notes, and snippets.

Corey coreyphillips

  • @ferryman-fin-llc
View GitHub Profile
View gist:d6d36db8b179cb02d3618472d6f65eb7
2020-07-31 14:22:51.494 27080-27080/? I/act_native_dem: Not late-enabling -Xcheck:jni (already on)
2020-07-31 14:22:51.523 27080-27080/? I/act_native_dem: Unquickening 12 vdex files!
2020-07-31 14:22:51.530 27080-27080/? W/act_native_dem: Unexpected CPU variant for X86 using defaults: x86
2020-07-31 14:22:51.624 27080-27080/com.react_native_demo I/act_native_dem: The ClassLoaderContext is a special shared library.
2020-07-31 14:22:51.826 27080-27080/com.react_native_demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-07-31 14:22:51.827 27080-27080/com.react_native_demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-07-31 14:22:51.835 27080-27080/com.react_native_demo D/SoLoader: init start
2020-07-31 14:22:51.835 27080-27080/com.react_native_demo D/SoLoader: adding system library source: /vendor/lib
2020-07-31 14:22:51.837 27080-27080/com.react_native_demo D/SoLoader: adding system library source: /system/lib
2020-07-31 14
View grpc.js
/**
* @fileOverview a low level action to proxy GRPC api calls to and from lnd
* mobile via a native module. This module should not be invokes directly
* from the UI but rather used within other higher level actions.
*/
import "../shim";
import base64 from "base64-js";
import { lnrpc } from "./rpc";
import { toCaps } from "./helpers";
View LndReactModule.m
//
// LndReactModule.m
// lightning
//
// Created by Johan Torås Halseth on 05/11/2018.
//
#import "LndReactModule.h"
#import <React/RCTLog.h>
#import <React/RCTConvert.h>
@coreyphillips
coreyphillips / apkdiff.py
Last active May 6, 2020
Compares two apk files for differences.
View apkdiff.py
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:
@coreyphillips
coreyphillips / bitcoinjs-lib-5.1.1_Setup.md
Last active Jul 31, 2020
How To Add bitcoinjs-lib Version 5.1.1 To A React Native v0.60+ Project
View bitcoinjs-lib-5.1.1_Setup.md

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

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@5.1.1 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 / rn-bitcoinjs-lib-5.0.5_Setup.md
Last active Aug 7, 2019
How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project
View rn-bitcoinjs-lib-5.0.5_Setup.md

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 / Moonshine_Altcoin_Implementation_Guide.md
Last active Mar 13, 2020
Moonshine Altcoin Implementation Guide
View Moonshine_Altcoin_Implementation_Guide.md

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-4.0.3_Setup.md
Last active May 30, 2019
How To Add bitcoinjs-lib Version 4.0.3 To A React Native Project
View rn-bitcoinjs-lib-4.0.3_Setup.md

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 ../../"
View gist:da48ed738426346e4b3ee77fc691694e
### 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.2_Setup.md
Last active Mar 12, 2019
How To Add bitcoinjs-lib Version 4.0.2 To A React Native Project
View rn-bitcoinjs-lib-4.0.2_Setup.md

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 ../../"
You can’t perform that action at this time.