Skip to content

Instantly share code, notes, and snippets.

Avatar

Weston Bassler geekbass

  • Emburse
  • Columbus, Ohio
View GitHub Profile
@geekbass
geekbass / install.sh
Last active Oct 27, 2018
Installing VSCode on ChromeOS Linux Beta
View install.sh
#!/bin/bash
sudo apt-get update
sudo apt-get install -y gpg
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y code
@geekbass
geekbass / main.tf
Created Sep 21, 2018
Main.tf - - Upgrading the Cluster
View main.tf
module "dcos" {
source = "dcos-terraform/dcos/aws"
cluster_name="my-open-dcos-cluster"
ssh_public_key_file="~/.ssh/id_rsa.pub"
num_masters = "1"
num_private_agents = "3"
num_public_agents = "1"
@geekbass
geekbass / main.tf
Created Sep 21, 2018
Main.tf - - Scaling a Cluster
View main.tf
module "dcos" {
source = "dcos-terraform/dcos/aws"
cluster_name="my-open-dcos-cluster"
ssh_public_key_file="~/.ssh/id_rsa.pub"
num_masters = "1"
num_private_agents = "3"
num_public_agents = "1"
@geekbass
geekbass / main.tf
Created Sep 21, 2018
Main.tf - - Creating a Cluster
View main.tf
module "dcos" {
source = "dcos-terraform/dcos/aws"
cluster_name="my-open-dcos-cluster"
ssh_public_key_file="~/.ssh/id_rsa.pub"
num_masters = "1"
num_private_agents = "2"
num_public_agents = "1"
@geekbass
geekbass / tagged.md
Created Sep 11, 2018
Tagging commits/branches
View tagged.md

1. Inside your branch, add the tag:

git tag 0.0.6

2. You can push the tag as an update to the branch:

git push origin 0.0.6 --tags
@geekbass
geekbass / default.conf
Last active Sep 5, 2018
kubenode-blue
View default.conf
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://kube-node-0-kubelet.kubernetes-blue.mesos:30001;
sub_filter_types text/html;
sub_filter_once off;
}
@geekbass
geekbass / forked.md
Created Aug 22, 2018
Sync forked Repo
View forked.md

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@geekbass
geekbass / playbook.yaml
Created Jul 31, 2018
Ansible 'when' example for playbook
View playbook.yaml
---
- hosts: hosts
vars:
tasks:
- name: add filebeat yaml config for Non Agents ONLY
copy: src=filebeat.yml dest=/etc/filebeat/filebeat.yml owner=root group=root
when: "'non-agents' in group_names"
- name: add filebeat yaml config for Agents ONLY
@geekbass
geekbass / default.conf
Last active Jul 9, 2018
Kubernetes on DC/OS Dashboard Proxy
View default.conf
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://apiserver-insecure.kubernetes.l4lb.thisdcos.directory:9000/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/;
sub_filter_types text/html;
sub_filter_once off;
sub_filter '="/' '="/service/kubernetes-dash/';