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); |
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); | |
This gist is an ES module which provides functions to import and export data from an IndexedDB database as JSON. It's based on Justin Emery's indexeddb-export-import
package, but applies some adjustments that reflect better on the current browser landscape (i.e. better developer ergonomics but no support for Internet Explorer).
For each of the provided functionalities, you need a connected IDBDatabase
instance.
import { idb } from 'some-database'
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 |
const mounted = new WeakSet() | |
export default (component, displayName = component.displayName || component.name || 'React.Component') => { | |
const host = { | |
[displayName] : class extends React.Component { | |
constructor(){ | |
this.state = {} | |
component.apply(this, arguments) | |
} |