Skip to content

Instantly share code, notes, and snippets.

View burdzwastaken's full-sized avatar
🌪️
:(){ :|: & };:

Matt Burdan burdzwastaken

🌪️
:(){ :|: & };:
View GitHub Profile
[master] burdz@~/code/spinnaker-service: tree [3/8971]
.
├── [4.0K] helm/
│ └── [4.0K] spinnaker-service/
#!/bin/bash
set -e
if [ -z $1 ]; then
echo "whoooops, please set team name"
exit
fi
cat <<EOF > /tmp/index.yaml
{
"environments": {
"kdev": {
"currentClusterName": "stable1"
},
"kqa": {
"currentClusterName": "stable1"
},
"kstg": {
"currentClusterName": "stable"
{{- $name := include "base.name" . -}}
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ $name }}
labels: {{ include "base.labels.mulesoft" . | nindent 4 }}
spec:
selector:
matchLabels:
app: {{ $name }}
#!/bin/bash
set -e
for node in $( kubectl get nodes | grep none | cut -d " " -f1 ); do
kubectl taint nodes $node node-role.kubernetes.io/master="":NoSchedule
done
root@ip-10-17-42-179:/# agent status
Getting the status from the agent.
==============
Agent (v6.4.2)
==============
Status date: 2018-09-05 21:02:14.665416 UTC
Pid: 344
Python Version: 2.7.15
@burdzwastaken
burdzwastaken / tmux-cheatsheet.markdown
Created April 27, 2018 22:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
osquery> select * from augeas where path='/etc/ssh/ssh_config';
+-----------------------------------------------------+------------------------------------------------------------------------------------+----------------------+---------------------+
| node | value | label | path |
+-----------------------------------------------------+------------------------------------------------------------------------------------+----------------------+---------------------+
| /files/etc/ssh/ssh_config/#comment[1] | This is the ssh client system-wide configuration file. See | #comment | /etc/ssh/ssh_config |
| /files/etc/ssh/ssh_config/#comment[2] | ssh_config(5) for more information. This file provides defaults for | #comment | /etc/ssh/ssh_config |
| /files/etc/ssh/ssh_config/#c
FROM scratch
ADD assets/ubuntu-xenial-core-cloudimg-amd64-root.tar.gz /
# a few minor docker-specific tweaks
# see https://github.com/docker/docker/blob/9a9fc01af8fb5d98b8eec0740716226fadb3735c/contrib/mkimage/debootstrap
RUN set -xe \
\
# https://github.com/docker/docker/blob/9a9fc01af8fb5d98b8eec0740716226fadb3735c/contrib/mkimage/debootstrap#L40-L48
&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d \
&& echo 'exit 101' >> /usr/sbin/policy-rc.d \