Skip to content

Instantly share code, notes, and snippets.

View RyanMillerC's full-sized avatar
🍉

Ryan Miller RyanMillerC

🍉
View GitHub Profile
/*
* ,--------------------------------------------------------------------------------------.
* | | | | | | | | | | | | | | |
* |--------------------------------------------------------------------------------------|
* | | | | | | | | | | | | | | |
* |--------------------------------------------------------------------------------------|
* | | | | | | | | | | | | | |
* |--------------------------------------------------------------------------------------|
* | | | | | | | | | | | | |
* |--------------------------------------------------------------------------------------|
@RyanMillerC
RyanMillerC / xcodearchive.sh
Last active June 13, 2019 13:26
Build and deploy ExpoKit project to iPad
#!/bin/bash
#
# Build and deploy stand-alone production-optimized React Native project to device for testing
#
# WARNING: This can take a long time (~10 minutes) to complete
#
[[ -f .env ]] && source .env
if [[ -z ${XCODE_SCHEME} ]] ; then
@RyanMillerC
RyanMillerC / git-labels.json
Last active March 8, 2020 20:11
Collection of Git labels for use with git-labelmaker
[
{ "name": "Priority: Important", "color": "#eb6420" },
{ "name": "Priority: Critical", "color": "#e11d21" },
{ "name": "Status: Abandoned", "color": "#000000" },
{ "name": "Status: Accepted", "color": "#009800" },
{ "name": "Status: Available", "color": "#bfe5bf" },
{ "name": "Status: Blocked", "color": "#e11d21" },
{ "name": "Status: Completed", "color": "#006b75" },
{ "name": "Status: In Progress", "color": "#cccccc" },
{ "name": "Status: On Hold", "color": "#e11d21" },
@RyanMillerC
RyanMillerC / pok3r_bindings.md
Created August 29, 2018 11:17
My Pok3r bindings. Posting in case I ever lose them.

Pok3r Key Bindings

My Pok3r bindings. Posting in case I ever lose them.

Capslock   -> Fn (Dip switch 3, original Fn key stays in normal position)
Right Ctrl -> Capslock
Right Alt  -> Right Ctrl
Left Ctrl  -> Left Alt
Left Alt -> Left Ctrl
@RyanMillerC
RyanMillerC / wpa_supplicant.conf
Created August 23, 2018 13:07
Setup WiFi for Headless Raspberry Pi Installation
country=us
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="MyNetworkSSID"
psk="Pa55w0rd1234"
}
@RyanMillerC
RyanMillerC / Better Loop Pattern for Parallel Lists.py
Created July 30, 2018 13:26
Today I learned a better way to loop through parallel lists in Python
L = ['value', 'value2', 'value3']
L2 = ['value', 'value2', 'value3']
# Old-Old way
for index in range(len(L)):
item = L[index]
item2 = L2[index]
print(item, item2)
# Old way
@RyanMillerC
RyanMillerC / ProgressBar.py
Last active May 14, 2018 17:28 — forked from aubricus/License
Printable Progress Bar for Python
# -*- coding: utf-8 -*-
import sys
class ProgressBar():
"""Printable progress bar.
"""
def __init__(
self, total, iterator=0, prefix='Progress',
@RyanMillerC
RyanMillerC / git-status-in-bash-prompt
Last active April 20, 2018 18:53
Add git branch and status to end of command prompt while inside a git directory
#!/bin/bash
#
# Created: 2017-07-02 22:44
# Updated: 2018-04-17 10:38
# Creator: Ryan Miller
# Website: http://devopsmachine.com/
# File: ~/.bashrc (Add to file)
#
# Add git information to end of yor bash command prompt while inside a git directory!
# + Will show current branch as either green (clean) or yellow (uncommited changes)
@RyanMillerC
RyanMillerC / set-primary-monitor-pantheon-greeter
Last active November 7, 2020 13:29
Set correct primary monitor for login screen when lightdm greeter starts up on Elementary OS
#!/bin/bash
#
# Created: 2017-07-02 16:20
# Updated: 2018-02-09 12:23
# Creator: Ryan Miller
# Website: http://devopsmachine.com/
# File: /usr/local/bin/set-primary-monitor-pantheon-greeter
#
# Set correct primary monitor for login screen when lightdm greeter starts up on Elementary OS.
#