Skip to content

Instantly share code, notes, and snippets.

{
"ape1": "XXXX ",
"apelCony": "XXXXX",
"apelCsda": "XXXXXX",
"apelMadre": "XXXXX",
"apelPadre": "XXXXXXX",
"deptNaci": "LA PAZ",
"deptoDomi": "LA PAZ",
"dui": "00380553-0",
"estaCdno": "1",
@joshuarossi
joshuarossi / reset_password.js
Created January 16, 2019 21:09
How to reset password
// Here is location the link takes you to
const rawParams = "?resetPass=true&verifycode=71849a34-d60e-4c29-9f77-2cf008756ab3&d1=aHR0cHM6Ly9hcGlsYXVyZWF0ZWRjLmFscGhhcG9pbnQuY29tOjg0NDMvQVAv&UserId=6"
const queryParams = parse(search); // This step may vary but you are just getting some query params
const {UserId, verifycode, d1} = queryParams; // Get these specific query params
// Put them together into the payload of your request
const params = {
PendingCode: verifycode,
@joshuarossi
joshuarossi / asyncMiddleware.js
Created February 22, 2018 03:44
Async Middleware, is this ok to do?
export const AsyncMiddleware = store => next => async action => {
switch (action.type) {
case FETCH:
const response = await fetch(action.payload)
dispatch({type: WEB_RESPONSE, payload: response})
break;
default:
break;
}
next(action)
[{"RequestingUser":1,"urtTicketId":"he0KQVLNCkCJED3/QAM7rg==","descriptorId":"VDoMIyA8UU2/NMlAJI0zuA==","resultStatus":"SuccessComplete","reportExecutionStartTime":"2017-11-06T22:00:01Z","reportExecutionCompleteTime":"2017-11-06T22:00:01Z","reportOutputFilePathname":"","reportDescriptiveHeader":"TradeActivity|Hourly|2017-11-06T21:00:00.000Z|2017-11-06T22:00:00.000Z|2017-11-03T15:31:20.000Z|2017-11-06T22:00:01.370Z|0.00000 seconds"},{"RequestingUser":1,"urtTicketId":"/Lgptgz/+USvUd+zS3MxqQ==","descriptorId":"YzeWMIVUM0eUQy6OHj7N/A==","resultStatus":"SuccessComplete","reportExecutionStartTime":"2017-11-06T22:00:01Z","reportExecutionCompleteTime":"2017-11-06T22:00:01Z","reportOutputFilePathname":"","reportDescriptiveHeader":"TradeActivity|Hourly|2017-11-06T21:00:00.000Z|2017-11-06T22:00:00.000Z|2017-11-03T15:31:29.000Z|2017-11-06T22:00:01.323Z|0.00000 seconds"},{"RequestingUser":1,"urtTicketId":"GZDM51igNUyRE2e9O8ct2g==","descriptorId":"UNpNezMKlUC68vhNjMNlUg==","resultStatus":"SuccessComplete","reportExecutionS

Keybase proof

I hereby claim:

  • I am joshuarossi on github.
  • I am joshrossi (https://keybase.io/joshrossi) on keybase.
  • I have a public key ASAlyJSlETSCCbIZLMGSniP-E1-cbh-eJfyUxfx_CwdcRQo

To claim this, I am signing this object:

const ws = require('ws')
const crypto = require('crypto')
const bfx = new ws('wss://api.bitfinex.com/ws/2')
// Replace with your own api key and secret
let api_key = ''
let api_secret = ''
// Ensure your nonce is always increasing
let nonce = Date.now()
1482536279817 - {"exchange":"bitfinex","type":"update","side":"ask","price":920.89,"size":19.22}
1482536279822 - {"exchange":"bitfinex","type":"update","side":"ask","price":920.99,"size":6.53}
1482536280245 - {"exchange":"poloniex","type":"remove","side":"bid","price":"915.76"}
1482536280245 - {"exchange":"poloniex","type":"update","side":"bid","price":"915.76","size":"4.53173139"}
1482536280246 - {"exchange":"poloniex","type":"update","side":"bid","price":"915.76","size":"2.04024841"}
1482536280246 - {"exchange":"poloniex","type":"update","side":"bid","price":"915.76","size":"2.48143668"}
1482536280246 - {"exchange":"poloniex","type":"update","side":"bid","price":"915.76","size":"1.17052408"}
1482536280246 - {"exchange":"poloniex","type":"update","side":"bid","price":"915.76","size":"3.35116106"}
1482536280249 - {"exchange":"poloniex","type":"update","side":"bid","price":"915.76","size":"0.86972432"}
1482536280250 - {"exchange":"poloniex","type":"update","side":"bid","price":"915.76","size":"3.66200706"}
@joshuarossi
joshuarossi / gp_test.md
Last active October 14, 2016 21:17
Grenache Overview

Overview

DHT based high-performance microservices framework, by Bitfinex

https://github.com/bitfinexcom/grenache

Features

  • Decentralised / Distributed architecture
  • Easy Bootstrap
  • Indefinite scalability and shapes
  • High-Performance
def order_new
api_user, payload, api_key = Api.request(request, true, true)
Api.ensure_key payload, 'symbol', :string # The name of the symbol (see `/symbols`).
Api.ensure_key payload, 'amount', :decimal # Order size: how much to buy or sell.
Api.ensure_key payload, 'price', :price # Price to buy or sell at. May omit if a market order.
Api.ensure_key payload, 'side', :string # Either "buy" or "sell".
Api.ensure_key payload, 'type', :string # Either "market" / "limit" / "stop" / "trailing-stop".
I20160224-13:31:51.502(-5)? { user_agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36',
I20160224-13:31:51.502(-5)? language: 'en-US',
I20160224-13:31:51.502(-5)? color_depth: 24,
I20160224-13:31:51.502(-5)? resolution: [ 1280, 800 ],
I20160224-13:31:51.502(-5)? available_resolution: [ 1280, 796 ],
I20160224-13:31:51.502(-5)? timezone_offset: 300,
I20160224-13:31:51.502(-5)? session_storage: 1,
I20160224-13:31:51.502(-5)? local_storage: 1,
I20160224-13:31:51.502(-5)? indexed_db: 1,
I20160224-13:31:51.502(-5)? open_database: 1,