Skip to content

Instantly share code, notes, and snippets.

View Arjeno's full-sized avatar

Arjen Oosterkamp Arjeno

  • Arjen.me
  • de Wilp, the Netherlands
View GitHub Profile
jQuery ->
$("#map").each ->
panorama = null
marker = null
lat = $(this).data('lat')
long = $(this).data('long')
address = $(this).data('address')
coordinates = [lat, long]
$(this).gmap3(
@Arjeno
Arjeno / gist:5524736
Created May 6, 2013 12:03
New Relic Deployment Notification
#!/usr/bin/env ruby
# New Relic Deployment Notification
require 'new_relic/agent'
require 'new_relic/command'
config = NewRelic::Agent::Configuration::YamlSource.new(NewRelic::Agent.config[:config_path], ENV['RAILS_ENV'])
app_name = config[:app_name]
branch = `git branch --no-color | sed -e '/^[^*]/d'`.gsub("*", "").strip
description = `git log #{branch} -1 --format="%s"`.chomp
@Arjeno
Arjeno / circle.yml
Created August 17, 2016 13:57
Always use the latest version of Chrome on CircleCI
# This makes sure Chrome is always up to date in your test suite
# On average this adds about 10 seconds to your build suite
# Be sure to use Ubuntu 14.04 (Trusty) in the CircleCI's OS setting (Settings > Build Environment)
dependencies:
pre:
- curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome.deb
- sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
- rm google-chrome.deb