Skip to content

Instantly share code, notes, and snippets.

@SmokeNMirrors
SmokeNMirrors / gist:7d514cee4eca9715116699b7a0f01b99
Created December 22, 2021 06:06
tezos profile verification
I am attesting that this GitHub handle SmokeNMirrors is linked to the Tezos account tz1iYUeQezoXX546AAfW3WGjoFWCvLVMcAjq for tzprofiles
sig:edsigtcbaQ8xjSwEUa4vAyzstPdMuWjuVtHAFHkycVWW9nPvvD63KzFgmey9AMPLdYgXXcdNk7H1ZhpghgP5atbe5mC1XGiMpRU
/**
* Copyright 2014 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
@SmokeNMirrors
SmokeNMirrors / decode.js
Created December 4, 2018 04:13 — forked from udnaan/decode.js
Decode devices from a rooted device for tuya smart life app
const fs = require('fs');
const path = require('path');
const xml2js = require('xml2js');
const data = fs.readFileSync(path.join(__dirname, process.argv[2]), {encoding: 'UTF-8'});
xml2js.parseString(data, (err, result) => {
const str = result.map.string[6]._;
console.log(str);