Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Josh Delsman voxxit

🏠
Working from home
View GitHub Profile
View Dockerfile
FROM debian
COPY slow /usr/bin/
RUN apt-get update \
&& apt-get -y install --no-install-recommends kmod wget
CMD ["slow", "--help"]
@voxxit
voxxit / large.txt
Last active Dec 16, 2016 — forked from maxguzenski/redis-elasticache-benchmark.txt
redis-benchmark on Elasticache instancies
View large.txt
//
// m2.xlarge | vcpu: 2 | memory: 16.7
//
PING_INLINE: 30674.85 requests per second
PING_BULK: 30674.85 requests per second
SET: 30395.14 requests per second
GET: 30674.85 requests per second
INCR: 30959.75 requests per second
LPUSH: 31250.00 requests per second
LPOP: 30030.03 requests per second
@voxxit
voxxit / truthy.rb
Created Feb 4, 2016 — forked from mmcclimon/truthy.rb
Port Perl's truthy values to Ruby.
View truthy.rb
#!/usr/bin/env ruby
class Object
# The following are falsy: false, nil, 0, "", and empty arrays/hashes.
# Anything else falls is truthy. This emulates Perl's truthiness.
def truthy?
if self.nil?
return false
elsif self.is_a? Fixnum
return self != 0
View gist:6b4f0be3aa9ad6f49106
#!/bin/sh
#
# Downloads and installs the startssl CA certs into the global Java keystore
# on Alpine Linux.
#
# Check if JAVA_HOME is set
[ "$JAVA_HOME" = "" ] && echo "ERROR: JAVA_HOME must be set" && exit 1
# Check if cacerts file is present
@voxxit
voxxit / Dockerfile
Last active Aug 29, 2015 — forked from fairchild/Dockerfile
basic dockerfile for apt-cacher-ng
View Dockerfile
FROM debian:jessie
MAINTAINER j@srv.im
EXPOSE 3142
VOLUME [ "/var/cache/apt-cacher-ng" ]
RUN apt-get update \
&& apt-get install -y apt-cacher-ng \