-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
24 changed files
with
465 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[defaults] | ||
inventory=.ansible/clcreative-home-inventory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Inventory for clcreative-home network | ||
# | ||
# Please only use this as an example! | ||
|
||
|
||
# Ubuntu Production and Demo Servers | ||
|
||
[srv-prod] | ||
srv-prod-1.home.clcreative.de | ||
srv-prod-2.home.clcreative.de | ||
srv-prod-3.home.clcreative.de | ||
|
||
[srv-demo] | ||
srv-demo-1.home.clcreative.de | ||
srv-demo-2.home.clcreative.de | ||
|
||
[srv-prod-1] | ||
srv-prod-1.home.clcreative.de | ||
|
||
[srv-prod-2] | ||
srv-prod-2.home.clcreative.de | ||
|
||
[srv-prod-3] | ||
srv-prod-3.home.clcreative.de | ||
|
||
[srv-demo-1] | ||
srv-demo-1.home.clcreative.de | ||
|
||
[srv-demo-2] | ||
srv-demo-2.home.clcreative.de | ||
|
||
# Kubernetes Production and Demo Servers | ||
|
||
[ksrv-prod] | ||
ksrv-prod-1.home.clcreative.de | ||
ksrv-prod-2.home.clcreative.de | ||
ksrv-prod-3.home.clcreative.de | ||
|
||
[ksrv-prod-1] | ||
ksrv-prod-1.home.clcreative.de | ||
|
||
[ksrv-prod-2] | ||
ksrv-prod-2.home.clcreative.de | ||
|
||
[ksrv-prod-3] | ||
ksrv-prod-3.home.clcreative.de | ||
|
||
[ksrv-demo-1] | ||
ksrv-demo-1.home.clcreative.de | ||
|
||
[kube-prod-1] | ||
ksrv-prod-1.home.clcreative.de | ||
ksrv-prod-2.home.clcreative.de | ||
ksrv-prod-3.home.clcreative.de | ||
|
||
[kube-demo-1] | ||
ksrv-demo-1.home.clcreative.de | ||
|
||
# Proxmox and Nas machine | ||
|
||
[prx-prod-1] | ||
prx-prod-1.home.clcreative.de | ||
|
||
[nas-prod-1] | ||
nas-prod-1.home.clcreative.de | ||
|
||
# Windows Servers and Clients | ||
|
||
[wdc-prod-1] | ||
wdc-prod-1.home.clcreative.de | ||
|
||
[win-prod-1] | ||
win-prod-1.home.clcreative.de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
prj /Users/xcad/Projects | ||
clc /Users/xcad/Projects/clcreative | ||
cs /Users/xcad/Projects/christianlempa/cheat-sheets | ||
bp /Users/xcad/Projects/christianlempa/boilerplates | ||
cl /Users/xcad/Projects/christianlempa/christianlempa | ||
vid /Users/xcad/Projects/christianlempa/videos | ||
obs /Users/xcad/Library/Mobile Documents/iCloud~md~obsidian/Documents | ||
content /Users/xcad/Library/Mobile Documents/iCloud~md~obsidian/Documents/content | ||
cheatsheets /Users/xcad/Library/Mobile Documents/iCloud~md~obsidian/Documents/cheat-sheets | ||
projects /Users/xcad/Library/Mobile Documents/iCloud~md~obsidian/Documents/projects | ||
home /Users/xcad/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[core] | ||
excludesfile = /Users/xcad/.gitignore_global | ||
[difftool "sourcetree"] | ||
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | ||
path = | ||
[mergetool "sourcetree"] | ||
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" | ||
trustExitCode = true | ||
[user] | ||
name = Christian Lempa | ||
email = [email protected] | ||
[commit] | ||
template = /Users/xcad/.stCommitMsg | ||
[filter "lfs"] | ||
clean = git-lfs clean -- %f | ||
smudge = git-lfs smudge -- %f | ||
process = git-lfs filter-process | ||
required = true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
accent: '#28b9ff' # Accent color for UI elements | ||
background: '#121212' # Terminal background color | ||
details: darker # Whether the theme is lighter or darker. | ||
foreground: '#f1f1f1' # The foreground color. | ||
terminal_colors: # Ansi escape colors. | ||
bright: | ||
black: '#666666' | ||
blue: '#5c78ff' | ||
cyan: '#5ac8ff' | ||
green: '#905aff' | ||
magenta: '#5ea2ff' | ||
red: '#ba5aff' | ||
white: '#ffffff' | ||
yellow: '#657b83' | ||
normal: | ||
black: '#121212' | ||
blue: '#2b4fff' | ||
cyan: '#28b9ff' | ||
green: '#7129ff' | ||
magenta: '#2883ff' | ||
red: '#a52aff' | ||
white: '#f1f1f1' | ||
yellow: '#3d2aff' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
accent: '#28b9ff' # Accent color for UI elements | ||
background: '#edeff1' # Terminal background color | ||
details: lighter # Whether the theme is lighter or darker. | ||
foreground: '#a0a1a5' # The foreground color. | ||
terminal_colors: # Ansi escape colors. | ||
bright: | ||
black: '#666666' | ||
blue: '#5c78ff' | ||
cyan: '#5ac8ff' | ||
green: '#905aff' | ||
magenta: '#5ea2ff' | ||
red: '#ba5aff' | ||
white: '#a0a1a5' | ||
yellow: '#657b83' | ||
normal: | ||
black: '#edeff1' | ||
blue: '#2b4fff' | ||
cyan: '#28b9ff' | ||
green: '#7129ff' | ||
magenta: '#2883ff' | ||
red: '#a52aff' | ||
white: '#f1f1f1' | ||
yellow: '#3d2aff' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Create SSL/TLS Certificate Extfile | ||
command: "echo \"subjectAltName=DNS:{{dns}}\" >> extfile.cnf" | ||
tags: | ||
- openssl | ||
- certificate | ||
- ssl | ||
- tls | ||
description: "Create SSL/TLS Certificate Extfile" | ||
arguments: | ||
- name: dns | ||
description: DNS | ||
default_value: your-dns-record | ||
source_url: "https://github.com/christianlempa/dotfiles" | ||
author: Christian Lempa | ||
author_url: "https://github.com/christianlempa" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Create SSL/TLS Certificate from CSR | ||
command: "openssl x509 -req -sha256 -days {{days}} -in {{certificate}}.csr -CA {{ca}}.crt -CAkey {{ca-key}}.key -out {{certificate}}.crt -extfile extfile.cnf -CAcreateserial" | ||
tags: | ||
- openssl | ||
- certificate | ||
- ssl | ||
- tls | ||
description: "Create SSL/TLS Certificate from CSR" | ||
arguments: | ||
- name: certificate | ||
description: Name | ||
default_value: cert | ||
- name: days | ||
description: Days | ||
default_value: 365 | ||
- name: ca | ||
description: CA | ||
default_value: your-dns-record | ||
- name: ca-key | ||
description: CA | ||
default_value: your-dns-record | ||
source_url: "https://github.com/christianlempa/dotfiles" | ||
author: Christian Lempa | ||
author_url: "https://github.com/christianlempa" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Create SSL/TLS Certificate Private Key | ||
command: "openssl genrsa -out {{certificate}}.key {{length}}" | ||
tags: | ||
- openssl | ||
- certificate | ||
- ssl | ||
- tls | ||
description: "Create SSL/TLS Certificate Private Key" | ||
arguments: | ||
- name: certificate | ||
description: Name | ||
default_value: cert | ||
- name: length | ||
description: Key Length | ||
default_value: 4096 | ||
source_url: "https://github.com/christianlempa/dotfiles" | ||
author: Christian Lempa | ||
author_url: "https://github.com/christianlempa" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Create SSL/TLS Certificate Signing Request | ||
command: "openssl req -new -sha256 -subj \"/CN={{certificate}}\" -key {{certificate}}.key -out {{certificate}}.csr" | ||
tags: | ||
- openssl | ||
- certificate | ||
- ssl | ||
- tls | ||
description: "Create SSL/TLS Certificate Signing Request" | ||
arguments: | ||
- name: certificate | ||
description: Name | ||
default_value: cert | ||
source_url: "https://github.com/christianlempa/dotfiles" | ||
author: Christian Lempa | ||
author_url: "https://github.com/christianlempa" | ||
shells: [] |
33 changes: 33 additions & 0 deletions
33
.warp/workflows/create-self-signed-certificate-from-ca.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Create self-signed SSL/TLS Certificate from CA | ||
command: |- | ||
openssl genrsa -out {{certificate}}.key 4096 | ||
openssl req -new -sha256 -subj "/CN={{certificate}}" -key {{certificate}}.key -out {{certificate}}.csr | ||
echo "subjectAltName=DNS:{{dns}}" > extfile.cnf | ||
openssl x509 -req -sha256 -days {{days}} -in {{certificate}}.csr -CA {{ca}}.crt -CAkey {{ca-key}}.key -out {{certificate}}.crt -extfile extfile.cnf -CAcreateserial | ||
tags: | ||
- openssl | ||
- certificate | ||
- ssl | ||
- tls | ||
description: "Create self-signed SSL/TLS Certificate from CA." | ||
arguments: | ||
- name: certificate | ||
description: The name of the certificate file and key. | ||
default_value: cert | ||
- name: dns | ||
description: The hostname /subjectAltName the certificate is valid for. | ||
default_value: localhost | ||
- name: days | ||
description: How long is this certificate valid. | ||
default_value: 365 | ||
- name: ca | ||
description: Certificate Authority to sign this certificate. | ||
default_value: ca | ||
- name: ca-key | ||
description: Certificate Authoritys private key to sign this certificate. | ||
default_value: ca | ||
source_url: "https://github.com/christianlempa/dotfiles" | ||
author: Christian Lempa | ||
author_url: "https://github.com/christianlempa" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Switch to a different namespace | ||
command: "kubectl config set-context --current --namespace={{namespace}}" | ||
tags: | ||
- kubectl | ||
description: "Switch to a different namespace" | ||
arguments: | ||
- name: namespace | ||
description: The Namespace you want to switch to | ||
default_value: default | ||
source_url: "https://github.com/christianlempa/dotfiles" | ||
author: Christian Lempa | ||
author_url: "https://github.com/christianlempa" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Unset current Kubernetes Context | ||
command: "kubectl config unset current-context" | ||
tags: | ||
- kubectl | ||
description: "Unset current Kubernetes Context" | ||
source_url: "https://github.com/christianlempa/dotfiles" | ||
author: Christian Lempa | ||
author_url: "https://github.com/christianlempa" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Colormap | ||
function colormap() { | ||
for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
autoload -Uz compinit | ||
compinit | ||
|
||
source $(brew --prefix)/etc/bash_completion.d/goto.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# NVM lazy load | ||
if [ -s "$HOME/.nvm/nvm.sh" ]; then | ||
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" | ||
alias nvm='unalias nvm node npm && . "$NVM_DIR"/nvm.sh && nvm' | ||
alias node='unalias nvm node npm && . "$NVM_DIR"/nvm.sh && node' | ||
alias npm='unalias nvm node npm && . "$NVM_DIR"/nvm.sh && npm' | ||
fi |
Oops, something went wrong.