Skip to content

Instantly share code, notes, and snippets.

View cody0704's full-sized avatar
🤮
wubba lubba dub dub

Cody Chen cody0704

🤮
wubba lubba dub dub
View GitHub Profile
@cody0704
cody0704 / bitcoinjs-lib_Setup.md
Created February 15, 2024 00:26 — forked from coreyphillips/bitcoinjs-lib_Setup.md
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 @bitcoin-js/tiny-secp256k1-asmjs 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.

@cody0704
cody0704 / node_exporter
Last active December 7, 2022 00:58
Grafana + Prometheus + Node_Exporter
#!/bin/sh
# PROVIDE: node_exporter
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# node_exporter_enable (bool): Set to NO by default.
@cody0704
cody0704 / caddy1.service
Last active May 11, 2020 15:56
Systemd Caddy Config
[Unit]
Description=Caddy HTTP/2 web server
Documentation=https://caddyserver.com/docs
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service
[Service]
Restart=on-abnormal
; User and group the process will run as.
@cody0704
cody0704 / Cody.itermcolors
Created November 22, 2019 01:30
zshTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>