Skip to content

Instantly share code, notes, and snippets.

View sroze's full-sized avatar

Samuel ROZE sroze

View GitHub Profile
@sroze
sroze / designer.html
Created October 20, 2014 08:29
designer
<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 March 18, 2015 17:45
Drone continous deployment with Capistrano
[...]
deploy:
bash:
when:
branch: master
script:
- bundle install
- bundle exec cap staging deploy
@sroze
sroze / etc-default-etcd
Created May 23, 2015 15:08
etcd upstart
ETCD_OPTIONS="--addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data"
@sroze
sroze / etc-default-flanneld
Last active August 29, 2015 14:21
Flannel upstart
FLANNELD_OPTIONS="--etcd-endpoints=http://${MASTER_IP}:4001"
@sroze
sroze / etc-default-kubelet (master)
Last active September 17, 2019 02:53
Kuberlet upstart
IP=127.0.0.1 # Or your public/private IP
KUBELET_OPTIONS="--api_servers=http://$IP:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=$IP --config=/etc/kubernetes/manifests"
@sroze
sroze / etc-default-kubernetes-proxy
Created May 23, 2015 16:07
Kubernetes proxy upstart
PROXY_OPTIONS="--master=http://{MASTER_IP}:8080 --v=2"
@sroze
sroze / kubernetes.diff
Created May 25, 2015 13:36
Kubernetes patch
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 13:46
Docker bootstrap upstart
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 / MyCommand.php
Last active June 6, 2021 13:58
Symfony Command that read file from file name or STDIN
<?php
namespace AmceBundle\Command;
class MyCommand
{
// ...
protected function execute(InputInterface $input, OutputInterface $output)
{
#!/bin/bash
# git-branch-status
# * originally by http://github.com/jehiah
# * "s'all good!" message by http://github.com/kd35a
# * ANSI colors by http://github.com/knovoselic
# * column formatting, filters, and usage by http://github.com/bill-auger
# this script prints out pretty git branch sync status reports