I hereby claim:
- I am digitaljhelms on github.
- I am digitaljhelms (https://keybase.io/digitaljhelms) on keybase.
- I have a public key whose fingerprint is F930 EA2C 5B7B FB40 CE37 5C87 998D 75C9 EE6C 2676
To claim this, I am signing this object:
Moved: https://github.com/digitaljhelms/dotfiles |
#!/usr/bin/perl | |
#fetch Gravatars | |
#http://code.google.com/p/gource/wiki/GravatarExample | |
use strict; | |
use warnings; | |
use LWP::Simple; | |
use Digest::MD5 qw(md5_hex); |
# bash alias | |
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' | |
# bash function, usage: $ st -p [projectname] -opt2 -opt3 | |
function st() { | |
if [ -n "$1" -a -n "$2" ]; then # if more than one argument | |
if [ "$1" = "-p" -o "$1" = "--project" ]; then # if arg1 is -p or --project | |
local projectfile="$2" | |
[[ $projectfile != *.sublime-project ]] && projectfile="$2.sublime-project" # detect if arg2 already includes the ext | |
if [ -e $projectfile ]; then # does project file exist? |
I hereby claim:
To claim this, I am signing this object:
Using a symlink to easily view the AEM log on macOS +10.12 in the Console application (without having to manually find/open the log file) won’t work anymore, it requires a hard link:
brew install hardlink-osx
mkdir ~/Library/Logs/AEM
hln <PROJECT ROOT>/AEM/author/crx-quickstart/logs/error.log ~/Library/Logs/AEM/<PROJECT NAME>.error.log
open -a Console.app
Anytime you want to view the log, it’s at Reports → ~/Library/Logs → AEM → .error.log
#!/bin/bash | |
AUTH_EMAIL='your@email' # dnsimple account email address | |
AUTH_TOKEN='your-api-token' # dnsimple api token | |
DOMAIN_ID='yourdomain.com' # domain name or id | |
RECORD_ID='12345' # record id to update | |
IP="`curl http://icanhazip.com/`" | |
curl -H "X-DNSimple-Token: $AUTH_EMAIL:$AUTH_TOKEN" \ | |
-H "Accept: application/json" \ |
#!/bin/bash | |
while IFS= read -r LINE || [ "$LINE" ]; do | |
# https://curl.haxx.se/docs/manpage.html | |
IN=$(curl -o /dev/null --silent --head --write-out "%{http_code};%{redirect_url}" "$LINE") | |
# https://stackoverflow.com/a/5257398 | |
arrIN=(${IN//;/ }) | |
if [ "${arrIN[0]}" = "301" ] || [ "${arrIN[0]}" = "302" ]; then |
[ | |
{ | |
"homepage": "http://digitaljhelms.github.com", | |
"name": "digitaljhelms", | |
"description": "finally blogging...", | |
"author": "Jeremy Helms", | |
"post": { | |
"url": "http://digitaljhelms.github.com/howto/creating-a-branch-with-no-parents-or-history", | |
"slug": "creating-a-branch-with-no-parents-or-history", | |
"title": "Create a Git Branch without Parents or History", |
$ npm install -g http-server
$ http-server -p 8000 -a foo.bar.com
Would serve PWD at http://foo.bar.com/
#!/bin/bash | |
# check if stdout is a terminal | |
if [ -t 1 ]; then | |
# see if it supports colors | |
ncolors=$(tput colors) | |
if [[ -n "$ncolors" && $ncolors -ge 8 ]]; then | |
bold="$(tput bold)" | |
underline="$(tput smul)" |