Skip to content

Instantly share code, notes, and snippets.

View towens's full-sized avatar

T Owens towens

  • Nike
  • Portland
View GitHub Profile
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@towens
towens / test.jsonnet
Created June 28, 2019 15:00
jsonnet - kube-prometheus monitoring extra namespace and adding a persistent volume claim
local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
local pvc = k.core.v1.persistentVolumeClaim;
local kp =
(import 'kube-prometheus/kube-prometheus.libsonnet') +
// Uncomment the following imports to enable its patches
// (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-managed-cluster.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-node-ports.libsonnet') +
// (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') +
sudo visudo
getenforce
setenforce 0
sudo setenforce 0
getenforce
sudo reboot
sudo getenforce
exit
curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
sudo sh bootstrap-salt.sh git v2017.7.2
@towens
towens / install_python27x.sh
Last active December 1, 2017 07:26 — forked from andriisoldatenko/install_python.sh
Install local Python 2.7.10 on CentOS 7
TMP_PATH=~/tmp_install_python
# Versions section
PYTHON_MAJOR=2.7
PYTHON_VERSION=$PYTHON_MAJOR.14
rm -rf $TMP_PATH
mkdir $TMP_PATH
cd $TMP_PATH
cronscript:
file.managed:
- name: /var/lib/airflow/cronfile.sh
- source: salt://dag_sync/cronfile.sh.j2
- template: jinja
- group: airflow
- user: airflow
- mode: 700
- require:
- user: airflow
base:
'*':
- thing0
- thing1
'name:a_name'
- match: grain
- thing3
airflow[hive]:
pip.installed
@towens
towens / .gitignore_global
Last active April 12, 2016 22:44
Basic .gitignore_global files
# Compiled source #
# ###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #