Skip to content

Instantly share code, notes, and snippets.

View ekesken's full-sized avatar

Erhan Kesken ekesken

View GitHub Profile
#!/bin/bash
set -eo pipefail
cat /tmp/copy-pasted-text-from-browser.txt \
| grep host | awk -F: '{print $2}' \
| xargs -P6 -n 10 aws ec2 describe-instances --query 'Reservations[*].Instances[*].PrivateIpAddress' --output text --instance-ids \
| xargs -P6 -n 1 -I % ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" % docker image prune -a -f

Keybase proof

I hereby claim:

  • I am ekesken on github.
  • I am ekesken (https://keybase.io/ekesken) on keybase.
  • I have a public key ASD0HJp5iNzkrNEH3I359IbaClCzd5PbHemvDN8g13H7dwo

To claim this, I am signing this object:

@ekesken
ekesken / Dockerfile
Last active August 17, 2016 19:35
libnetwork_plugin_issue_60
FROM ubuntu:16.04
RUN apt-get update && apt-get --yes --no-install-recommends install \
curl libltdl7 iptables python-dev git python-setuptools python-pip gcc iproute2
RUN easy_install --upgrade pip
RUN curl -Ok https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_1.12.0-0~xenial_amd64.deb
RUN dpkg -i docker-engine_1.12.0-0~xenial_amd64.deb
RUN echo 'DOCKER_OPTS="-D --cluster-store=etcd://localhost:2379"' >> /etc/default/docker
RUN curl -Lk https://github.com/coreos/etcd/releases/download/v2.3.7/etcd-v2.3.7-linux-amd64.tar.gz | tar zx -C /usr/local/
RUN ln -s /usr/local/etcd-v2.3.7-linux-amd64/etcd /usr/local/bin/etcd
Dec 7 08:58:22 mesos-slave-node-012 mesos-slave[56099]: I1207 08:58:22.581887 56133 slave.cpp:1144] Got assigned task collector_tr_insurance_ebv_facebookscraper.ab3ddc6b-9cc0-11e5-8f21-0242ec411128 for framework 20151113-112010-100670892-5050-7957-0001
Dec 7 08:58:22 mesos-slave-node-012 mesos-slave[56099]: I1207 08:58:22.582346 56133 slave.cpp:1254] Launching task collector_tr_insurance_ebv_facebookscraper.ab3ddc6b-9cc0-11e5-8f21-0242ec411128 for framework 20151113-112010-100670892-5050-7957-0001
Dec 7 08:58:22 mesos-slave-node-012 mesos-slave[56099]: I1207 08:58:22.591339 56133 slave.cpp:4208] Launching executor collector_tr_insurance_ebv_facebookscraper.ab3ddc6b-9cc0-11e5-8f21-0242ec411128 of framework 20151113-112010-100670892-5050-7957-0001 in work directory '/tmp/mesos/slaves/20151201-192538-83893676-5050-7646-S44/frameworks/20151113-112010-100670892-5050-7957-0001/executors/collector_tr_insurance_ebv_facebookscraper.ab3ddc6b-9cc0-11e5-8f21-0242ec411128/runs/ed5f4f67-464d-4786-9628-cd48732de6b7'
Dec
@ekesken
ekesken / wrongly_assigned_marathon_task_at_chronos.txt
Last active December 7, 2015 18:32
marathon task is wrongly assigned to chronos framework after task failure
mesos-slave:
===========
Dec 7 08:58:22 mesos-slave-node-012 mesos-slave[56099]: I1207 08:58:22.581887 56133 slave.cpp:1144] Got assigned task collector_tr_insurance_ebv_facebookscraper.ab3ddc6b-9cc0-11e5-8f21-0242ec411128 for framework 20151113-112010-100670892-5050-7957-0001
Dec 7 08:58:22 mesos-slave-node-012 mesos-slave[56099]: I1207 08:58:22.582346 56133 slave.cpp:1254] Launching task collector_tr_insurance_ebv_facebookscraper.ab3ddc6b-9cc0-11e5-8f21-0242ec411128 for framework 20151113-112010-100670892-5050-7957-0001
Dec 7 08:58:22 mesos-slave-node-012 mesos-slave[56099]: I1207 08:58:22.591339 56133 slave.cpp:4208] Launching executor collector_tr_insurance_ebv_facebookscraper.ab3ddc6b-9cc0-11e5-8f21-0242ec411128 of framework 20151113-112010-100670892-5050-7957-0001 in work directory '/tmp/mesos/slaves/20151201-192538-83893676-5050-7646-S44/frameworks/20151113-112010-100670892-5050-7957-0001/executors/collector_tr_insurance_ebv_facebookscraper.ab3ddc6b-9cc0-11e5-8f21-0242ec411128/runs/ed5f4f67-464d-47
@ekesken
ekesken / repeat_percolation_loss.sh
Last active August 29, 2015 14:21
repeat_percolation_loss
#!/bin/bash
NODE_COUNT=${1:-10}
RUNNING_MODE=${2:-"false"}
ELASTICSEARCH_VERSION=1.5.2
# ELASTICSEARCH_VERSION=1.1.0
ELASTICSEARCH=elasticsearch-$ELASTICSEARCH_VERSION
function shutdown_running_elasticsearch_servers {
while true
@ekesken
ekesken / objectified-tr.srt
Last active December 12, 2015 03:38
objectified subtitle turkish translation
1
00:01:08,835 --> 00:01:10,894
Bir nesne gördüğünüzde,
2
00:01:11,404 --> 00:01:16,865
bir çok varsayımda bulunursunuz
o nesne hakkında... birkaç saniye içerisinde.
3
@ekesken
ekesken / todo.md
Created October 15, 2011 10:43
frontend engineer todos
@ekesken
ekesken / about.md
Last active September 27, 2015 15:08 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer