Skip to content

Instantly share code, notes, and snippets.

:octocat:
Writing YAML + HCL and googling errors

Julien Bisconti veggiemonk

:octocat:
Writing YAML + HCL and googling errors
Block or report user

Report or block veggiemonk

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
@veggiemonk
veggiemonk / .gitconfig
Last active Oct 18, 2019
simple zshrc config file with Oh-My-ZSH
View .gitconfig
[user]
name = Julien Bisconti
email = ******
[core]
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=1,5 -R
editor = /usr/bin/vim
[alias]
wow = log --all --graph --decorate --oneline --simplify-by-decoration
@veggiemonk
veggiemonk / CKAD.md
Last active Oct 15, 2019
CKAD exam preparation
View CKAD.md
@veggiemonk
veggiemonk / bitbucket.sh
Last active Sep 6, 2019
Download all repos in bitbucket and extract Jenkinsfile
View bitbucket.sh
#!/usr/bin/env bash
# Best tips and tricks for bash ==> https://github.com/gruntwork-io/bash-commons
BASE_URL="https://git.netent.com/rest/api/1.0"
AUTHZ=${AUTHZ:?"AUTHZ var is not defined, it should contain the base64 encoded \`username:password\`"}
H_JSON="accept: application/json"
H_AUTHZ="Authorization: Basic $AUTHZ"
@veggiemonk
veggiemonk / .gitconfig
Created Aug 26, 2019
multi config for git - gitconfig
View .gitconfig
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
excludesfile = ~/.gitignore
[user]
name = Julien Bisconti
email =
signingkey = XXX
[includeIf "gitdir:~/code/bitbucket/"]
path = ~/code/bitbucket/.gitconfig
View .zsh_alias
alias ez="vim ~/.zshrc && source ~/.zshrc"
alias c="clear"
alias path='echo -e ${PATH//:/\\n}'
alias dpsa="docker ps -a"
alias dcup="docker-compose up"
alias dcupd="docker-compose up -d"
alias dcdn="docker-compose down"
alias dclf="docker-compose logs -f"
alias server="python3 -m http.server"
View nfs.yaml
---
apiVersion: v1
kind: Service
metadata:
name: atlantis
labels:
app: atlantis
spec:
type: LoadBalancer
loadBalancerIP: ${load_balancer_ip}
@veggiemonk
veggiemonk / 50-marblemouse.conf
Last active Aug 2, 2019
Ubuntu X11 xorg config for marble mouse logitech
View 50-marblemouse.conf
## SOURCE: https://help.ubuntu.com/community/Logitech_Marblemouse_USB#Example_Configuration_.231:_add_wheel_emulation_feature
## SOURCE: https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse#Sample_configuration
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
# Physical button #s: A b D - - - - B C
@veggiemonk
veggiemonk / altantis.Dockerfile
Created Jul 19, 2019
Atlantis terragrunt terraform and gcloud container
View altantis.Dockerfile
FROM golang:alpine AS builder
ENV TERRAGRUNT_VERSION=0.19.9 \
TERRAGRUNT_VERSION_SHA256SUM=9226cffc6b67b48c78e659b8ed1228e41b01c6fa4bd55e26e3b56c4d488db7ea \
TERRAFORM_VERSION=0.12.5 \
TERRAFORM_VERSION_SHA256SUM=babb4a30b399fb6fc87a6aa7435371721310c2e2102a95a763ef2c979ab06ce2
WORKDIR /go/src/github.com/runatlantis/atlantis/
RUN apk --no-cache add \
View PodDisruptionBudget.yaml
kind: PodDisruptionBudget
metadata:
name: my-app
spec:
maxUnavailable: 1
selector:
matchLabels:
app: my-app
@veggiemonk
veggiemonk / Dockerfile
Last active Jul 11, 2019
Build GO app in multi-stage container
View Dockerfile
FROM golang:alpine AS builder
ARG GITHUB_USER
ARG REPO_NAME
WORKDIR /go/src/github.com/$GITHUB_USER/$REPO_NAME/
COPY . .
RUN apk add --no-cache \
You can’t perform that action at this time.