Skip to content

Instantly share code, notes, and snippets.

View dzintars's full-sized avatar
🇱🇻
Playing with Zuul CI

Dzintars dzintars

🇱🇻
Playing with Zuul CI
View GitHub Profile
apiVersion: v1
kind: Pod
metadata:
name: jenkins
labels:
app: jenkins
spec:
restartPolicy: Always
containers:
- name: jenkins-server
#!/bin/bash
# Author: Dzintars Klavins
# This script will delete all network connections and devices.
# WARNING!!! Network connection will be lost!
# Delete all existing connections.
# All credits to: https://www.rene-pickhardt.de/index.html%3Fp=1955.html
for i in `nmcli c | \
grep -o -- "[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}"` ; \
@dzintars
dzintars / github.sh
Last active September 2, 2020 16:37
#!/bin/sh
# Author: Dzintars Klavins
# This script will setup GitHub with multiple SSH identities
# Don't forget to make this file executable
# Setup multiple SSH identities for different Git accounts (with different credentials)
# Empty content of file
> ~/.config/Code/User/settings.json
# Place configuration in file.
@dzintars
dzintars / install-protoc-compiler.sh
Last active January 4, 2022 17:19
Install protoc-gen-go
#!/bin/sh
# Author: Dzintars Klavins
# This script will install Protoc compiler
# Don't forget to make this file executable
###################################
# Protocol Buffers installation #
###################################