Skip to content

Instantly share code, notes, and snippets.

View manuelmeurer's full-sized avatar
🤷‍♂️

Manuel Meurer manuelmeurer

🤷‍♂️
View GitHub Profile
@manuelmeurer
manuelmeurer / INFO
Last active August 29, 2015 14:09
Redis stuff
# 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
@manuelmeurer
manuelmeurer / swap.yml
Created June 30, 2015 09:29
Ansible role for creating a Swap file
- 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
@manuelmeurer
manuelmeurer / product.rb
Last active September 6, 2015 14:24 — forked from AttyC/product.rb
Unit test - average_rating
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 / Instructions.md
Created March 29, 2016 19:10
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.

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 / gist:d8f29185b653412ed5d17c6649e18464
Last active May 14, 2018 08:32
RubyMotion blog post feedback
- "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.
@manuelmeurer
manuelmeurer / workers.js
Created February 23, 2022 08:49
Uplink Cloudflare Workers
addEventListener('fetch', event =>
event.respondWith(handleRequest(event.request))
)
const sitemapUrl = "https://uplink-files.s3.eu-central-1.amazonaws.com/sitemap.xml"
const mediumBlogPostPaths = [
'/announcing-our-cooperation-with-expath-to-help-freelancers-get-started-in-germany-49edbd765992',
'/why-you-should-work-freelance-as-a-software-developer-in-germany-52de81082f6f',
'/why-are-many-it-recruiters-technically-completely-incompetent-e924f559ed0e',
'/announcing-our-new-partner-exali-5c9acfb34e1c',
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Orca [1280]
Path: /Applications/Orca.app/Contents/MacOS/Orca
Identifier: com.stablyai.orca
Version: 1.4.138 (1.4.138)
Code Type: ARM-64 (Native)
Role: Background
Parent Process: launchd [1]