Skip to content

Instantly share code, notes, and snippets.

View deepak-kosaraju's full-sized avatar

Deepak Kosaraju deepak-kosaraju

View GitHub Profile
@deepak-kosaraju
deepak-kosaraju / weave-net-for-k8s-v1.12.5.yaml
Created March 28, 2019 06:08
Weave Net yaml file for K8s version 1.12.5
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ServiceAccount
metadata:
name: weave-net
annotations:
cloud.weave.works/launcher-info: |-
{

Overview

Here is an example shared configuration for knife. You can drop this off in your chef-repo/.chef/ directory, and multiple developers can use the same knife configuration to interact with more than one Chef server, or the Opscode platform.

By using Bash functions and environment variables we can change the chef server, which knife is configured to use, on the fly.

NOTE: knife will probably ignore your ~/.chef/knife.rb once you begin using a shared knife.rb in your chef-repo directory.

Preparation

@deepak-kosaraju
deepak-kosaraju / MacPorts-Upgrade_Update
Created June 4, 2014 05:41
MacPorts Update/Upgrade Tips
Mac Ports Maintenance:
# sync the porttree
sudo -s -- 'port -d sync && port -d selfupdate && port outdated && port -u upgrade outdated'
#To uninstall all the in-active ports
for i in "`port installed|grep -v active| awk -F' ' {'print $1" " $2'}|sed '/The following/d'`";do echo "$i";sudo port -u uninstall $i;done
# To remove source and install logs of active ports
for i in "`port installed| awk -F' ' {'print $1" " $2'}|sed '/The following/d'`";do echo "$i";sudo port clean --dist --logs $i;done