Skip to content

Instantly share code, notes, and snippets.

View sureshamk's full-sized avatar

suresh sureshamk

  • Bangloure , I ndia
View GitHub Profile

Kubectl plugin

This plugin adds completion for the Kubernetes cluster manager, as well as some aliases for common kubectl commands.

To use it, add kubectl to the plugins array in your zshrc file:

plugins=(... kubectl)
# This is a sample build configuration for Other.
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image:
name: pxdeployment/pipelines
username: $DOCKERHUB_USER_ALT
password: $DOCKERHUB_PASS_ALT
email: xxx@xxx.de
@kk-r
kk-r / pre-commit
Last active May 29, 2018 07:50
Git pre-commit Hook for PHPCS standards ( copy and paste inside your project .git/hooks/pre-commit file). Please make sure pre-commit file should have permission to execute. And simply add this directory to your PATH in your ~/.bash_profile (or ~/.bashrc) like this: ` export PATH=~/.composer/vendor/bin:$PATH `
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"`
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php`
# Determine if a file list is passed
if [ "$#" -eq 1 ]
then
oIFS=$IFS
IFS='
'
SFILES="$1"
@mpneuried
mpneuried / Makefile
Last active May 4, 2024 13:46
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)