Skip to content

Instantly share code, notes, and snippets.

View jamesray1's full-sized avatar

James Ray jamesray1

  • Sydney, Australia
View GitHub Profile
View uniusdcapbands
//@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
View decentr-cap-bands
//@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
View BTCcapindicators
//@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)
View ETHcapindicators
//@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")
View HOT Holo Top Cap, Mid Cap and Bottom Cap Market Cap Bands
//@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")
View my-system-info-manjaro
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
View dkms-build-m-rtl88x2bu.txt
➜ 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.
View install_WiFi_driver_for_Volans_VL_UW120.txt
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
rtl88x2BU_WiFi_linux_v5.1.7_19806.20161025_BTCOEX20161024-3333.tar.gz
rtl88x2BU_WiFi_linux_v5.1.7_19806.20161025_BTCOEX20161024-3333/
rtl88x2BU_WiFi_linux_v5.1.7_19806.20161025_BTCOEX20161024-3333/platform/
rtl88x2BU_WiFi_linux_v5.1.7_19806.20161025_BTCOEX20161024-3333/platform/platform_ops.h
rtl88x2BU_WiFi_linux_v5.1.7_19806.20161025_BTCOEX20161024-3333/platform/platform_ARM_SUNxI_usb.c
View nix-fix-link-works-building-from-source
View ethresearch-holochain
[Holochain](https://holochain.org/) is a framework for distributed apps that has an agent-centric approach. My initial impression of it after browsing its website, reading some of the white paper, some of the [FAQs](https://developer.holochain.org/guide/latest/faq.html), and [this blog post](https://medium.com/holochain/beyond-blockchain-simple-scalable-cryptocurrencies-1eb7aebac6ae), is that it looks better than Ethereum, providing a simpler, more intuitive approach to solving the scalability problem without compromising the scalability-decentralization-throughput trilemma, unless you really need universal consensus / data as an absolute truth, rather than data as a shared perspective. This is also after having been [involved with Ethereum](https://docs.google.com/spreadsheets/d/1Fv8XqLkMjdBkGPkVWfJulJU-5Qv6TSUR4oD5uKSEHW0/edit?usp=sharing) since mid 2017, without compensation.
I made a post about Holochain previously, but it seems that it was deleted, so I'm taking a screenshot [before](https://imgur.com/N