This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Grab oauth token for use with Nitter (requires Twitter account). | |
# results: {"oauth_token":"xxxxxxxxxx-xxxxxxxxx","oauth_token_secret":"xxxxxxxxxxxxxxxxxxxxx"} | |
username="" | |
password="" | |
if [[ -z "$username" || -z "$password" ]]; then | |
echo "needs username and password" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const assert = require('assert'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const os = require('os'); | |
const {Chain, Pool} = require('/home/ubuntu/hsd'); | |
const NetAddress = require('/home/frenz/hsd/lib/net/netaddress'); | |
const Logger =require('/home/frenz/hsd/node_modules/blgr'); | |
const IP =require('/home/frenz/hsd/node_modules/binet'); |