Skip to content

Instantly share code, notes, and snippets.

John Marcou johnmarcou

Block or report user

Report or block johnmarcou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@johnmarcou
johnmarcou / drone-setup.py
Last active Jul 31, 2018
Drone CI setup repo
View drone-setup.py
#!/usr/bin/env python3
# .drone.yml is used to configure your pipeline at the repo level
# let's write a .drone.setup.yml to setup our repo, configure some settings, and push some secrets
#
# Configure your Drone repo with a git-tracked file, then apply your conf
# Use a bit of sops (https://github.com/mozilla/sops) to protect your secrets
# First, export your Drone env var (DRONE_SERVER, DRONE_TOKEN)
# Run: ./drone-setup.py
#
View gist:cd216812aafc7ea18afb9d7ad472ef99
helm plugin install https://github.com/databus23/helm-diff --version v2.8.0+1
View merge_to_active_kubeconfig.sh
kmerge() {
NEW_KUBECONFIG=$1
ACTIVE_KUBECONFIG=${KUBECONFIG:-~/.kube/config}
BACKUP_KUBECONFIG=$ACTIVE_KUBECONFIG.bak
cp $ACTIVE_KUBECONFIG $BACKUP_KUBECONFIG 2>/dev/null || :
KUBECONFIG=$BACKUP_KUBECONFIG:$NEW_KUBECONFIG kubectl config view --flatten > $ACTIVE_KUBECONFIG
}
@johnmarcou
johnmarcou / crideploy.sh
Last active Feb 9, 2018
Deploy CRIPROXY on CoreOS
View crideploy.sh
set -x
mkdir -p /opt/bin/
#wget -O /opt/bin/criproxy https://github.com/Mirantis/criproxy/releases/download/v0.9.4/criproxy
chmod +x /opt/bin/criproxy
if [ ! -f /etc/systemd/system/kubelet.service.origin ]; then
@johnmarcou
johnmarcou / coreos-windows-share.sh
Created Mar 31, 2017 — forked from pantelis/coreos-windows-share.sh
Mount Windows share drives on CoreOS
View coreos-windows-share.sh
# WARNING - THIS IN NOT a SHELL SCRIPT - JUST a LIST of COMMANDS
# based on https://github.com/coreos/coreos-overlay/issues/595 with links updated
# Build cifs-utils in a container and copy it into /tmp on the host.
$docker run -t -i -v /tmp:/host_tmp fedora /bin/bash
# On the container bash prompt
yum groupinstall -y "Development Tools" "Development Libraries"
yum install -y tar
yum install -y bzip2
curl http://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-6.3.tar.bz2 | bunzip2 -c - | tar -xvf -
You can’t perform that action at this time.