Skip to content

Instantly share code, notes, and snippets.

@ysamlan
ysamlan / Toggle Function Keys.scpt
Created April 25, 2011 15:12
Toggle function keys / media keys on OS X 10.6 & show current status with Growl (updated from http://macsteps.com/blog/tips/how-to-quickly-toggle-your-keyboards-function-keys/ which only works on 10.5)
tell application "System Preferences"
set current pane to pane "com.apple.preference.keyboard"
end tell
tell application "System Events"
-- If we don't have UI Elements enabled, then nothing is really going to work.
if UI elements enabled then
tell application process "System Preferences"
get properties
### Keybase proof
I hereby claim:
* I am ysamlan on github.
* I am ysamlan (https://keybase.io/ysamlan) on keybase.
* I have a public key whose fingerprint is 0CDC 83AD 3906 1735 BFE6 3395 6BD8 7A3E 3F22 65C6
To claim this, I am signing this object:
@ysamlan
ysamlan / jira-to-markdown.user.js
Last active October 19, 2015 18:41
JIRA to Markdown inline conversions
// ==UserScript==
// @name JIRA to Markdown
// @namespace https://github.com/ysamlan/
// @version 1.0
// @description Converts JIRA wiki syntax to Markdown and vice versa. Based on https://github.com/FokkeZB/J2M.
// @match https://*.atlassian.net/*
// @grant none
// @copyright 2015 Yoni Samlan, Apache license 2.0
// @updateURL https://gist.githubusercontent.com/ysamlan/24d575c40caae746531e/raw