Skip to content

Instantly share code, notes, and snippets.

@fiedl
fiedl / Gemfile
Created September 17, 2013 21:00
gmaps4rails with turbolinks
# ...
gem 'turbolinks'
gem 'gmaps4rails', '~> 2.0.1', git: 'https://github.com/fiedl/Google-Maps-for-Rails'
# then run 'bundle install' and restart the rails server.
@fiedl
fiedl / svn-for-git-users.md
Last active December 30, 2015 21:49
A small Subversion guide for Git users. Forked from http://blog.tfnico.com/2011/02/small-subversion-guide-for-git-users.html.

A small Subversion guide for Git users

(Forked from http://blog.tfnico.com/2011/02/small-subversion-guide-for-git-users.html.)

A recurring problem for us Git users is that we tend to forget the good old Subversion tricks. We want to do some patch on some old code in a Subversion repo, and suddenly we've got no idea how to work around.

Here's a quick guide:

> git pull

> svn update

@fiedl
fiedl / wingolfsplattform-re-clone.sh
Last active December 31, 2015 23:19
Wingolfsplattform Re-Clone.
# Siehe auch Trello: https://trello.com/c/irNlzi5l/462-repo-erneut-klonen
cd ~/rails
mv wingolfsplattform wingolfsplattform.to-delete
git clone git@github.com:fiedl/wingolfsplattform.git
mv ~/rails/wingolfsplattform.to-delete/config/database.yml ~/rails/wingolfsplattform/config/database.yml
cd ~/rails/wingolfsplattform
bundle exec rake
@fiedl
fiedl / sshfs.sh
Created January 5, 2014 11:48
mount ssh folder with rw access for my own user
# install tools (Mac OS)
brew install sshfs
# mount ssh folder with rw access for my own user
mkdir /Volumes/foo
sshfs fiedl@192.168.0.105:/path/to/folder /Volumes/foo -o idmap=user -o uid=$(id -u) -o gid=$(id -g)
# References
#
# * http://wiki.ubuntuusers.de/FUSE/sshfs
@fiedl
fiedl / gmaps_turbolinks.js.coffee
Created September 15, 2013 18:26
"Hack" that dynamically loads the [gmaps4rails google api](https://github.com/apneadiving/Google-Maps-for-Rails) when using [turbolinks](https://github.com/rails/turbolinks/).
@fiedl
fiedl / Columns of equal height.markdown
Created June 30, 2016 16:33
Columns of equal height

Columns of equal height

Bootstrap columns with boxes of equal height inside.

A Pen by Fiedl on CodePen.

License.

@fiedl
fiedl / macos-server-calendar-and-addressbook-reset.md
Last active November 8, 2016 15:59
macOS Calendar & Address Book Server: Reset

Issue

  • I cannot sync my contacts with macOS Server anymore.
  • pythonwrapper cpu usage is high.
  • "Unable to verify account or password."
  • There are hundreds of addressbook groups called "addressbook".

Resolution

Attention: This will only backup the calendar and addressbook data. If you use other macOS server services, make sure to backup their data as well!

@fiedl
fiedl / README.md
Last active May 4, 2017 05:13
Write markdown emails in os x

Using markdown-service-tools, write markdown emails and convert to rich text via hot key before sending.

Install

brew cask install markdown-service-tools
brew install multimarkdown 
@fiedl
fiedl / veranstaltungen.html
Created May 30, 2017 12:43
Veranstaltungen auf Homepage einbinden
<!-- Dieser Teil lädt die Bibliothek jQuery (jquery.com). -->
<script src="//code.jquery.com/jquery-3.2.1.min.js"></script>
<!-- Dieser Teil platziert einen Container für die Veranstaltungs-Anzeige: -->
<h2>Veranstaltungen:</h2>
<p id="events">
Veranstaltungen werden geladen.
</p>
<!-- Dies ist der Kalender-Abo-Link. Hier den gewünschten HTML-Feed (aus Schritt 2) eintragen: -->