Skip to content

Instantly share code, notes, and snippets.

@skrul
Created September 14, 2010 21:23
Show Gist options
  • Save skrul/579799 to your computer and use it in GitHub Desktop.
Save skrul/579799 to your computer and use it in GitHub Desktop.
from socket import gethostname
APP_IDS = {
# bamboo-dev-surfer.local
'surfer.local': '118194594902144',
# bamboo-dev-heavybits.local
'heavybits.local': '160051217345246'}
def get_application_id():
hostname = gethostname()
return APP_IDS.get(hostname, 'no app id found')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment