Skip to content

Instantly share code, notes, and snippets.

View jamesray1's full-sized avatar

James Ray jamesray1

  • Sydney, Australia
View GitHub Profile
@jamesray1
jamesray1 / npm-install
Last active September 30, 2021 04:54
james@james-Streacom  ~  git clone https://github.com/gnosis/MultiSigWallet.git
Cloning into 'MultiSigWallet'...
remote: Counting objects: 5981, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 5981 (delta 16), reused 19 (delta 7), pack-reused 5939
Receiving objects: 100% (5981/5981), 39.37 MiB | 339.00 KiB/s, done.
Resolving deltas: 100% (4607/4607), done.
james@james-Streacom  ~  cd MultiSigWallet
james@james-Streacom  ~/MultiSigWallet   master  npm install
npm WARN deprecated ethereumjs-testrpc@4.1.3: ethereumjs-testrpc has been renamed to ganache-cli, please use this package from now on.
//@version=4
//
// @author jcray
// HOT/Holo Top, Mid and Bottom Cap Bands. Modified originally from Bitcoin Top/Average Cap scripts by aamonkey, and then from the ETH Cap Band script.
//
study("Holo Top, Mid and Bottom Cap Bands [jcray]",shorttitle="HOT Cap Bands [jcr]", overlay=true)
//input
mulTop = input(12.5, title = "Top Multiplier")
mulBottom = input(0.5, title = "Average Multiplier")
//@version=4
//
// @author James Ray [jcray]
// Market cap bands for Uniswap. Modified from Top Cap for BTC by aamonkey.
// Use only with the YTD timeframe.
// See also my other scripts:
// Medium article linking to all of the below: https://james-christopher-ray.medium.com/market-cap-scripts-for-cryptocurrencies-on-trad-30825ec1d5c8
// - Top Cap, Mid Cap and Bottom/Average Cap / market cap bands for Ethereum: bit.ly/ethcaps
// - Top Cap, Mid Cap and Bottom/Average Cap / market cap bands for Holo HOT tokens: bit.ly/hottcmc
//@version=4
//
// @author James Ray [jcray]
// Market cap bands for Decentr. Modified from Top Cap for BTC by aamonkey.
// Use only with the YTD timeframe.
// See also my other scripts:
//
// - Top Cap, Mid Cap and Bottom/Average Cap / market cap bands for Ethereum: bit.ly/ethcaps
// - Top Cap, Mid Cap and Bottom/Average Cap / market cap bands for Holo HOT tokens: bit.ly/hottcmc
// - Top Cap, Mid Cap and Bottom/Average Cap / market cap bands for BTC: bit.ly/BTCcaps
//@version=4
//
// @author jcray
// Bitcoin Top, Mid and Bottom Cap Bands. Modified originally from Bitcoin Top/Average Cap scripts by aamonkey, and then from the ETH Cap Bands script.
//
study("BTC Top, Mid and Bottom Cap Bands [jcray]",shorttitle="BTC Cap Bands [jcr]", overlay=true)
mulTop = input(35, title = "Multiplier")
mulBottom = input(0.5, title = "Average Multiplier")
mulMid = avg(mulTop,mulBottom)
//@version=4
//
// @author jcray
// ETH Top, Mid and Bottom Cap Bands. Modified from Bitcoin Top/Average Cap scripts by aamonkey
//
study("ETH Top, Mid and Bottom Cap Bands [jcray]",shorttitle="ETH Cap Bands [jcr]", overlay=true)
//input
mulTop = input(12.9, title = "Top Multiplier")
mulBottom = input(0.5, title = "Average Multiplier")
% Context: https://ethresear.ch/t/latest-casper-basics-tear-it-apart/151/26,
% https://ethresear.ch/uploads/default/original/1X/fdbebd67c8a9671efabf4e53d6267789cd91d96c.pdf
% https://web.archive.org/save/https://ethresear.ch/uploads/default/original/1X/fdbebd67c8a9671efabf4e53d6267789cd91d96c.pdf
PPCoin
note = "\url{https://web.archive.org/save/https://decred.org/research/king2012.pdf}",
Blackcoin
note = "\url{https://web.archive.org/save/http://blackcoin.co/blackcoin-pos-protocol-v2-whitepaper.pdf}",
@jamesray1
jamesray1 / footer-backup
Last active May 25, 2020 04:41
footer-backup
13:40:45  ✘  jr@fm  ~  ⬡ v8.16.0  4m2s 
$ inxi -Fxxx
System: Host: fm Kernel: 5.4.8-3-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 Desktop: KDE Plasma 5.17.80 tk: Qt 5.14.0
wm: kwin_x11 dm: SDDM Distro: Manjaro Linux
Machine: Type: Desktop Mobo: ASUSTeK model: TUF B450M-PLUS GAMING v: Rev X.0x serial: <root required>
UEFI: American Megatrends v: 1002 date: 03/07/2019
CPU: Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 118222
Speed: 2585 MHz min/max: 2200/3700 MHz boost: enabled Core speeds (MHz): 1: 3366 2: 2760 3: 3054 4: 2619 5: 2541
6: 2509 7: 3906 8: 4101 9: 2397 10: 3231 11: 2851 12: 2849 13: 2886 14: 4163 15: 3346 16: 2832
➜ rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 git:(master) sudo dkms build -m rtl88x2bu -v ${VER}
Error! echo
Your kernel headers for kernel 4.19.80-1-MANJARO cannot be found at
/usr/lib/modules/4.19.80-1-MANJARO/build or /usr/lib/modules/4.19.80-1-MANJARO/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.