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 / git@gist.github.com:randymcmillan.md
Created February 3, 2023 21:35
git@gist.github.com:randymcmillan
@RandyMcMillan
RandyMcMillan / app.js
Created February 3, 2023 21:27 — forked from MattSandy/app.js
Tweet Scraper in Node.JS
var Twitter = require('node-tweet-stream')
, t = new Twitter({
consumer_key: '',
consumer_secret: '',
token: '',
token_secret: ''
});
var watch = [
"SB52",
"SBLII",
@RandyMcMillan
RandyMcMillan / cargo.toml
Last active December 12, 2022 21:20 — forked from futurepaul/example.rs
example usage of miniscript
[dependencies]
miniscript = { git="https://github.com/apoelstra/rust-miniscript", features=["compiler"] }
bitcoin = "0.18"
secp256k1 = "0.12"
@RandyMcMillan
RandyMcMillan / setup-cross-cc.sh
Last active November 18, 2022 02:09 — forked from xentec/setup-cross-cc.sh
Alpine Linux cross-compiler setup script
#!/bin/sh
CTARGET="$1"
if [ -z "$CTARGET" ]; then
program=$(basename $0)
echo "usage: $program TARGET_ARCH"
return 1
fi
# get abuild configurables
@RandyMcMillan
RandyMcMillan / nodecheck.sh
Created November 8, 2022 16:23 — forked from jamesmcintyre/nodecheck.sh
bash script to check node/npm version and installed deps against package.json requirements
# more extensive check intended for scenerios such as pulling an existing repo you're unfamiliar with, pulling down changes
# and wanting to ensure your current node_modules/ is up-to-date with any package.json changes, etc.
# you will automatically be prompted to install the two required global npm modules
nodecheck() {
printf "\n\n"
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' .
printf "ENVIRONMENT:\n"
@RandyMcMillan
RandyMcMillan / main.dart
Last active November 3, 2022 17:52
Fibonacci
// Copyright 2022 @RandyMcmillan. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
import 'dart:math';
void main() {
var i = 5;
var p = pow(2,i);
@RandyMcMillan
RandyMcMillan / gist:17dd8281ade57e87696011eb29e55776
Created November 2, 2022 19:44 — forked from ShaoJenChen/gist:8ae9728939061ed4a3d4a63d01f7d404
Automatically create cross-platform (simulator + device) static libraries for Objective C / iPhone / iPad
##########################################
#
# c.f. https://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.82
#
# Latest Change:
# - MORE tweaks to get the iOS 10+ and 9- working
# - Support iOS 10+
# - Corrected typo for iOS 1-10+ (thanks @stuikomma)
@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 / DOCS.md
Last active September 12, 2022 21:58
GNUmakefile example

GNUmakefile example

@RandyMcMillan
RandyMcMillan / install-openssl.sh
Last active August 27, 2022 16:34
Install openssl (MacOS override)
#!/usr/bin/env bash -xv
checkbrew() {
if hash brew 2>/dev/null; then
brew install openssl@1.1
true
else
#We install homebrew if not exist
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
checkbrew