Skip to content

Instantly share code, notes, and snippets.

View snapo's full-sized avatar

snapo

View GitHub Profile

FXCM Webinar

Algo Trading: REST API & Python Wrapper

Tick Data, Historical Data, Real-Time Data, Backtesting, Orders

Dr. Yves J. Hilpisch | The Python Quants GmbH

Online, 04. April 2018

Intermediate Python for Finance Training

This is the Gist for Day 2 of the Intermediate Python for Finance Training in London, 29. November 2017

Agenda

Module 3 — pandas

apt-get -y update && apt-get -y upgrade
wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh
bash Anaconda3-5.3.1-Linux-x86_64.sh
apt-get -y install python3-pip gcc g++
apt-get -y install npm nodejs
npm install -g configurable-http-proxy
pip3 install setuptools
pip3 install wheel
pip3 install --upgrade pip wheel
apt-get install python3.6-dev libevent-dev
sudo apt-get -y update
sudo apt-get -y install software-properties-common
sudo add-apt-repository ppa:canonical-chromium-builds/stage
sudo apt-get -y update
sudo apt-get -y install chromium-browser
2018/08/20 22:16:08 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161
2018/08/20 22:16:08 [INFO] Go runtime version: go1.10.1
2018/08/20 22:16:08 [INFO] CLI args: []string{"C:\\terraform\\terraform.exe", "apply"}
2018/08/20 22:16:08 [DEBUG] Attempting to open CLI config file: C:\Users\mike\AppData\Roaming\terraform.rc
2018/08/20 22:16:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/08/20 22:16:08 [INFO] CLI command args: []string{"apply"}
2018/08/20 22:16:08 [INFO] command: empty terraform config, returning nil
2018/08/20 22:16:08 [DEBUG] command: no data state file found for backend config
2018/08/20 22:16:08 [DEBUG] New state was assigned lineage "e80c8334-caa0-becb-ab65-ca923bdd288b"
2018/08/20 22:16:08 [INFO] command: backend initialized: <nil>
@snapo
snapo / Example_App.exe.manifest
Created March 21, 2018 10:18 — forked from leeramsay/PSADT-Cheatsheet.ps1
PSADT snippits/cheatsheet
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="Example_App.exe"
type="win32"/>
<description>elevate execution level</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
@snapo
snapo / electrum.html
Created March 14, 2018 16:10 — forked from fransr/electrum.html
Simple port-scan using embed+onerror in Safari to send gui-commands to Electrum 3.0.4 without the need of any CORS-headers
<body>
<style>pre { white-space: inherit }</style>
<pre id="log"></pre>
<div id="ports" style="visibility: hidden; height: 0; width: 0;"></div>
<iframe src="about:blank" name="x" id="x" style="display: none;"></iframe>
</body>
<script>
var electrum = {
logbreak: function() { e = document.createElement('br'); document.getElementById('log').appendChild(e); },
log: function(s) { e = document.createElement('span'); e.innerText = s+" "; document.getElementById('log').appendChild(e); },
@snapo
snapo / alpine-install.sh
Last active April 4, 2018 19:55 — forked from thde/alpine-install.sh
A script to install alpine linux on a dedicated server. Tested on Hetzner, Kimsufi / OVH
#!/bin/sh
set -ex
PATH=/bin:/sbin:/usr/bin:/usr/sbin
KEYMAP="us us"
HOST=alpine
USER=anon
ROOT_FS=ext4
BOOT_FS=ext4
for /F "delims===" %i in ('pip freeze -l') do pip install -U %i
; NASM FUN
; Example 1 - Run code in another direction
push 0
push main
jmp main
call main
call main
call main
call main