Skip to content

Instantly share code, notes, and snippets.

View willnewby's full-sized avatar

Will (Newby) Atlas willnewby

View GitHub Profile
@willnewby
willnewby / gist:a5ec6640a7cd19cfbfbc
Created March 7, 2015 01:13
CentOS 6.5 packages in a CentOS 7 repo?
[vagrant@localhost ~]$ yum info mesos --showduplicates
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.dattobackup.com
* extras: mirror.sanctuaryhost.com
* updates: mirror.fdcservers.net
cloudera-cdh4 111/111
Available Packages
Name : mesos
Arch : x86_64
## Without RubyProf
vagrant@vagrant-ubuntu-trusty-64:/vagrant$ bundle exec jekyll build --trace
Configuration file: /vagrant/_config.yml
Source: /vagrant
Destination: /vagrant/_site
Incremental build: disabled
Generating...
done in 12.951 seconds.
Auto-regeneration: disabled. Use --watch to enable.
@willnewby
willnewby / make_kubeconfig.sh
Last active October 26, 2018 18:55
Generate a .kube/config file from a ServiceAccount token
# your server name goes here
server=https://localhost:8080
# the name of the secret containing the service account token goes here
name=serviceaccount-yay
ca=$(kubectl get secret/$name -o jsonpath='{.data.ca\.crt}')
token=$(kubectl get secret/$name -o jsonpath='{.data.token}' | base64 -D)
namespace=$(kubectl get secret/$name -o jsonpath='{.data.namespace}' | base64 -D)
echo "

Keybase proof

I hereby claim:

  • I am willnewby on github.
  • I am willnewby (https://keybase.io/willnewby) on keybase.
  • I have a public key ASB2fmIeC0C6LeCGIYS8nRifAWRqOP1wYnHA5g3I1ML6ZQo

To claim this, I am signing this object:

@willnewby
willnewby / main.go
Created February 5, 2020 22:36
Jenkins Job List, including lastSuccess and lastFailure
package main
import (
"fmt"
"time"
"github.com/bndr/gojenkins"
)
func main() {