Skip to content

Instantly share code, notes, and snippets.

'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');
@flikites
flikites / twitter_oauth.sh
Created September 13, 2024 19:58 — forked from cmj/twitter_oauth.sh
Grab oauth token for use with Nitter (requires Twitter account)
#!/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