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 / UsageExample.m
Created October 12, 2012 22:57
Use git tag as build (#) in iOS app
NSDictionary *appInfo = [[NSBundle mainBundle] infoDictionary];
NSString *versionStr = [NSString stringWithFormat:@"build (%@)",
[appInfo objectForKey:@"GitTag"]];
self.detailDescriptionLabel.text = versionStr;
# Uncrustify 0.59
#
# General options
#
# The type of line endings
newlines = auto # auto/lf/crlf/cr
# The original size of tabs in the input
@RandyMcMillan
RandyMcMillan / osx_install.sh
Created October 31, 2015 16:55 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@RandyMcMillan
RandyMcMillan / CordovaBotIcon.html
Created April 28, 2012 07:32
Cordova Bot Icon ASCII Art
<html>
<head>
<meta charset="utf-8">
<style>
*{margin:0;padding:0;}
body {
font:13.34px helvetica,arial,freesans,clean,sans-serif;
color:black;
line-height:1.4em;
background-color: #F8F8F8;
@RandyMcMillan
RandyMcMillan / sshGitServer
Created April 5, 2016 16:27
Useful functions for using a remote git server
# add to your .aliases file
#ssh to your git server
#MUST HAVE A USER NAMES "git"
#REFERENCE --> http://www.tomdalling.com/blog/software-processes/how-to-set-up-a-secure-git-server-at-home-osx/
ip='###.###.###.###'
user='git'
alias deepspace='ssh $user@$ip'
alias ds=deepspace
alias lsds='ssh git@###.###.###.### "ls"'
#return local foldername

Keybase proof

I hereby claim:

  • I am randymcmillan on github.
  • I am randymcmillan (https://keybase.io/randymcmillan) on keybase.
  • I have a public key ASCoG4fkQMrzj82y4S58rpAZ0sanrkfabkT8a-84UdarPQo

To claim this, I am signing this object:

@RandyMcMillan
RandyMcMillan / .description
Last active August 11, 2017 00:55 — forked from Zverik/recursive_index.pl
Create index.htm with a list of all files
recursive_index.pl : Sample Description
@RandyMcMillan
RandyMcMillan / LTC-Lightning-Network-lnd-Guide (Mac).md
Created April 13, 2018 07:04 — forked from ecurrencyhodler/(Deprecated)LTC-Lightning-Network-lnd-Guide (Mac).md
This is a step-by-step main net tutorial on how to setup a lightning network node for Litecoin on a Mac. It will take you from the beginning all the way through to becoming visible on a ln explorer. To send or recieve payments, refer to "Basic lnd Commands."

LTC-Lightning-Network-lnd-Guide

This is a step-by-step main net tutorial on how to setup a Lightning Network node for Litecoin on a Mac. It is specifically for the lnd client by the Lightning Labs. You can copy and paste most of the commands except for the times I've indicated in bold for you to input your own information. It would also be a good idea to backup your computer prior to starting just in case you need to start over.

Below is a legend. Refer to it as you come across terms or symbols you don’t understand. The first part of the tutorial is taken from the lnd github. However, everything else is written with the help of Patrick Walters taking me step by step through the process.

Legend

$ = This symbol means 1 line of code. Do not type “$” into your terminal. Simply input what follows then push enter.

Pubkey = Short for the public key that is generated from the private key w

@RandyMcMillan
RandyMcMillan / .functions
Last active October 22, 2018 14:30
Get the Bitcoin Futures Contract dates from the command line. Then convert to a .csv file and print to terminal.
#!/usr/bin/env bash
getBTCfutures() {
#depends on curl AND csvkit
#both are installable using Homebrew on macOS
#not sure if productID is static
curl "https://www.cmegroup.com/trading/equity-index/us-index/CmeWS/mvc/ProductCalendar/Download.xls?productId=8478" >> $PWD/cmeBTCfuturesCAL.xls && in2csv $PWD/cmeBTCfuturesCAL.xls > $PWD/cmeBTCfuturesCAL.csv
@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)