Skip to content

Instantly share code, notes, and snippets.

Jeremy Helms digitaljhelms

Block or report user

Report or block digitaljhelms

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@digitaljhelms
digitaljhelms / httpcode
Last active Aug 27, 2019
CLI to evaluate the HTTP Code for a list of URLs
View httpcode
#!/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
@digitaljhelms
digitaljhelms / linkroll.md
Last active Dec 7, 2018
Interesting and/or useful dev links
View linkroll.md
  • How one developer just broke Node, Babel and thousands of projects in 11 lines of JavaScript – Link
    • The npm Blog – kik, left-pad, and npm – Link
  • Electron – Build cross platform desktop apps with web technologies – Link
  • What every Browser knows about you – Link
  • Android Studio 2.0 | Android Developers Blog – Link
  • Dev Centers – Directory of developer center websites with memorable URL shortcuts – Link
  • Java Forever And Ever Movie (Java vs Windows .Net) – Link
  • Everything announced at Facebook's F8 conference – Link
    • New Facebook dev tools include Account Kit, push and quote sharin
@digitaljhelms
digitaljhelms / README.md
Last active Mar 13, 2018
Instructions on adding the AEM error log to the Console application Reports
View README.md

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 → <PROJECT NAME>.error.log

View keybase.md

Keybase proof

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:

@digitaljhelms
digitaljhelms / DNSimpleUpdater
Last active Jul 15, 2018
DNSimple DNS Updater for OS X Yosemite
View DNSimpleUpdater
#!/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" \
@digitaljhelms
digitaljhelms / post-rewrite
Created Sep 22, 2014
Git hook to call `git submodule update` automatically.
View post-rewrite
#!/bin/sh
echo "[post-rewrite hook: $1]"
# quick script to call "git submodule update" automatically if the
# .gitmodules file is changed
changedfiles=( `git diff-tree --no-commit-id --name-only HEAD@{1} HEAD` )
if [[ "${changedfiles[*]}" =~ ".gitmodules" ]]; then
echo "initializing & updating submodule(s)"
@digitaljhelms
digitaljhelms / DNSimpleUpdater
Created Apr 7, 2014
DNSimple hostname updater on OS X (prior to Yosemite)
View DNSimpleUpdater
#!/bin/bash
. /etc/rc.common
AUTH_EMAIL='' # dnsimple account email address
AUTH_TOKEN='' # dnsimple api token
DOMAIN_ID='' # domain name or id
RECORD_ID='' # record id to update
IP="`curl http://icanhazip.com/`"
foo ()
View gist:97c40db02f1979bc5914
$el.panzoom('getMatrix');
// 1,0,0,1,0,0
// | | | | | ^- Y coordinate, 0 = init, +N = panD, -N = panU
// | | | | '--- X coordinate, 0 = init, +N = panL, -N = panR
// | | | '----- zoom level, 1 = 100%
// | | '------- TBD
// | '--------- TBD
// '----------- zoom level, 1 = 100%
@digitaljhelms
digitaljhelms / post-rewrite
Last active Jan 4, 2017
Git hook to call `bower install` and `npm install` automatically.
View post-rewrite
#!/bin/sh
echo "[post-rewrite hook: $1]"
# by noahgrant & digitaljhelms
#
# quick script to call "bower install" and "npm install" automatically if
# bower.json or package.json are changed, respectively
#
# this assumes one top-level file for each
@digitaljhelms
digitaljhelms / .bash_aliases
Last active Mar 29, 2016
My personal ~/.bash_aliases file
View .bash_aliases
Moved: https://github.com/digitaljhelms/dotfiles
You can’t perform that action at this time.