Skip to content

Instantly share code, notes, and snippets.

@andymadge
andymadge / 123-reg.js
Created January 19, 2009 12:52
Search 123-reg.co.uk for domain name availability
CmdUtils.CreateCommand({
name: "123-reg",
icon: "http://www.123-reg.co.uk/favicon.ico",
author: {name: "Andy Madge", email: "web@andymadge.com", homepage: "http://blog.andymadge.com/"},
description: "Searches 123-reg.co.uk for domain name availability",
license: "GPL",
homepage: "http://gist.github.com/48973",
takes: {"query": noun_arb_text},
preview: function( pblock, searchTerm ) {
@andymadge
andymadge / tfl-journey-planner.js
Created January 19, 2009 13:00
Search TFL Journey Planner. Currently very basic - start location is hard-coded.
CmdUtils.CreateCommand({
// based on 'journey' by Tom Parker (http://tevp.net/projects/ubiquity/)
name: "tfl-journey-planner",
icon: "http://journeyplanner.tfl.gov.uk/favicon.ico",
author: {name: "Andy Madge", email: "web@andymadge.com", homepage: "http://blog.andymadge.com/"},
description: "Plans a journey using TfL Journey Planner",
takes: {"destination": noun_arb_text},
homepage: "http://gist.github.com/48977",
execute: function(input){
@andymadge
andymadge / gamefaqs.js
Created January 20, 2009 12:57
Search GameFAQs
CmdUtils.CreateCommand({
name: "gamefaqs",
icon: "http://www.gamefaqs.com/favicon.ico",
author: {name: "Andy Madge", email: "web@andymadge.com", homepage: "http://blog.andymadge.com/"},
description: "Searches GameFAQs",
homepage: "http://gist.github.com/49456",
takes: {"query": noun_arb_text},
_GameFAQsPlatformCodes: {
all: '0',
using terms from application "Quicksilver"
on process text joinCode
tell application "join.me" to activate
tell application "System Events"
tell process "join.me"
set visible to true
keystroke joinCode
click button 4 of window 1
end tell
end tell
@andymadge
andymadge / Join join.me Session Alfred Workflow.applescript
Last active August 29, 2015 14:20
Alfred workflow scripts for join.me. Place these in Run NSAppleScript actions
-- delay doesn't work properly on Yosemite so we need to override it.
-- See http://apple.stackexchange.com/questions/161749/applescript-delay-not-working-since-switch-to-yosemite
on delay duration
set endTime to (current date) + duration
repeat while (current date) is less than endTime
tell AppleScript to delay duration
end repeat
end delay
on alfred_script(q)
@andymadge
andymadge / DropboxSync.py
Last active April 20, 2016 20:54 — forked from wrenoud/DropboxSync.py
DropboxSync
import os
import sys
import pickle
import console
import editor
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder
sys.path += [os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')]
import dropboxlogin # this code can be found here https://gist.github.com/4034526
@andymadge
andymadge / docker-bash-completion.md
Last active September 28, 2022 19:12 — forked from rkuzsma/docker-bash-completion.md
How to configure Bash Completion on Mac for Docker and Docker-Compose

How to configure Bash Completion on Mac for Docker and Docker-Compose

Run:

brew install bash-completion

Add the following lines to your ~/.bash_profile:

# required for bash-completion, see https://superuser.com/a/819222/13521
# Put this file in any directories that should be included as empty directories in the repo
# i.e. ignore the contents but include the empty dir
# ignore everything in this directory
*
# but whitelist these files - important to include gitignore in repo
!.gitignore