Skip to content

Instantly share code, notes, and snippets.

@tarranjones
tarranjones / phpstorm-eap-update
Created Mar 6, 2018 — forked from AubreyHewes/phpstorm-eap-update
Update/Install the latest PhpStorm EAP automatically (add to external tools)
View phpstorm-eap-update
#!/usr/bin/env bash
#######################################################################################################################
#
# Updates/Install the latest PhpStorm EAP
#
# --------------------------------------------------------------------------------------------------------------------
#
# * Retrieves the current version from the EAP wiki
# * If the new version is not the current version (based on symlink to PhpStorm) then updates
# * Creates a symlink from versioned folder to PhpStorm
@tarranjones
tarranjones / multiple_ssh_setting.md
Last active Oct 3, 2019 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts
View multiple_ssh_setting.md

Multiple SSH Keys settings for different git account

Create different public keys

Create different ssh keys for each git account

@tarranjones
tarranjones / 0_reuse_code.js
Created Dec 12, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View scrape
#!/usr/bin/env zsh
datadir=${XDG_DATA_HOME:-$HOME/.local/share}/windows
mkdir -m 0700 -p $datadir
git -C $datadir init
logfile=$datadir/windows-vms
exec >>$logfile
date=$(date)
echo
echo "# $date"
curl -fsSL https://developer.microsoft.com/en-us/microsoft-edge/api/tools/vms/ | \