Skip to content

Instantly share code, notes, and snippets.

View samthetechie's full-sized avatar

Samuel Carlisle samthetechie

View GitHub Profile
@samthetechie
samthetechie / index.mjs
Last active November 19, 2023 20:18 — forked from spersico/index.mjs
Liberating Huawei Notes "HTML" (actually JSON) to TXT
import { writeFile, readdir, readFile, mkdir } from 'node:fs/promises';
import path from 'node:path';
/*
Steps to get/export your notes from Huawei Notes:
1. Login into a Huawei Account in the phone.
2. Activate in your phone, the Notes Syncing, which is inside of Huawei Account > Cloud
3. Log in into https://cloud.huawei.com
4. Go to https://cloud.huawei.com/home#/account/gdpr, and click on Download Notes
5. This will give you a zip file with a password. Extract the zip file into a folder.
6. Copy this file into the root directory folder as index.mjs
@samthetechie
samthetechie / index.js
Created October 30, 2012 17:21 — forked from max-mapper/index.js
twitter bot for @sandyaid retweets
var crypto = require('crypto')
var request = require('request')
var url = require('url')
var irc = require('./IRC/lib/irc')
var ntwitter = require('ntwitter')
var twitter = require('twitter')
var qs = require('querystring')
// separate accounts to post and search because twitter was sending me 500s
// when I tried to use the same oauth creds for both twitter() and ntwitter()