Skip to content

Instantly share code, notes, and snippets.

View pesla's full-sized avatar

Peter Slagter pesla

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pesla on github.
  • I am pesla (https://keybase.io/pesla) on keybase.
  • I have a public key ASAo2xKvnKANHZPafN1cD7C97DCXxcV1GQDyCTdgGLvu6Ao

To claim this, I am signing this object:

// ==UserScript==
// @name Decorate backend UI on local implementation
// @version 0.1
// @author Procurios
// @match http://*.peter/*
// @grant none
// ==/UserScript==
(function (global) {
'use strict';
@pesla
pesla / open-ticket-custom-field.zendesk.js
Created October 21, 2014 07:56
Open ticket in Zendesk from custom id field with TamperMonkey
// ==UserScript==
// @name Zendesk ID-field
// @namespace https://procurios.zendesk.com/agent
// @version 0.1
// @description Adds ID-field to Zendesk
// @match https://procurios.zendesk.com/agent/*
// ==/UserScript==
var ZD = ZD || {};
@pesla
pesla / open-ticket-from-alfred.zendesk.as
Last active October 22, 2015 13:14
Open ticket in Zendesk from Alfred (workflow)
on alfred_script(q)
set ticketId to q
set serverURI to "https://procurios.zendesk.com"
set browserURL to "/tickets/" & ticketId
set found to false
tell application "Google Chrome Canary"
if (count every window) > 0 then
repeat with theWindow in every window
set theTabIndex to 0