Skip to content

Instantly share code, notes, and snippets.

View iameli's full-sized avatar
💭
Beep boop

Eli Mallon iameli

💭
Beep boop
View GitHub Profile
.ghx-sprint-support .ghx-issue {
height: 40px;
overflow: hidden;
padding: 0px 66px 0px 20px;
}
.ghx-issue .ghx-issue-content {
padding: 0px 5px 5px 5px;
}
@iameli
iameli / gist:611ad345f908248e9440
Created October 8, 2015 00:48
Kubernetes #10959 dmesg
[139787.676346] Call Trace:
[139787.676353] [<ffffffff817c3da8>] dump_stack+0x45/0x57
[139787.676357] [<ffffffff817c1ab9>] dump_header+0x7f/0x1e7
[139787.676362] [<ffffffff8117e28b>] oom_kill_process+0x22b/0x390
[139787.676367] [<ffffffff811ea158>] mem_cgroup_oom_synchronize+0x598/0x5d0
[139787.676370] [<ffffffff811e5400>] ? mem_cgroup_css_online+0x270/0x270
[139787.676374] [<ffffffff8117eac8>] pagefault_out_of_memory+0x18/0x90
[139787.676379] [<ffffffff810ac705>] ? update_curr+0x75/0x180
[139787.676383] [<ffffffff81063985>] mm_fault_error+0x85/0x170
[139787.676385] [<ffffffff81063f48>] __do_page_fault+0x4d8/0x5b0
core@ip-10-0-0-212 ~ $ docker pull gcr.io/surveyadmin-001/wolfgang:commit_e78e07eb6ce5727af6ffeb4ca3e903907e3ab83a
commit_e78e07eb6ce5727af6ffeb4ca3e903907e3ab83a: Pulling from surveyadmin-001/wolfgang
1565e86129b8: Already exists
a604b236bcde: Already exists
5174fe297e22: Already exists
9c2f809244cf: Already exists
027ecf3380a6: Already exists
dbb379a5a07f: Already exists
1fd2a94cf39d: Already exists
@iameli
iameli / balancer.service.yml
Created January 1, 2016 02:48
My attempt to make one ELB balance multiple Kubernetes services.
apiVersion: v1
kind: Service
metadata:
name: balancer
namespace: default
spec:
type: ClusterIP
clusterIP: 10.3.0.101
selector:
app: balancer
@iameli
iameli / timestamp.js
Created May 4, 2016 03:21 — forked from hurjas/timestamp.js
Print out a nicely formatted timestamp in JavaScript.
/**
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
*/
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time
@iameli
iameli / resource.js
Created May 5, 2016 23:39
RethinkDB issue #5738
class Resource {
// This is a fairly straighforward REST endpoint.
index(req, res, next) {
r.table(this.name).run(req.conn)
.then(function(cursor) {
return cursor.toArray();
})
.then(function(docs) {

Keybase proof

I hereby claim:

  • I am iameli on github.
  • I am iameli (https://keybase.io/iameli) on keybase.
  • I have a public key whose fingerprint is 849C D647 E707 5182 08BC E227 94E3 CBA7 BEFC 7EF4

To claim this, I am signing this object:

@iameli
iameli / quiet.Dockerfile
Created July 11, 2016 18:41
Dockerfile I was using to compile Quiet
FROM ubuntu:xenial
RUN apt-get update
RUN apt-get -y install build-essential cmake git libsndfile1-dev autoconf libjansson-dev portaudio19-dev libsndfile1-dev
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib
RUN git clone https://github.com/quiet/libfec.git && cd libfec && ./configure && make && make install
@iameli
iameli / nginx-configmap.yaml
Created August 30, 2016 17:16
Just a cool way to run a customized nginx from one file in Kubernetes.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cachet
namespace: csats-com
spec:
template:
metadata:
labels:
@iameli
iameli / resolve-host-path.sh
Created September 2, 2016 02:04
Script for translating container volume paths into their antecedent host paths.
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# We need to run a Docker container in Jenkins that mounts our current directory. Unfortunately,
# Jenkins is also in a container, so its current directory differs from the host directory. This
# script figures out the Docker ID of our current container and translates the path to a host path
# if necessary.