This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is authored by Robert Altman, OptumRx | |
# robert.altman@optum.com | |
# Version 1.2.1 | |
# Requirements: | |
# * Docker Desktop, or docker cli | |
# * jq formatter - https://jqlang.github.io/jq/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static NSString *binaryRepresentation(int value) | |
{ | |
long nibbleCount = sizeof(value) * 2; | |
NSMutableString *bitString = [NSMutableString stringWithCapacity:nibbleCount * 5]; | |
for (int index = 4 * nibbleCount - 1; index >= 0; index--) | |
{ | |
[bitString appendFormat:@"%i", value & (1 << index) ? 1 : 0]; | |
if (index % 4 == 0) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Suggestions from StackOverflow: | |
# 1. functions and aliasses should go in ~/.bashrc and ~/.bash_profile or ~/.profile should source ~/.bashrc | |
# 2. sourcing one from the other makes life much easier. For safety, I have my .bash_profile check first, like this: if [ -f ~/.bashrc ]; then . ~/.bashrc; fi | |
# Alias formats | |
# alias la='ls -a' | |
# alias ll='ls -la' | |
# alias lf='ls -aleO@' | |
alias h=history |