I hereby claim:
- I am sserrano44 on github.
- I am sserrano44 (https://keybase.io/sserrano44) on keybase.
- I have a public key whose fingerprint is 5DA8 0421 12E8 08C7 F9DF 3447 A0D1 CEA3 FBAD 4EAD
To claim this, I am signing this object:
""" | |
Co-hort analysis following http://www.gregreda.com/2015/08/23/cohort-analysis-with-python/ | |
""" | |
import datetime | |
import sys | |
import pandas as pd | |
import numpy as np |
conda create -n mypython3 python=3 |
import asyncio | |
import websockets | |
import base64 | |
import json | |
TOPIC = 'wss://api.exchange.ripio.com/ws/v2/consumer/non-persistent/public/default/orderbook_btc_usdc/suscription-1' | |
async def orderbook_consumer(): | |
async with websockets.connect(TOPIC) as websocket: | |
while True: | |
msg = await websocket.recv() | |
data = json.loads(msg) |
transfercheck() { | |
if [ $# -eq 0 ]; | |
then echo -e "No arguments specified. Usage:\n transfercheck /tmp/test.md\ncat /tmp/test.md | transfercheck test.md"; | |
return 1; | |
fi | |
# write to output to tmpfile for progress bar | |
tmpfile=$( mktemp -t transferXXX) | |
if tty -s; | |
then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); | |
curl -X PUT --progress-bar --upload-file $1 https://transfer.sh/$basefile/virustotal >> $tmpfile; |
# on /etc/rc.local before the line with ‘exit 0’ add: | |
fallocate -l 4G /mnt/swapfile | |
chmod 600 /mnt/swapfile | |
mkswap /mnt/swapfile | |
swapon /mnt/swapfile |
#old images | |
docker images -q |xargs docker rmi | |
#old volumes | |
docker volume ls -qf dangling=true | xargs -r docker volume rm |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG/MacGPG2 v2.0.22 (Darwin) | |
Comment: GPGTools - http://gpgtools.org | |
mQENBFFhwUkBCADsKeizMlM8g9kOrGpWZp3RxF9Fa9TjVa4qCx1XxCtfiYEJX952 | |
1Mk55Bt4+LHOr4Nb2AFKm36b3f7adv0xoWSdKWOtRNKxMKbiJaMIN7bZMqsFyXR5 | |
UfUE9q3HUuG7c0wRvaXqhafXcwp2AHSAJvx1/h/iOnpYedf0+REq7znP/WG4cgN9 | |
h0gMS+l/Lmq50eBsTxdYaHEikgigtVzHjL7M2asnyKi/EtfkOcG84CJPlW9zd38s | |
UbyBe8VUOPJvswLct564e035akwQH0saFUrYLDHT2tZjFfbkhMVPJjOcykPQJahU | |
eGoSK0quyhL4bajxm0kks5d1QnwAv3OIAWUNABEBAAG0L3NlYmFzdGlhbiBzZXJy |
I hereby claim:
To claim this, I am signing this object:
Verifying that +sserrano44 is my openname (Bitcoin username). https://onename.io/sserrano44 |
import webapp2 | |
from webapp2_extras import jinja2 | |
from webapp2_extras import sessions | |
import settings | |
class BaseHandler(webapp2.RequestHandler): | |
def dispatch(self): | |
# Get a session store for this request. |