Skip to content

Instantly share code, notes, and snippets.


Dominik Schmidt iDuuck

View GitHub Profile
iDuuck / import-pg-mongodb.rb
Last active Aug 29, 2015
Because I didn't found a simple solution for importing the database from Heroku (Postgresql) on my localhost (Mongoid). Import your database on localhost or online with this script (from Heroku)
View import-pg-mongodb.rb
## Requirements:
## - Ruby on Rails
## - Existing Heroku Application
## - HTTParty
# Get the json content of the
# backup and parse it
url = ''
json = HTTParty.get(url)
iDuuck / gist:8b91138c070502f21743
Created Jun 24, 2014
⌘ + Enter to send an email
View gist:8b91138c070502f21743
# ~/.osx —
# Add the keyboard shortcut ⌘ + Enter to send an email in
defaults write NSUserKeyEquivalents -dict-add "Send" -string "@\\U21a9"
iDuuck / gist:58a4e663a5ecace0ec45
Created Jan 23, 2015
View gist:58a4e663a5ecace0ec45
"auto_indent": true,
iDuuck / reject_post.rb
Created May 7, 2016
How to reject a post based on some attributes
View reject_post.rb
# We are using the default ruby http client for the request to the
# shortened url, because otherwise a Gemfile or something different
# would be necessary
require 'net/http'
# I am using an example url from (with url shortener)
uri = URI('')
res = Net::HTTP.get_response(uri)


Currently, we are working on a project, which is currently in design phase. Your assignment will be the development of the application with React.js.

Looking forward to your output.

If windows is used, .sketch files can be opened with Lunacy