Skip to content

Instantly share code, notes, and snippets.

View eciuca's full-sized avatar

Emanuel Ciuca eciuca

View GitHub Profile
@eciuca
eciuca / daytrader-quantticks.txt
Created August 14, 2023 15:15
Theotrade Quantticks in PineScript (no Russell available in TW)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © manu2302
//@version=5
indicator("My script")
t1 = time(timeframe.period, "0930-1600:23456", "America/New_York")
[tickNYSE] = request.security("TICK.NY", timeframe.period, [close])
[tickNASDAQ] = request.security("TICK.NQ", timeframe.period, [close])
[tickSP500] = request.security("TICK.US", timeframe.period, [close])
@eciuca
eciuca / setup_ides.sh
Last active January 12, 2023 12:44
Install IntelliJ IDEA, Visual Studio Code and Eclipse on Amazon Linux 2
# Install Eclipse - https://www.tecmint.com/install-eclipse-ide-in-centos-rhel-fedora/
wget http://ftp.yz.yamagata-u.ac.jp/pub/eclipse/oomph/epp/2020-12/R/eclipse-inst-linux64.tar.gz -P $INSTALL_DIR
tar -xvf $INSTALL_DIR/eclipse-inst-linux64.tar.gz -C $INSTALL_DIR
sudo $INSTALL_DIR/eclipse-installer/eclipse-inst
# Install IntelliJ IDEA
INTELLIJ_VERSION=2022.3.1
echo 'Download IntelliJ IDEA from https://www.jetbrains.com/idea/download/'
rm -rf $HOME/Applications/idea && mkdir -p $HOME/Applications/idea && tar -xzvf $HOME/Downloads/ideaIU-$INTELLIJ_VERSION.tar.gz --strip-components 1 -C $HOME/Applications/idea
# Create launcher in AMZN linux: $ sudo vi /usr/share/applications/idea.desktop
@eciuca
eciuca / setup_workspace.sh
Last active June 29, 2022 08:43
AWS WorkSpaces Amazon Linux 2 Developer tools setup
#!/bin/bash
INSTALL_DIR=/tmp/install/
mkdir -p $INSTALL_DIR
# Prepare yum
echo 'Prepare yum...'
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
sudo rpm -v --import https://yum.corretto.aws/corretto.key
sudo yum-config-manager --add-repo https://yum.corretto.aws/corretto.repo