Skip to content

Instantly share code, notes, and snippets.

View geekbass's full-sized avatar

Weston Bassler geekbass

  • Emburse
  • Columbus, Ohio
View GitHub Profile
@geekbass
geekbass / install.sh
Last active April 8, 2024 15:20
Installing VSCode on ChromeOS Linux Beta
#!/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 September 21, 2018 13:55
Main.tf - - Upgrading the Cluster
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 September 21, 2018 13:53
Main.tf - - Scaling a Cluster
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 September 21, 2018 13:48
Main.tf - - Creating a Cluster
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 September 11, 2018 13:52
Tagging commits/branches

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 September 5, 2018 19:57
kubenode-blue
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 August 22, 2018 14:59
Sync forked Repo

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 July 31, 2018 14:08
Ansible 'when' example for playbook
---
- 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 April 8, 2024 15:21
Kubernetes on DC/OS Dashboard Proxy
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/';