Skip to content

Instantly share code, notes, and snippets.

View grundyoso's full-sized avatar

Richard Grundy grundyoso

View GitHub Profile
curl 'https://dev-api.passninja.com/public/demo/make-pass' -v \
-H 'origin: https://passninja.com' \
-H 'accept-encoding: gzip, deflate, br' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' \
-H 'content-type: application/json' \
-H 'accept: application/json, text/plain, */*' \
-H 'referer: https://passninja.com/demo/make-pass' \
-H 'authority: dev-api.passninja.com' \
--data-binary '{"googlePass":{"kind":"walletobjects#loyaltyObject","id":"3175895186863635130.PassNinjaDemoLoyaltyClass.TODO","classId":"3175895186863635130.PassNinjaDemoLoyaltyClass","version":"1","state":"active","hasUsers":false,"smartTapRedemptionValue":"3175895186863635130.PassNinjaDemoLoyaltyClass.TODO","classReference":{"kind":"walletobjects#loyaltyClass","id":"3175895186863635130.PassNinjaDemoLoyaltyClass","version":"1","issuerName":"Ninja Fashionista","messages":[{"kind":"walletobjects#wall
2018-04-23 19:31:49.709414-0400 Test[3883:1686522] ::centralManagerDidUpdateState supports 5
2018-04-23 19:31:49.709608-0400 Test[3883:1686522] CBCentralManagerStatePoweredOn
2018-04-23 19:31:49.824330-0400 Test[3883:1686522] ::discovered peripheral [TV] UN40J5500 DEC070ED-D838-3874-5045-7720DBB5AC91
2018-04-23 19:31:49.828085-0400 Test[3883:1686522] ::discovered peripheral (null) EBE95E9E-2424-CDB9-B755-D7133E0D3C3E
2018-04-23 19:31:49.839243-0400 Test[3883:1686522] ::discovered peripheral (null) 48170FA4-5A18-B7AF-C1AD-CF510EC9EF97
2018-04-23 19:31:49.847880-0400 Test[3883:1686522] ::discovered peripheral Grundyoso 6ABC677F-0DD6-C6BC-6E51-2D0A5C992FAA
2018-04-23 19:31:50.624800-0400 Test[3883:1686522] ::discovered peripheral Bose AE2 SoundLink 4E6F485F-B6CE-5F7D-8B0F-BB176F66F9F9
2018-04-23 19:31:51.369745-0400 Test[3883:1686522] ::discovered peripheral Lockitron Bridge 788742AA-971B-304D-A712-0D766CBEEACC
2018-04-23 19:31:52.492112-0400 Test[3883:1686522] ::discovered peripheral 958e76ea 72313212-82C7-6094
Name: Luke Martin
E-Mail: crowdco.agency@gmail.com
Subject: ACR122U | NFC Contactless Smart Card Reader
What's on your mind?: Hi,
Note: my correct email is luke@crowdco.agency but your form is not allowing it to be entered.
We have developed a standalone kiosk for a retail client, including an app that we have developed which provides services to the retailers customers (such as checking their account). The app is iOS; and the kiosk is running an iPad managed via an MDM platform.
@grundyoso
grundyoso / logcat
Created July 5, 2017 21:38
Fresh launch of SmartCart app with hardcoded IP address... detects price tags... I enter admin view and click GET WIFI CREDS and GET SW VERSION
07-05 17:36:54.847 22443-22443/? E/Zygote: v2
07-05 17:36:54.847 22443-22443/? I/libpersona: KNOX_SDCARD checking this for 10239
07-05 17:36:54.847 22443-22443/? I/libpersona: KNOX_SDCARD not a persona
07-05 17:36:54.848 22443-22443/? E/Zygote: accessInfo : 0
07-05 17:36:54.853 22443-22443/? W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[1], Con:u:r:zygote:s0 SPD:SEPF_SECMOBILE_7.0_0006 RAM:SEPF_SECMOBILE_7.0_0005, [-1 -1 0 1 0 1]
07-05 17:36:54.853 22443-22443/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.flomio.smartcart
07-05 17:36:54.856 22443-22443/? I/art: Late-enabling -Xcheck:jni
07-05 17:36:54.869 22443-22443/? D/TimaKeyStoreProvider: TimaSignature is unavailable
07-05 17:36:54.869 22443-22443/? D/ActivityThread: Added TimaKeyStore provider
07-05 17:36:54.985 22443-22443/com.flomio.smartcart W/System: ClassLoader referenced unknown path: /data/app/com.flomio.smartcart-1/lib/arm64
"use strict";
/* -------------------------------- REQUIRES -------------------------------- */
Object.defineProperty(exports, "__esModule", { value: true });
const crypto = require("crypto");
const util = require("util");
const bleno = require("bleno");
const fs = require('fs');
const childProcess = require('child_process')
May 17 17:31:04 raspberrypi node[13236]: epc: 'E28011606000020528F904FA' },
May 17 17:31:04 raspberrypi node[13236]: { tagType: 'ISO 18000-6C Auto Detect',
May 17 17:31:04 raspberrypi node[13236]: epc: 'E28011606000020528F95002' },
May 17 17:31:04 raspberrypi node[13236]: { tagType: 'ISO 18000-6C Auto Detect',
May 17 17:31:04 raspberrypi node[13236]: epc: 'E28011606000020528F904F5' },
May 17 17:31:04 raspberrypi node[13236]: { tagType: 'ISO 18000-6C Auto Detect',
May 17 17:31:04 raspberrypi node[13236]: epc: 'E28011606000020528F95004' },
May 17 17:31:04 raspberrypi node[13236]: { tagType: 'ISO 18000-6C Auto Detect',
May 17 17:31:04 raspberrypi node[13236]: epc: 'E28011606000020528F8ECF5' } ]
May 17 17:31:04 raspberrypi node[13236]: Tag Found: ISO 18000-6C Auto Detect-E28011606000020528F95004
[
{
"serialNumber": "40110",
"paystationName": "NYC Pilot 1 - 10",
"settingName": "NYC Pilot 1",
"regionName": "NYC",
"ticketNumber": "100001",
"purchasedDate": "2014-08-13T19:29:20Z",
"expirationDate": "2014-08-13T19:29:20Z",
"paymentType": "1",
pi@raspberrypi:~/Documents/Visa $ npm install node-hid
[ ....] - extract:nan: verb gentlyRm don't care about contents; nuking /home/pi[ ....] | extract:nan: verb gentlyRm don't care about contents; nuking /hom[ ....] - extract:nan: verb gentlyRm don't care about contents; nuking /ho[ ....] | extract:nan: verb gentlyRm don't care about contents; nuking /[ ....] \ extract:nan: verb gentlyRm don't care about contents; nuking[ [ [ [ [ [ [ [ [ [ [ [ [ [ ....] \ extract:nan: verb gentlyRm don't care about contents; nuking /home/pi/nod[ ....] \ extract:nan: verb gentlyRm don't care about contents; nuking /home/pi/n[ ....] / extract:nan: verb gentlyRm don't care about contents; nuking /home/pi
> node-hid@0.5.4 install /home/pi/node_modules/node-hid
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/node-hid/node-
@grundyoso
grundyoso / node-hid log
Created April 15, 2017 12:24
Crash and burn
pi@raspberrypi:~/Documents/Visa $ npm install node-hid
> node-hid@0.5.4 install /home/pi/node_modules/node-hid
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/node-hid/node-hid/releases/download/0.5.4/HID-v0.5.4-node-v51-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-hid@0.5.4 and node@7.9.0 (node-v51 ABI) (falling back to source compile with node-gyp)
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
const express = require('express');
const http = require('http');
const url = require('url');
const WebSocket = require('ws');
const app = express();
app.use(function (req, res) {
res.send({ msg: "hello" });
});