Skip to content

Instantly share code, notes, and snippets.

Manuel Meurer manuelmeurer

Block or report user

Report or block manuelmeurer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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: http://www.rubymotion.com/news/2013/04/12/announcing-motionmeetup-monthly-online-rubymotion.html
But the link to http://meetup.rubymotion.com/ is dead.
- The link to http://rubymotion.com/applied that is mentioned in the README on https://github.com/amirrajan/rubymotion-applied
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
https://github.com/amirrajan/rubymotion-templates.
View keybase.md

Keybase proof

I hereby claim:

  • I am manuelmeurer on github.
  • I am manuelmeurer (https://keybase.io/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
manuelmeurer / Instructions.md
Created Mar 29, 2016
Bowling Code Challenge
View Instructions.md

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
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
comments.average(:rating).to_f
end
validates :name, presence: true
end
@manuelmeurer
manuelmeurer / swap.yml
Created Jun 30, 2015
Ansible role for creating a Swap file
View swap.yml
- name: set swap_file variable
set_fact:
swap_file: /mnt/{{ swap_space }}.swap
- name: check if swap file exists
stat:
path: "{{ swap_file }}"
register: swap_file_check
- name: create swap file
View carousel.css
@manuelmeurer
manuelmeurer / INFO
Last active Aug 29, 2015
Redis stuff
View INFO
# Server
redis_version:2.8.17
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:b700a3585c1549ae
redis_mode:standalone
os:Linux 3.13.0-24-generic x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.8.2
View _etc_monit.d_mysql
check process mysql
with pidfile /var/run/mysqld/mysqld.pid
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
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 \
access_key_id: Settings.aws.backup.key,
secret_access_key: Settings.aws.backup.secret,
region: Settings.aws.backup.region
# Download and extract backup file
bucket_name = 'kc-backups'
You can’t perform that action at this time.