Skip to content

Instantly share code, notes, and snippets.

View felixbuenemann's full-sized avatar
💭
I may be slow to respond.

Felix Bünemann felixbuenemann

💭
I may be slow to respond.
View GitHub Profile
# Backport rails/rails#22122 to rails 4.2.x
# See: https://github.com/rails/rails/pull/22122
fail "This monkey patch is no longer needed in ActiveRecord >= 5" if ActiveRecord::VERSION::MAJOR >= 5
module ActiveRecord
module ConnectionAdapters
class AbstractAdapter
def supports_advisory_locks?
false
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'yaml'
prog = File.basename $0
usage = <<EOF
#{prog} - kubectl/kubetail Wrapper for Deis Workflow Apps.
Usage:
Index: configure.ac
===================================================================
--- configure.ac (revision 15975)
+++ configure.ac (revision 15976)
@@ -353,6 +353,7 @@
AC_DEFINE([DARWIN_10_9], 100900, [DARWIN_VERS value for Mac OS X 10.9])
AC_DEFINE([DARWIN_10_10], 101000, [DARWIN_VERS value for Mac OS X 10.10])
AC_DEFINE([DARWIN_10_11], 101100, [DARWIN_VERS value for Mac OS X 10.11])
+ AC_DEFINE([DARWIN_10_12], 101200, [DARWIN_VERS value for macOS 10.12])
FROM alpine:3.4
RUN apk --no-cache add ruby ruby-irb ruby-json ruby-bigdecimal ruby-rake \
ruby-io-console ruby-bundler libstdc++ tzdata postgresql-client nodejs \
libxml2 libxslt libgcrypt sqlite-libs pcre curl postgresql bash procps \
&& cp /usr/bin/pg_dump /usr/bin/pg_restore /tmp/ \
&& apk del --purge postgresql \
&& mv /tmp/pg_dump /tmp/pg_restore /usr/bin/ \
&& echo "gem: --no-document" > /etc/gemrc
From 3a8fe43e9e073f26e44f62ad072079acd8b78de3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= <[email protected]>
Date: Mon, 30 May 2016 00:00:29 +0200
Subject: [PATCH] Add SPDY support back to Nginx with HTTP/2
Ported to 1.9.15 from 1.9.7 patch by Jiale Zhi from CloudFlare with
additional fixes to re-enable deprecated spdy directives and fix
compilation with http_v2 module enabled and spdy disabled.
---
auto/modules | 31 +
--- a/bundle/lua-resty-core-0.1.8/lib/resty/core/base64.lua 2016-05-01 22:12:03.000000000 +0200
+++ b/bundle/lua-resty-core-0.1.8/lib/resty/core/base64.lua 2016-05-01 23:44:45.000000000 +0200
@@ -20,9 +20,17 @@
size_t len, unsigned char *dst,
int no_padding);
+ size_t ngx_http_lua_ffi_encode_base64url(const unsigned char *src,
+ size_t len, unsigned char *dst,
+ int no_padding);
+

iTerm2 Scroll Benchmark

# Tests run on Mac OS X 10.11.4, Terminal window maximized on 1440x900@2x HiDPI 60Hz screen
# Menlo for Powerline 13pt, Antialiasing enabled, solid background, 10k lines scrollback buffer
sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz

# Count files and warm filesystem cache:
find /Volumes/FELIX4TBA/Restore | wc -l
--- a/configure 2016-04-18 21:26:28.000000000 +0200
+++ b/configure 2016-04-18 21:26:37.000000000 +0200
@@ -2439,6 +2439,63 @@
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_check_type
+
+# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
+# ----------------------------------------------------
+# Tries to find if the field MEMBER exists in type AGGR, after including
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Swiper Firefox Transition-Bug</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<!-- Link Swiper's CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.3.1/css/swiper.min.css">
Installed Packages
ImageMagick.x86_64 6.7.8.9-10.18.amzn1 @ami
alsa-lib.x86_64 1.0.22-3.9.amzn1 @ami
audit-libs.x86_64 2.4.1-5.27.amzn1 @ami
avahi-libs.x86_64 0.6.25-12.17.amzn1 @ami
basesystem.noarch 10.0-4.9.amzn1 @ami
bash.x86_64 4.2.46-12.34.amzn1 @ami
binutils.x86_64 2.23.52.0.1-55.65.amzn1 @ami
bzip2.x86_64 1.0.6-8.12.amzn1 @ami
bzip2-libs.x86_64 1.0.6-8.12.amzn1 @ami