Skip to content

Instantly share code, notes, and snippets.

View rretsiem's full-sized avatar

René rretsiem

View GitHub Profile

Please publicly post the following Gist, and name it keybase.md:

Keybase proof

I hereby claim:

  • I am rretsiem on github.
  • I am renem (https://keybase.io/renem) on keybase.
  • I have a public key whose fingerprint is 2F38 99DD B4EC 5C77 0AD8 CB56 4C0F 570A 8D0A C384
@rretsiem
rretsiem / head.html
Created September 19, 2014 18:05
Octopress description and keyword meta tags
{% 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
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: http://www.timbueno.com/2012/06/27/pinboard-plus-alfred
on alfred_script(q)
try
set token to "<API TOKEN can be found on pinboard.in/settings/password>"
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
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
--
-- 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
rretsiem / convert-to-octopress.sh
Last active December 11, 2015 04:39
Convert Scriptogr.am markdown to Octopress markdown compatible files
#! /bin/bash
# convert scriptogr.am markdown to Octopress/Jekyll markdown
if [ -z "$1" ]
then
echo "No input files supplied"
else
if [ ! -f $1 ]
then