Skip to content

Instantly share code, notes, and snippets.

View snoby's full-sized avatar

Snoby snoby

  • Roswell, Ga.
  • 11:31 (UTC -04:00)
View GitHub Profile
@snoby
snoby / setup_credentials.md
Created March 12, 2018 12:34
Configuring kubecfg and github authrizatino

Setup your own personal kubeconfig

Generate the Token

Take the blank version of the kubeconfig file located here:

xxxxxxxx

And now you need to generate your own token to access the kubernetes token. We use the public github to authenticate against ( Just like we do with vault). To generate your own pwersonal access token:

  • go to github.com ( make sure you are part of the tropo/tropo-operations organization)
@snoby
snoby / set_policy.sh
Created November 10, 2017 19:58
macOS policy bash script
#!/bin/sh
##########################################################################################################
## Pupose: Create a pwpolicy XML file based upon variables and options included below.
## Policy is applied and then file gets deleted. Use "sudo pwpolicy -u <user> -getaccountpolicies"
## to see it, and "sudo pwpolicy -u <user> -clearaccountpolicies" to clear it.
##
## Usage: Edit variables in Variable flowerbox below.
## Then run as a policy from Casper, or standalone as root.
##
## Tested on: OS X 10.10 and 10.11
@snoby
snoby / masterlogs.txt
Created June 14, 2017 17:56
logs from journalctl on master
Jun 14 17:54:50 ip-10-230-67-244 systemd[1]: Starting Run docker-healthcheck once...
Jun 14 17:54:50 ip-10-230-67-244 docker-healthcheck[5308]: docker healthy
Jun 14 17:54:50 ip-10-230-67-244 systemd[1]: Started Run docker-healthcheck once.
Jun 14 17:54:50 ip-10-230-67-244 kubelet[2484]: E0614 17:54:50.747874 2484 reflector.go:190] k8s.io/kubernetes/pkg/kubelet/kubelet.go:382: Failed to list *v1.Service: Get https://127.0.0.1/api/v1/services?resourceVersion=0: dial tcp 127.0.0.1:443: getsockopt: connection refused
Jun 14 17:54:51 ip-10-230-67-244 kubelet[2484]: E0614 17:54:51.045180 2484 reflector.go:190] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:46: Failed to list *v1.Pod: Get https://127.0.0.1/api/v1/pods?fieldSelector=spec.nodeName%3Dip-10-230-67-244.us-east-2.compute.internal&resourceVersio
Jun 14 17:54:51 ip-10-230-67-244 kubelet[2484]: E0614 17:54:51.644003 2484 reflector.go:190] k8s.io/kubernetes/pkg/kubelet/kubelet.go:390: Failed to list *v1.Node: Get https://127.0.0.1/api/v1/nodes?fi
@snoby
snoby / protokubelogs.txt
Created June 14, 2017 17:54
logs from protokube
admin@ip-10-230-67-244:~$ sudo docker logs 96b0e6185bd9
protokube version 0.1
I0614 17:30:30.137439 1 aws_volume.go:64] AWS API Request: ec2metadata/GetMetadata
I0614 17:30:30.138737 1 aws_volume.go:64] AWS API Request: ec2metadata/GetMetadata
I0614 17:30:30.139662 1 aws_volume.go:64] AWS API Request: ec2metadata/GetMetadata
I0614 17:30:30.143272 1 aws_volume.go:64] AWS API Request: ec2/DescribeInstances
I0614 17:30:30.247894 1 aws_volume.go:64] AWS API Request: ec2/DescribeVolumes
I0614 17:30:30.248551 1 dnscontroller.go:101] starting DNS controller
I0614 17:30:30.248613 1 dnscache.go:75] querying all DNS zones (no cached results)
I0614 17:30:30.248697 1 route53.go:50] AWS request: route53 ListHostedZones
@snoby
snoby / reminders.txt
Created June 5, 2017 02:44
Reminder about apt-mirrors
On Ubuntu amd64 installations, i386 is enabled as an additional architecture by default. apt & co. expect repositories to provide all configured architectures, which causes the error you're seeing.
Since your mirror only has amd64 packages, you should mark it as such:
```
deb [ arch=amd64 ] file:///var/spool/apt-mirror-trusty/mirror/archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
```
@snoby
snoby / nginx.conf
Last active May 4, 2017 14:18
snippet of generated nginx.conf
daemon off;
worker_processes 4;
pid /run/nginx.pid;
worker_rlimit_nofile 261120;
events {
multi_accept on;
worker_connections 16384;
use epoll;
@snoby
snoby / parsing_error.txt
Created February 12, 2017 17:40
Parsing error sending to ffmpeg
~/work/myprojects/godevelopment/src/github.com/snoby/mkv2Appletv$ ./mkv2Appletv convert -d -t -i ~/Downloads/Man\ of\ Steel.mkv -o ~/Downloads/deleteme.mp4
Input filename: /Users/snoby/Downloads/Man of Steel.mkv
Information about file: /Users/snoby/Downloads/Man of Steel.mkv
Number of Streams: 13
File has duration: 8583.593000 (s)
Master Video codec: hevc
Master Audio codec: aac numChannels:8
***
Primary Video Stream (hevc)
Primary Audio Stream (aac)
@snoby
snoby / OS X network optimize.txt
Last active February 21, 2025 02:06
OSX Sierra Network Performance Tweaks
#
# Reboot into recovery mode (cmd +r ) and in the terminal
#
nvram boot-args="serverperfmode=1 ncl=262144"
#reboot
#
# In regular mode
@snoby
snoby / jenkins_plugins_install.sh
Created August 26, 2016 17:37
Installation of jenkins plugins
#!/bin/bash
set -e
PLUGINS_ENDPOINT=http://updates.jenkins-ci.org/latest/
DATA=/var/lib/jenkins
mkdir -p $DATA/plugins
if find $DATA/plugins -maxdepth 0 -empty | read v; then
(cd $DATA/plugins && wget --no-check-certificate $PLUGINS_ENDPOINT/hipchat.hpi)