Example of setting up Grafana to read from Firefly. See https://www.reddit.com/r/FireflyIII/comments/nogrl5 for context.
crasher = someBool => { | |
let divZero = Math.min(Infinity ? [] : Infinity, -0) / 0; | |
if (someBool) divZero = -0; | |
return divZero ? 1 : 0 | |
}; | |
crasher(false); | |
for (let i = 0; i < 0x10000; ++i) crasher(false); |
Deezer is unique amongst most of the commercial music streaming services I've attempted to reverse engineer in that many keys are stored (obfuscated) on the client side, including the "DRM" used to encrypt tracks. With some reverse engineering effort, this makes it fairly trivial to implement clients and libraries.
Note that many keys and algorithms are implemented in a strange way - often the ASCII hex form of a key or hash is used rather than the raw bytes.
On the desktop versions of Deezer, logging in requires a Captcha. However, on the mobile versions no Captcha is required. This is because on mobile the app uses a different endpoint to log in, but encrypts the login parameters instead (using a hardcoded key). This details how to obtain the login parameter encryption key (what I call the "gateway key"). The gateway key is a 16 character ASCII uppercase string of numbers and letters.
Note that no keys will be posted here due to fear of DMCA take
Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.
- find a way how to run the same node version on both platforms
tl;dr: AWS mining is against TOC so even if you have credits you will be invoiced and your credits burned. Watch out. These methods only help mitigate or lower the risk of discovery. Share responsibly.
AWS is firewalled af on top of the policy mentioned in tl;dr. A good way is to use a mining proxy with TLS. Even better would be a point-to-point VPN. Using VPN directly is also a good solution - but services that let you configure that you only want one certain port to run via VPN and not the SSH connection that is your lifeline are costly. This document sketches a few solutions, provides some links, and documents one particular approach. And remember, methods of detection will soon encompass deep learning: https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9178288
const TronWeb = require('tronweb'); | |
const HttpProvider = TronWeb.providers.HttpProvider; | |
const fullNode = new HttpProvider("https://api.trongrid.io"); | |
// const fullNode = new HttpProvider("http://192.168.1.162:8090"); | |
const solidityNode = new HttpProvider("https://api.trongrid.io"); | |
const eventServer = new HttpProvider("https://api.trongrid.io"); | |
const privateKey = "3481E79956D4BD95F358AC96D151C976392FC4E3FC132F78A847906DE588C145"; | |
const tronWeb = new TronWeb(fullNode, solidityNode, eventServer, privateKey); |
/** | |
* Export all data from an IndexedDB database | |
* | |
* @param {IDBDatabase} idbDatabase The database to export from | |
* @return {Promise<string>} | |
*/ | |
export function exportToJson(idbDatabase) { | |
return new Promise((resolve, reject) => { | |
const exportObject = {} | |
if (idbDatabase.objectStoreNames.length === 0) { |
const puppeteer = require('puppeteeer'); | |
const networkConditions = { | |
'2g': { | |
downloadThroughput: 500 * 1024 / 8 * .8, | |
uploadThroughput: 500 * 1024 / 8 * .8, | |
latency: 400 * 5, | |
offline: false, | |
}, | |
'3g': { |
resources: | |
- type: compute.v1.address | |
name: mcs-ip | |
properties: | |
region: australia-southeast1 | |
- type: compute.v1.instance | |
name: mc-server | |
properties: | |
zone: australia-southeast1-c | |
machineType: zones/australia-southeast1-c/machineTypes/n1-standard-1 |
async def cmd_weather(self, channel, author): | |
import json | |
from array import array | |
import requests | |
from collections import OrderedDict | |
from pprint import pprint | |
api_key = "&APPID=507e30d896f751513350c41899382d89" | |
city_name_url = "http://api.openweathermap.org/data/2.5/weather?q=" | |
units = "&units=metric" | |
global general_info |