Skip to content

Instantly share code, notes, and snippets.


Manuel Meurer manuelmeurer

View GitHub Profile
View gist:d8f29185b653412ed5d17c6649e18464
- "monthly RubyMotion meetup" - where can I find info about this? Is it a real-world meetup or online? I googled it and found
this post from 2013:
But the link to is dead.
- The link to that is mentioned in the README on
is also dead. Where can we find the community-driven part of RubyMotion documentation?
- "RubyMotion's templates are now open source" - I'd recommend adding a link to

Keybase proof

I hereby claim:

  • I am manuelmeurer on github.
  • I am manuelmeurer ( on keybase.
  • I have a public key whose fingerprint is 8253 5CB1 5C09 0D6C 74A3 DFBC A616 76F5 2806 A868

To claim this, I am signing this object:

manuelmeurer /
Created Mar 29, 2016
Bowling Code Challenge

Bowling Code Challenge

  • Please create a repository in GitHub (or a similar service) so that we can follow your progress.
  • The implementation should use "vanilla" JavaScript (no libraries or frameworks).
  • Remember that we are more interested how you approach this problem than seeing you complete all the features (if you don't have enough time to finish everything, simply explain how you would continue the implementation).

Minimum requirements

  • Implement a scoring system for a bowling game according to these rules:
  • A game consists of 10 frames.
manuelmeurer / product.rb
Last active Sep 6, 2015 — forked from AttyC/product.rb
Unit test - average_rating
View product.rb
class Product < ActiveRecord::Base
has_many :orders
has_many :comments
def average_rating
validates :name, presence: true
manuelmeurer / swap.yml
Created Jun 30, 2015
Ansible role for creating a Swap file
View swap.yml
- name: set swap_file variable
swap_file: /mnt/{{ swap_space }}.swap
- name: check if swap file exists
path: "{{ swap_file }}"
register: swap_file_check
- name: create swap file
View carousel.css
manuelmeurer / INFO
Last active Aug 29, 2015
Redis stuff
# Server
os:Linux 3.13.0-24-generic x86_64
View _etc_monit.d_mysql
check process mysql
with pidfile /var/run/mysqld/
start program = "/usr/sbin/service mysql start" with timeout 60 seconds
stop program = "/usr/sbin/service mysql stop" with timeout 60 seconds
if totalmem > 400 MB for 5 cycles then alert
if totalmem > 600 MB for 5 cycles then restart
if cpu > 50% for 5 cycles then alert
if cpu > 90% for 5 cycles then restart
if 3 restarts within 5 cycles then timeout
View gist:c9f2d4cdc717c5e67961
git@web02:~/repositories/manuel/myapp.git/hooks$ ls -lah
total 48K
drwxrws--- 2 git git 4.0K Dec 3 2013 .
drwxrws--- 7 git git 4.0K Dec 3 2013 ..
-rwxrwx--- 1 git git 452 Dec 3 2013 applypatch-msg.sample
-rwxrwx--- 1 git git 896 Dec 3 2013 commit-msg.sample
-rwxrwx--- 1 git git 189 Dec 3 2013 post-update.sample
-rwxrwx--- 1 git git 398 Dec 3 2013 pre-applypatch.sample
-rwxrwx--- 1 git git 1.6K Dec 3 2013 pre-commit.sample
-rwxrwx--- 1 git git 1.3K Dec 3 2013 prepare-commit-msg.sample
manuelmeurer / import_backup.rake
Created Jul 7, 2014
Download backup containing Postgres and Redis dumps from S3 and import into local db
View import_backup.rake
desc 'Download and import the lastest backup from S3'
task import_backup: :environment do
# Configure AWS
AWS.config \
# Download and extract backup file
bucket_name = 'kc-backups'