cat /proc/sys/net/bridge/bridge-nf-call-iptablessysctl vm.swappiness=0
swapoff -aFWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
| source "https://rubygems.org" | |
| gem "shrine", github: "janko-m/shrine" | |
| gem "rom-repository" | |
| gem "rom-sql" | |
| gem "sqlite3" | |
| gem "dry-validation" | |
| gem "roda" | |
| gem "sucker_punch", "~> 2.0" |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| class WebhooksController < ActionController::Base | |
| WEBHOOK_KEY = "some_key" # You could also use an API request to lookup the key | |
| before_filter :verify_request_signature | |
| # See: http://help.mandrill.com/entries/23704122-Authenticating-webhook-requests | |
| def verify_request_signature | |
| signed_data = request.url | |
| post_params = request.request_parameters.dup # POST parameters |
| <!-- /app/views/admin/users/new_invitiations.html.erb --> | |
| <h2>Send invitation</h2> | |
| <%= form_for @user, :url => send_invitation_admin_users_path do |f| %> | |
| <table style='width: 50%'> | |
| <tr> | |
| <td><%= f.label :first_name %></td> | |
| <td><%= f.text_field :first_name %></td> |
| module Enumerable | |
| def deep_freeze | |
| unless self.is_a? String | |
| frozen = self.dup.each do |key, value| | |
| if (value.is_a?(Enumerable) && !value.is_a?(String)) | |
| value.deep_freeze | |
| else | |
| value.freeze | |
| end | |
| end |