Skip to content

Instantly share code, notes, and snippets.

@kukushi
kukushi / clean_fasd.py
Created June 21, 2019 14:31
Python script cleaning up fasd storage
#!/usr/bin/env python3
import os
import time
import argparse
def main(args):
"""
Rule:
@kukushi
kukushi / Triangular-Arbitrage.py
Last active July 28, 2021 15:11
Binance Triangular Arbitrage
import requests
import datetime
import operator
host = 'https://api.binance.com'
priceURL = host + '/api/v3/ticker/price'
priceResponse = requests.get(priceURL)
priceResponseJSON = priceResponse.json()
# {'symbol': 'ETHBTC', 'price': '0.07608700'}: 1 ETH = 0.0760 BTC
@kukushi
kukushi / .zpreztorc
Created November 8, 2015 14:20
zpreztorc file
#
# Sets Prezto options.
#
zstyle ':prezto:*:*' color 'yes'
# Set the Zsh modules to load (man zshmodules).
zstyle ':prezto:load' pmodule \
'environment' \
@kukushi
kukushi / .zshrc
Last active November 7, 2015 08:29
.zshrc for oh-my-zsh
# Path to your oh-my-zsh installation.
export ZSH=/Users/kukushi/.oh-my-zsh
ZSH_THEME="robbyrussell"
plugins=(git)
# User configuration
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"