(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# | |
# Building V8 for alpine is a real pain. We have to compile from source, because it has to be | |
# linked against musl, and we also have to recompile some of the build tools as the official | |
# build workflow tends to assume glibc by including vendored tools that link against it. | |
# | |
# The general strategy is this: | |
# | |
# 1. Build GN for alpine (this is a build dependency) | |
# 2. Use depot_tools to fetch the V8 source and dependencies (needs glibc) | |
# 3. Build V8 for alpine |
日付: 2017年10月25日 17:08 | |
件名: Steve Maddenでございます。 | |
ミヤモト様 | |
お世話になっております。 | |
IT業界に特化したヘッドハンター、Steve Maddenと申します。 | |
度々のご連絡、大変失礼いたします。 | |
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
#!/usr/bin/env node | |
// Define hook in your config <hook src="scripts/cordova-google-services-version-gradle-fix.js" type="before_prepare" /> | |
var sourceDir = ''; | |
var platformDir = 'platforms/android'; | |
var fs = require('fs'); | |
var path = require('path'); | |
var readline = require("readline"); |
# This task should be run inside an environment that is already configured to connect to the redis | |
# instance that we're transfering AWAY FROM. | |
# | |
# The task should be handed the URL of the redis instance that we're MOVING TO. | |
# | |
# To run it and pass in the destination Redis you'd do something like this: | |
# rake sidekiq:transfer[redis://...] | |
# | |
# As jobs are added to the destination Redis, they're deleted from the source Redis. This | |
# allows the task to be restarted cleanly if it fails in the middle due to a network error |
class QueueSizeMetricWorker | |
include Sidekiq::Worker | |
include Sidetiq::Schedulable | |
recurrence { minutely } | |
sidekiq_options retry: false | |
# Publish a custom metric on CloudWatch with the Sidekiq queue size | |
def perform | |
cloudwatch = Aws::CloudWatch::Client.new( |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Last year I started playing around with using memoized private helper methods in my controllers instead of the traditional instance variable assigns we see in RoR controllers. Here's an example:
class PostsController < ApplicationController
helper_method :new_post, :post, :posts
def new; end
def show; end
def edit; end
def index; end