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

Ruby VIPS Benchmark with different GC strategies

ruby:

ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15]

test:

begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
# gem 'activerecord', '5.0.0.beta2'
// AWS Lamda Function to Test Dynamic VIPS Binary
var exec = require('child_process').exec;
var spawn = require('child_process').spawn;
var https = require('https');
// Example Event:
// {
// "cmd": "/tmp/vips/bin/vips -v",
// "url": "https://www.dropbox.com/s/nba1piz7wfx2wb0/vips-8.3.0-0a4991c-dynamic.tar.bz2?dl=1"
// }
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
<!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">
--- 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

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
# CASE implementation for Arel
# Based on: https://github.com/take-five/acts_as_ordered_tree/blob/master/lib/acts_as_ordered_tree/transaction/dsl.rb
# Extended with support for CASE expr WHEN expr[, expr, ...] by Felix Buenemann
module Arel
module Nodes
# Case node
#
# @example
# switch.when(table[:x].gt(1), table[:y]).else(table[:z])
-- strip_md(text) - strips markdown from text
-- (c) 2014 Felix Buenemann https://github.com/felixbuenemann
-- License: Public Domain
CREATE OR REPLACE FUNCTION strip_md(input text) RETURNS text AS $$
BEGIN
-- strip html tags
input := regexp_replace(input, '<[^>]+>', '', 'g');
-- strip list leaders and blockquotes
input := regexp_replace(input, '^([\s]*)([\*\-\+]|\d\.|>)\s+', '\1', 'ng');
-- strip setext header underlines
--- 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);
+