I hereby claim:
- I am inamik on github.
- I am davidpfarrell (https://keybase.io/davidpfarrell) on keybase.
- I have a public key ASB0pIIX3U9P14VPVSCK-uulvtJoHH1RVygAN6GPnUAD-Ao
To claim this, I am signing this object:
## | |
# Makefile to help manage docker-compose services | |
# | |
# Built on list_targets-Makefile: | |
# | |
# https://gist.github.com/iNamik/73fd1081fe299e3bc897d613179e4aee | |
# | |
.PHONY: help about args list targets services build up down rebuild clean start status ps logs stop restart sh bash shell | |
# If you need sudo to execute docker, then udpate these aliases |
## | |
# Base Makefile with ability to list targets | |
# | |
.PHONY: help about list targets | |
ME := $(realpath $(firstword $(MAKEFILE_LIST))) | |
# Contains trailing '/' | |
# | |
PWD := $(dir $(ME)) |
GIMP Palette | |
Name: C64 Palette | |
Columns: 0 | |
# https://www.c64-wiki.com/wiki/Color | |
0 0 0 Untitled | |
255 255 255 Untitled | |
136 0 0 Untitled | |
170 255 238 Untitled | |
204 68 204 Untitled | |
0 204 85 Untitled |
#!/bin/bash | |
FILE="/sys/class/backlight/rpi_backlight/brightness" | |
if [ $# = 0 ]; then | |
cat ${FILE} | |
exit 0 | |
fi | |
if [ $# -eq 1 ] && [[ $1 =~ ^[0-9]{1,3}$ ]] && [ $1 -ge 0 ] && [ $1 -le 255 ]; then |
# | |
# Add the below chrome() function to your ~/.bash_profile | |
# | |
# Launch an anonymous instance - Profile is stored in /tmp with random name | |
# $ chrome | |
# | |
# Launch/relaunch a temporary named instance - Profile is stored in /tmp with specified name | |
# $ chrome name_in_all_lowercase | |
# | |
# Launch/relaunch a permanent named instance - Profile is stored in ~/Documents/ChromeProfiles with specified name |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
## | |
# svnCleanUpdate | |
# | |
# Cleanup an SVN checkout, Revert local changes and update to @HEAD | |
# Does not generate any output unless something is changed. | |
# NOTE: This script destroys all local mods - run it with caution! | |
#SVN_AUTH="--username user --password passwd" |
/* | |
package llrb implements a Left-Leaning Red-Black Tree (2-3 Variant), | |
as described by Robert Sedgewick: | |
* http://www.cs.princeton.edu/~rs/talks/LLRB/RedBlack.pdf | |
* http://en.wikipedia.org/wiki/Left-leaning_red%E2%80%93black_tree | |
The goal of this implementation is a one-to-one correlation to the ideas |
<?php | |
/** | |
* Since PHP stores all arrays as associative internally, there is no proper | |
* definition of a scalar array. | |
* | |
* As such, developers are likely to have varying definitions of scalar array, | |
* based on their application needs. | |
* | |
* In this file, I present 3 increasingly strict methods of determining if an | |
* array is scalar. I feel these methods cover the majority, if not all, of the |
<?php | |
/** | |
* Generic Exception Support for PHPUnit < v3.7 | |
* | |
* These classes help you test generic exceptions in PHPUnit versions less than | |
* v3.7, avoiding the 'You must not expect the generic exception class' error. | |
* | |
* We create a new exception to represent the generic exception, and provide | |
* multiple ways to incorporate the functionality into your tests: | |
* |