Skip to content

Instantly share code, notes, and snippets.

View RandyMcMillan's full-sized avatar
🛰️
Those who know - do not speak of it.

@RandyMcMillan RandyMcMillan

🛰️
Those who know - do not speak of it.
View GitHub Profile
@RandyMcMillan
RandyMcMillan / xrpaway.py
Created December 2, 2018 03:48 — forked from ummjackson/xrpaway.py
XRP Away™️ - automatically block XRP fanatics sliding into your Twitter mentions
# Requirement: pip install tweepy
import tweepy
# Credentials go here (generate at: https://apps.twitter.com)
auth = tweepy.OAuthHandler('consumer_key', 'consumer_secret')
auth.set_access_token('access_token', 'access_token_secret')
# Connect to Twitter
api = tweepy.API(auth)
#!/usr/local/bin/python3
#python3.7 largePrimesExample.py
#pip install gmpy2
import gmpy2
from gmpy2 import mpz,mpq,mpfr,mpc,div
global_partition = mpz(904625697166532776746648320380374280100293470930272690489102837043110636675);
@RandyMcMillan
RandyMcMillan / notes.js
Created April 19, 2019 09:25 — forked from AlwaysBCoding/notes.js
DecypherTV (Youtube) - Bitcoin Screencast
// Create a new directory, install bitcore-explorers, and run the node shell
mkdir bitcoin && cd bitcoin
npm install --save bitcore-explorers
node
// Require the Bitcore libraries into the global namespace
var bitcore = require(“bitcore-lib”)
var explo = require(“bitcore-explorers”)
var shell = {}

In a previous post I introduced the Tails operating system, and listed some steps for getting started. I lay out here some steps for configuring SSH and getting started with GPG.

SSH

Go to the .ssh directory and create a private key (identity file) and public key pair.

$ cd ~/.ssh
$ ssh-keygen -t rsa -b 4096 -C "<email>"
#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 thomasv@gitorious
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@RandyMcMillan
RandyMcMillan / twitter-mute
Last active September 17, 2022 08:58
twitter-mute
//navigate to https://twitter.com/settings/muted_keywords
//past this into the web browser console
const delayMs = 500; // change this if you feel like its running too fast
const keywords = `ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
@RandyMcMillan
RandyMcMillan / install ncurses on macosx
Created January 27, 2020 22:25 — forked from cnruby/install ncurses on macosx
HOW TO INSTALL ncurses on MacOSX
$ curl -O ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz
$ tar -xzvf ncurses-5.9.tar.gz
$ cd ./ncurses-5.9
$ ./configure --prefix=/usr/local \
--without-cxx --without-cxx-binding --without-ada --without-progs --without-curses-h \
--with-shared --without-debug \
--enable-widec --enable-const --enable-ext-colors --enable-sigwinch --enable-wgetch-events \
&& make
$ sudo make install
@RandyMcMillan
RandyMcMillan / B.sh
Last active February 6, 2020 23:34
Add ₿ to terminal on macOS
#!/usr/bin/env bash
#REF:https://twitter.com/RandyMcMillan
#Set ComputerName & HostName name to ₿
scutil --get HostName
scutil --get ComputerName
export COMPUTER_NAME=$(echo '"\u20BF"' | jq .) &&
export COMPUTER_NAME=$(echo "${COMPUTER_NAME//\"}")
echo $COMPUTER_NAME &&
sudo scutil --set ComputerName "$COMPUTER_NAME"
sudo scutil --set HostName "$COMPUTER_NAME"
@RandyMcMillan
RandyMcMillan / python-common-install-issues.md
Last active February 7, 2020 00:53
A note for installing modules for multiple versions of python.

Python - [common installation issues][1]

These commands are also useful if [Homebrew][2] screws up your path on macOS.

python -m pip install requests

or

python3 -m pip install requests
#!/bin/bash
################################
# OS X Install ISO Creater #
# #
# Author: shela #
################################
#######################################
# Declarations