Skip to content

Instantly share code, notes, and snippets.

Aido aido

Block or report user

Report or block aido

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@aido
aido / check_web_update.sh
Last active May 19, 2016
Using only Bash built-ins send an IFTTT notification when a webpage is updated
View check_web_update.sh
#!/bin/bash
declare -r CHECK_HOST=www.mtgox.com
declare -r CHECK_RESOURCE=/
declare -r IFTTT_EVENT=MtGOX
declare -r IFTTT_KEY=<CHANGE ME>
declare -r IFTTT_HOST=maker.ifttt.com
declare -r IFTT_RESOURCE=/trigger/${IFTTT_EVENT}/with/key/${IFTTT_KEY}
declare -r IFTT_REQUEST="HEAD ${IFTT_RESOURCE} HTTP/1.1\r\nHost: ${IFTTT_HOST}\r\nConnection: Close\r\n\r\n"
View gist:b0cf3034831f625eff8b
00 AKAKAKAKAKAKAKAKAKAKAKHDKAKAKAKAKAKAKAKAKAKAKABJAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAK
01 AKAKAKAKAKAKAKAKAKAKBJKAKAKAKAKAKAKAKAKAKAKAJBAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAK
02 AKAKAKAKAKAKAKAKAKAKAKICKAKAKAKAKAKAKAKAKAKAGEAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAK
03 AKAKAKAKAKAKAKAKAKAKAKJBKAKAKAKAKAKAKAKAKAKAGEAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAK
04 AKAKAKAKAKAKAKAKAKAKAKHDKAKAKAKAKAKAKAKAKAKAICAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAK
05 A
View Swiss Army Debug Helper output
Tick: 3
??.??.??(?,?)??:??:255 MEZ 0,0 0 p(0-0:0) s(6-4:0) m(0-0:0) h(0-0:0) wd(0-0:0) D(0-0:0) M(0-0:0) Y(0-0:0) 0,0,0,255
Clock state: useless
Tick: 7
??.??.??(?,?)??:??:255 MEZ 0,0 0 p(30-0:3) s(6-4:0) m(0-0:0) h(0-0:0) wd(0-0:0) D(0-0:0) M(0-0:0) Y(0-0:0) 0,0,0,255
Clock state: useless
Tick: 9
??.??.??(?,?)??:??:255 MEZ 0,0 0 p(60-4:7) s(4-4:0) m(0-0:0) h(0-0:0) wd(0-0:0) D(0-0:0) M(0-0:0) Y(0-0:0) 0,0,0,255
Clock state: useless
Tick: 13
@aido
aido / DER_test
Last active Aug 29, 2015
A DER decode test for OpenSSL and PolarSSL
View DER_test
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <openssl/ec.h>
#include <openssl/ecdsa.h>
#include <openssl/obj_mac.h>
#include <polarssl/entropy.h>
#include <polarssl/ctr_drbg.h>
#include <polarssl/pk.h>
@aido
aido / 0_reuse_code.js
Created Feb 8, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@aido
aido / _startgain.py
Created Jun 16, 2013
A simple start gain bot. Adjust START_PRICE and START_VOLUME to your needs. The file can be reloaded after editing without restarting goxtool by simply pressing the l key. An update of prof7bit's original _stoploss.py at https://gist.github.com/prof7bit/5437131 to buy entire USD (or EUR etc.) balance when START_VOLUME = 0
View _startgain.py
"""
a simple start gain bot.
adjust START_PRICE and START_VOLUME to your needs.
The file can be reloaded after editing without
restarting goxtool by simply pressing the l key.
"""
import strategy
import goxapi
# pylint: disable=C0301
@aido
aido / Polipo-adblocker.sh
Created Jun 12, 2013
Use wget and sed to update Polipo forbidden file from http://easylist-downloads.adblockplus.org/easylist.txt
View Polipo-adblocker.sh
#!/bin/bash +xv
declare WGET=/usr/bin/wget
declare SED=/bin/sed
declare INVOKE=/usr/sbin/invoke-rc.d
#declare TORIFY=/usr/bin/torify
#declare TORRESOLVE=/usr/bin/tor-resolve
declare -i EXIT_VALUE=0
@aido
aido / _talib.py
Created May 28, 2013
A simple TA bot for goxtool Mt.Gox trading bot framework making use of the TA-Lib library (http://ta-lib.org) and the Cython based wrapper ta-lib (https://github.com/mrjbq7/ta-lib).
View _talib.py
"""
_talib.py
"""
import numpy as np
import talib
import datetime
import strategy
import goxapi
@aido
aido / _panic.py
Last active Dec 17, 2015
A interactive panic bot for goxtool Mt.Gox trading bot framework. Keypress 'b' to execute a buy marketorder with half of local currency balance. Keypress 's' to sell half of BTC balance. Keypress 'v' to execute a buy marketorder with entire local currency balance. Keypress 'a' to sell entire BTC balance. Keypress 'c' to cancel all open orders.
View _panic.py
"""
a simple panic bot.
The file can be reloaded after editing without
restarting goxtool by simply pressing the l key.
"""
import strategy
import goxapi
class Strategy(strategy.Strategy):
"""a simple panic bot"""
@aido
aido / _stoploss.py
Last active Aug 16, 2017 — forked from prof7bit/_stoploss.py
A simple stop loss bot. Adjust STOP_PRICE and STOP_VOLUME to your needs. The file can be reloaded after editing without restarting goxtool by simply pressing the l key. An update of prof7bit's original _stoploss.py at https://gist.github.com/prof7bit/5437131 to sell entire BTC balance when STOP_VOLUME = 0
View _stoploss.py
"""
a simple stop loss bot.
adjust STOP_PRICE and STOP_VOLUME to your needs.
The file can be reloaded after editing without
restarting goxtool by simply pressing the l key.
"""
import strategy
import goxapi
# pylint: disable=C0301
You can’t perform that action at this time.