Skip to content

Instantly share code, notes, and snippets.

@thraizz
thraizz / README.md
Last active March 26, 2021 15:11
Freqtrade Backtest: 365 days (2020/2021)

Freqtrade Backtest w. Binance Data for all Coins (2020/02/18-2021/02/18)

What is this?

These are the results of a rather long backtest for all coins listed on binance that are tradable to BTC. The first three strategies are cut off, as my terminal buffer was too small to hold all data. All strategies are taken from the freqtrade strategy repository and are not adapted in any way.

Configuration

Some of the more important options are:

{
 "max_open_trades": 20,
@thraizz
thraizz / Document.test.js
Created January 7, 2021 09:49
Vue Testing Example with Jest and Cypress
import { WikiDocument } from '@/classes/Document.js'
import { encodeUnicode } from '@/services/helpers/dataFormatter'
const FIRST_DOCUMENT = {
document: {
approval_state: false,
data: 'This is the first document.',
id: 'as9hd98ktp7g3',
namespace: ':FirstNamespace',
rid: 'as98dfgy',
@thraizz
thraizz / .xbindkeysrc
Created December 30, 2020 14:15
XF86 media key bindings using xbindkeys
"pactl set-sink-volume @DEFAULT_SINK@ -1000"
XF86AudioLowerVolume
"pactl set-sink-volume @DEFAULT_SINK@ +1000"
XF86AudioRaiseVolume
"playerctl play-pause"
m:0x0 + c:208
XF86AudioPlay
"playerctl play-pause"
m:0x0 + c:209
XF86AudioPause
@thraizz
thraizz / bash.md
Created November 12, 2020 12:04
Bash keyboard shortcuts

How-to: Bash Keyboard Shortcuts

Moving the cursor:

` Ctrl + a Go to the beginning of the line (Home) Ctrl + e Go to the End of the line (End) Ctrl + p Previous command (Up arrow) Ctrl + n Next command (Down arrow) Alt + b Back (left) one word Alt + f Forward (right) one word Ctrl + f Forward one character

@thraizz
thraizz / README.md
Last active November 14, 2020 15:14
Parse files in directory to a PlantUML Mindmap

Parse file structure to PlantUML

Call this python script with python parse.py to get the diagram for the current diagram or with python parse.py "./directory" to get it for ./directory.

@thraizz
thraizz / colors.vim
Created October 12, 2020 09:20
💜 dotfiles for reddit 💜
" ==============================================================================
" Name: One Half Dark
" Author: Son A. Pham <[email protected]>
" Url: https://github.com/sonph/onehalf
" License: The MIT License (MIT)
"
" A dark vim color scheme based on Atom's One. See github.com/sonph/onehalf
" for installation instructions, a light color scheme, versions for other
" editors/terminals, and a matching theme for vim-airline.
" ==============================================================================
@thraizz
thraizz / vimrc.vim
Created October 9, 2020 09:33
Awesome Vim: My vim documented configuration
set nocompatible " be iMproved, required
set noshowmode
set shell=/bin/zsh
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
@thraizz
thraizz / nginx.conf
Last active April 20, 2021 09:31
Minimal nginx.conf for reverse proxy usage
events {
}
http {
error_log /etc/nginx/error_log.log debug;
client_max_body_size 20m;
proxy_cache_path /etc/nginx/cache keys_zone=one:500m max_size=1000m;
server {
listen 80 default_server;
listen [::]:80 default_server;
@thraizz
thraizz / docker-compose.yml
Created September 1, 2020 09:11
Minimal docker-compose.yml for starting NGINX as a proxy for a wordpress blog.
services:
nginx:
image: nginx:latest
container_name: production_nginx
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/
- ./nginx.conf:/etc/nginx/nginx.conf
- ./nginx/:/etc/nginx/
ports:
- 80:80
@thraizz
thraizz / docker-compose.yml
Last active February 21, 2021 14:21
NGINX Reverse Proxy + Docker: Host it yourself
version: '3'
services:
nginx:
image: nginx:latest
container_name: production_nginx
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/
- ./nginx.conf:/etc/nginx/nginx.conf
- ./nginx/:/etc/nginx/
- ./nginx/cache/:/etc/nginx/cache