Skip to content

Instantly share code, notes, and snippets.


René rretsiem

View GitHub Profile

Please publicly post the following Gist, and name it

Keybase proof

I hereby claim:

  • I am rretsiem on github.
  • I am renem ( on keybase.
  • I have a public key whose fingerprint is 2F38 99DD B4EC 5C77 0AD8 CB56 4C0F 570A 8D0A C384
rretsiem / head.html
Created September 19, 2014 18:05
Octopress description and keyword meta tags
View head.html
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}" />
{% capture keywords %}{% if page.keywords %}{{ page.keywords }}{% elsif site.keywords %}{{ site.keywords }}{% endif %}{% endcapture %}
<meta name="keywords" content="{{ keywords | strip_html | condense_spaces }}" />
rretsiem / Alfred-pinboard-safari.applescript
Last active March 7, 2017 14:20
Sends the current active Safari Tab to Pinboard with Tags via the Query from Alfread and prints the result via Growl. Originally written by Tim Bueno:
View Alfred-pinboard-safari.applescript
on alfred_script(q)
set token to "<API TOKEN can be found on>"
set inputt to q as text
set tmp to splitString(inputt as text, " ")
set AppleScript's text item delimiters to "+"
set q to tmp as string
set AppleScript's text item delimiters to ""
rretsiem / gist:4605557
Last active December 11, 2015 13:09 — forked from timarnold/gist:3151932
open currently open URL in Safari in Chrome - modified to use no "do shell" works in Applescript as well
View gist:4605557
-- open currently open URL in Safari in Chrome
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
tell application "Google Chrome" to activate
rretsiem /
Last active December 11, 2015 04:39
Convert markdown to Octopress markdown compatible files
#! /bin/bash
# convert markdown to Octopress/Jekyll markdown
if [ -z "$1" ]
echo "No input files supplied"
if [ ! -f $1 ]