Skip to content

Instantly share code, notes, and snippets.

View mickeys's full-sized avatar

Mickey Sattler mickeys

View GitHub Profile
@mickeys
mickeys / keybase.md
Created June 12, 2019 17:45
ID proof keybase

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@mickeys
mickeys / fetch_build_artifacts_from_Jenkins.sh
Created July 12, 2017 03:03
bash snippet to fetch build artifacts from a Jenkins build server
# -----------------------------------------------------------------------------
# How to get the artifacts of the latest or particular numbered Jenkins build.
#
# This example is for the 'foobar' project; modify $BUILD_ZIP
#
# Jenkins API key http://build.credenceid.com:8080/user/YOURUSERNAME/configure
# -----------------------------------------------------------------------------
JENKINS_USER='yourUserName'
JENKINS_APIK='1234567890'
# Pick one or the other ~~~ get the last one or specify a numbered Jenkins build
@mickeys
mickeys / read_and_write_files_via_box_com.sh
Created July 12, 2017 03:00
bash snippet to read and write files to box.com
BOX_CREDS='username@example.com:password' # credentials
HOSTPATH="dav.box.com/dav" # destination hostname
PROD_TYPE="Top-Level Name" # path ~ level 1
PROD_AREA="Second-level Name" # path ~ level 2
PROD_MODL="Third-Level Name" # path ~ level 3
PROD_PATH="${PROD_TYPE}/${PROD_AREA}/${PROD_MODL}" # the complete path
TESTFILE=$( date +%Y%m%d_%H%M%S ) # the name *is* the timestamp :-)
touch $TESTFILE # create it
@mickeys
mickeys / wordpress_link_by_title.php
Last active March 3, 2018 11:43
While writing WordPress content I frequently want to link to something I've written before without having to remember whether it was a page or post. This shortcode does just that. Also, a shout out to Dave Winer's Userland.com 'Radio' and 'Frontier' content management systems, which did this sort of thing effortlessly, making it really easy to w…