Skip to content

Instantly share code, notes, and snippets.

View fanaugen's full-sized avatar
🙂
always learning

Alex Jahraus fanaugen

🙂
always learning
  • Berlin
View GitHub Profile
@fanaugen
fanaugen / workflow.scpt
Last active April 28, 2024 11:13
Automator workflow to batch-convert MS Word documents (.doc, .docx) into PDF using Apple Pages
(*
* embed this applescript into an Automator workflow to batch-convert
* MS Word documents (.doc, .docx) into PDF using Apple Pages.
*)
on run {input, parameters}
tell application "Pages"
activate
repeat with doc in input
@fanaugen
fanaugen / ruby on ice 2019.md
Created September 24, 2019 09:13
Ruby on Ice 2019 Notes
@fanaugen
fanaugen / leipzig.md
Last active July 5, 2019 11:30
Leipzig Must-see

Must-see locations in Leipzig

It depends, of course, on whether you’re looking for nature, culture, history, art, music, or night life, but here are some things to check out:

  • Obviously, city center, Augustusplatz, with its new Mein Building of Leipzig University (that looks like a church, because it was built where the GDR had destroyed a centuries-old church)
  • Thomaskirche, if you want to listen to organ music, or see the final resting ground of the mortal remains of J.S. Bach
  • Moritzbastei – just behind the city skyscraper that is visible from anywhere. This is an underground bar / concert location. Literally underground, with nice round vaults
  • The area around Markt is also worth walking around
  • Clara-Zetkin-Park (esp. area around Sachsenbrücke)
@fanaugen
fanaugen / podcasts.md
Last active January 9, 2019 12:45
dev podcasts

📻 My Favourite Podcasts

developer podcasts I’ve listened to

Some of these I still subscribe to, others are no longer in my subsctiption list to make time for non-dev related podcasts

@fanaugen
fanaugen / date string parser.scpt
Last active October 25, 2018 06:41
simple date parser
(*
* Example of a simple string-to-date parser.
* Uses AppleScript's text item delimiters to split the input string
*)
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to {"-", "T", ":", "Z"}
set dateString to "2011-12-23T08:00:00Z" -- what's Z for?
@fanaugen
fanaugen / images to TIFF.scpt
Last active October 25, 2018 06:39
Batch-convert images to TIFF (AppleScript, Mac OS X)
# this script converts all PDFs and images selected in Finder
# to the TIFF format and appends .tif to the file name
set t to (time of (current date))
tell application "Finder" to set sel to selection
set errors to {}
tell application "Image Events"
repeat with img_file in sel
try
set img_file to img_file as text
@fanaugen
fanaugen / config.fish
Created July 26, 2017 23:51
fish abbreviation for each git alias
# for each git alias of the form XX, create fish abbreviation gXX
function git_alias --desc "Add a git abbreviation"
abbr -a g$argv[1] git $argv[2]
end
for _alias in (git config --global --get-regexp '^alias\.*' | sed s/alias.//)
git_alias (string split -m1 ' ' "$_alias")
end
@fanaugen
fanaugen / export-tasks.sh
Last active June 8, 2017 14:20
rake tasks to wiki
#!/bin/bash
# Run `rake -D` and format the task descriptions as a
# GitHub-Markdown table (for our Wiki)
# Write the output to tasks.md
touch tasks.md
echo '<dl>' > tasks.md
bundle exec rake -D |