Skip to content

Instantly share code, notes, and snippets.

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

Manuel Meurer manuelmeurer

🤷‍♂️
View GitHub Profile
@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',
@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.

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 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.
@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 / 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 / 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 / _etc_monit.d_mysql
Last active January 10, 2021 21:38
Monit config files
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
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