Skip to content

Instantly share code, notes, and snippets.

tlex / .profile
Created Mar 10, 2017 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
View .profile
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info

Keybase proof

I hereby claim:

  • I am tlex on github.
  • I am tlex ( on keybase.
  • I have a public key whose fingerprint is B9E8 95DD D409 FD8E 12AB D898 2782 B95F 3068 1FE6

To claim this, I am signing this object:

tlex / timeZoneSelect.php
Created Jul 12, 2011
generate timezone select
View timeZoneSelect.php
* returns a HTML formated TimeZone select
* @param $selectedTimeZone string The timezone marked as "selected"
* @return string
function displayTimeZoneSelect($selectedTimeZone = 'America/New_York'){
$countryCodes = getCountryCodes();
$return = null;
You can’t perform that action at this time.