I hereby claim:
- I am dsldsl on github.
- I am danlevine (https://keybase.io/danlevine) on keybase.
- I have a public key ASBsY5cT8sV2j3k5d9KZw8HSFDiTd8EXJHJcEcwhxCCPiwo
To claim this, I am signing this object:
import datetime | |
import requests | |
last_ts = 0 | |
all_sales = [] | |
try: | |
# loop through 999 records at a time until empty | |
while True: | |
query = f''' |
"""An example of a cache decorator.""" | |
import json | |
from functools import wraps | |
from redis import StrictRedis | |
redis = StrictRedis() | |
def cached(func): |
## requirements: | |
# bitmex-websocket==0.2.63 | |
# websocket-client==0.53.0 | |
## | |
import websocket | |
from bitmex_websocket import Instrument | |
from bitmex_websocket.constants import InstrumentChannels | |
channels = [ |
## STEP 1 - CREATE A WALLET WITH CURRENT PRIVATE KEY ## | |
# run this command , and it will give you a password | |
cleos wallet create -n mywallet | |
# run this command, and enter the wallet password | |
cleos wallet unlock -n mywallet | |
# run this command, and it will add your current EOS private key to the wallet so you can then change your key pair | |
# another note -— when you start a command with a space like i do below, it doesn’t save the command in the system |
I hereby claim:
To claim this, I am signing this object:
from twilio.rest import TwilioRestClient | |
from common.common_utils import prepare_phone_number | |
import hashlib | |
from django.core.cache import cache | |
ipns = IncomingCallMetadataLog.objects.all() | |
for x in ipns: | |
cache_key = "%s_%s" % ("spmd", hashlib.md5(x.from_number).hexdigest()) | |
cache.delete(cache_key) |
var http = require('http'); | |
module['exports'] = function recieveHttp (hook) { | |
var phoneScoreHook = hook.open('https://proapi.whitepages.com/2.1/phone.json?api_key=42b0239a578b71df400634c37632694e&phone_number=4156371468'); | |
hook.debug('hook2 params' + hook.params.From); | |
hook2.on('data', function(chunk){ | |
hook.debug('hook2 got data' + chunk.toString()); | |
var data = chunk; | |
hook.debug("spam index = "+data.results[0].reputation.spam_index); |
module['exports'] = function echoHttp (hook) { | |
hook.debug("Debug messages are sent to the debug console"); | |
hook.debug(hook.params); | |
hook.debug(hook.req.path); | |
hook.debug(hook.req.method); | |