Skip to content

Instantly share code, notes, and snippets.

🌪
:(){ :|: & };:

Matt Burdan burdzwastaken

🌪
:(){ :|: & };:
Block or report user

Report or block burdzwastaken

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
View my-nightmare.yaml
[master] burdz@~/code/spinnaker-service: tree [3/8971]
.
├── [4.0K] helm/
│ └── [4.0K] spinnaker-service/
View create-index-yaml.sh
#!/bin/bash
set -e
if [ -z $1 ]; then
echo "whoooops, please set team name"
exit
fi
cat <<EOF > /tmp/index.yaml
View cluster-names.json
{
"environments": {
"kdev": {
"currentClusterName": "stable1"
},
"kqa": {
"currentClusterName": "stable1"
},
"kstg": {
"currentClusterName": "stable"
View daemonset.yaml
{{- $name := include "base.name" . -}}
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ $name }}
labels: {{ include "base.labels.mulesoft" . | nindent 4 }}
spec:
selector:
matchLabels:
app: {{ $name }}
View taintZenodes.sh
#!/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
View agent status
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
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View augeas
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
View dockerfile
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 \
You can’t perform that action at this time.