Skip to content

Instantly share code, notes, and snippets.

Avatar

Samuel ROZE sroze

View GitHub Profile
View designer.html
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../paper-progress/paper-progress.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@sroze
sroze / .drone.yml
Created Mar 18, 2015
Drone continous deployment with Capistrano
View .drone.yml
[...]
deploy:
bash:
when:
branch: master
script:
- bundle install
- bundle exec cap staging deploy
View etc-default-kubernetes-proxy
PROXY_OPTIONS="--master=http://{MASTER_IP}:8080 --v=2"
View etc-default-flanneld
FLANNELD_OPTIONS="--etcd-endpoints=http://${MASTER_IP}:4001"
View etc-default-etcd
ETCD_OPTIONS="--addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data"
@sroze
sroze / kubernetes.diff
Created May 25, 2015
Kubernetes patch
View kubernetes.diff
diff --git a/cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml b/cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml
index dab1fe1..153fa03 100644
--- a/cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml
+++ b/cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml
@@ -20,8 +20,9 @@ spec:
name: heapster
command:
- /heapster
- - --source=kubernetes:https://kubernetes
+ - --source=kubernetes:http://kubernetes-ro?auth=
@sroze
sroze / etc-init-docker-bootstrap
Created May 25, 2015
Docker bootstrap upstart
View etc-init-docker-bootstrap
description "Docker bootstrap"
script
# modify these in /etc/default/$UPSTART_JOB (/etc/default/docker-bootstrap)
DOCKER=/usr/bin/docker
DOCKER_OPTIONS="-d -H unix:///var/run/docker-bootstrap.sock -p /var/run/docker-bootstrap.pid --iptables=false --ip-masq=false --bridge=none --graph=/var/lib/docker-bootstrap"
if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB
fi
exec "$DOCKER" $DOCKER_OPTIONS
@sroze
sroze / "configuration" on CP ui
Last active Jun 14, 2016
Docker & CP example 1
View "configuration" on CP ui
environment_variables:
- name: GITHUB_TOKEN
value: thevalue
- name: SOME_SECRET
value: blahblha
View keybase.md

Keybase proof

I hereby claim:

  • I am sroze on github.
  • I am sroze (https://keybase.io/sroze) on keybase.
  • I have a public key whose fingerprint is D12F 83A6 F476 C26A 0563 3F12 8354 26F5 5A19 FB84

To claim this, I am signing this object:

@sroze
sroze / download-file.sh
Last active Dec 15, 2017
Share files with transfer.sh (encrypted)
View download-file.sh
curl https://transfer.sh/<unique-string>/database.sql | gpg -o- > database.sql