This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cmath> | |
class AvellanedaStoikov { | |
double sigma, k, gamma, T; /* volatilty, intensity, risk aversion, terminal time */ | |
double q = 0.0; /* inventory */ | |
public: | |
void init_params(double, double, double, double); | |
double reservation_price(double, double); | |
double optimal_spread(double); | |
double quote_bid_price(double, double); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DISPLAY=:0 | |
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus | |
export XAUTHORITY=/home/username/.Xauthority | |
BAT0=$(cat /sys/class/power_supply/BAT0/capacity) | |
if [[ $BAT0 -lt 10 ]];then | |
/usr/bin/notify-send -u critical "=== LOW BATTERY ===" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
webservEnum() { | |
# If HTTP/HTTPS -> nikto & Gobuster | |
if [[ $(grep -w 80/tcp enum/nmap/init.nmap) ]]; then | |
nikto -h http://$1 -o enum/nikto80.txt | |
gobuster -u http://$1 -w /usr/share/wordlists/dirb/common.txt > enum/gobust80.c 2>/dev/null | |
fi | |
if [[ $(grep -w 8080/tcp enum/nmap/init.nmap) ]]; then |