Skip to content

Commit

Permalink
Revert "refreshed goto links"
Browse files Browse the repository at this point in the history
This reverts commit d348cbb.
  • Loading branch information
ChristianLempa committed Oct 18, 2023
1 parent c285780 commit c993c4d
Show file tree
Hide file tree
Showing 24 changed files with 465 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[defaults]
inventory=.ansible/clcreative-home-inventory
73 changes: 73 additions & 0 deletions .ansible/clcreative-home-inventory
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
11 changes: 11 additions & 0 deletions .config/goto
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/
18 changes: 18 additions & 0 deletions .gitconfig
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 added .hushlogin
Empty file.
23 changes: 23 additions & 0 deletions .warp/themes/xcad2k_dark.yml
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'
23 changes: 23 additions & 0 deletions .warp/themes/xcad2k_light.yml
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'
17 changes: 17 additions & 0 deletions .warp/workflows/create-certificate-extfile.yml
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: []
26 changes: 26 additions & 0 deletions .warp/workflows/create-certificate-from-csr.yml
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: []
20 changes: 20 additions & 0 deletions .warp/workflows/create-certificate-private-key.yml
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: []
17 changes: 17 additions & 0 deletions .warp/workflows/create-certificate-signing-request.yml
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 .warp/workflows/create-self-signed-certificate-from-ca.yml
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: []
14 changes: 14 additions & 0 deletions .warp/workflows/switch-to-a-different-namespace.yml
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: []
10 changes: 10 additions & 0 deletions .warp/workflows/unset-current-kubernetes-context.yml
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: []
21 changes: 21 additions & 0 deletions .zsh/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ alias h="helm"
alias tf="terraform"
alias a="ansible"
alias ap="ansible-playbook"
<<<<<<< HEAD

alias code="open -a 'Visual Studio Code'"

Expand All @@ -17,3 +18,23 @@ alias ls="exa --icons --group-directories-first"
alias ll="exa --icons --group-directories-first -l"
alias grep='grep --color'

=======
alias dt="datree"

# mac OS shortcuts
alias code="open -a 'Visual Studio Code'"



# ALIAS COMMANDS
alias ls="exa --icons --group-directories-first"
alias ll="exa --icons --group-directories-first -l"
alias g="goto"
alias grep='grep --color'

alias cbp="code /home/xcad/obsidianvault/boilerplates"
alias cpr="code /home/xcad/obsidianvault/projects"

# Scripts
alias repos="op run --env-file="/Users/xcad/.env" -- python3 /Users/xcad/Projects/christianlempa/scripts/repos"
>>>>>>> parent of d348cbb (refreshed goto links)
4 changes: 4 additions & 0 deletions .zsh/functions.zsh
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
}
4 changes: 4 additions & 0 deletions .zsh/goto.zsh
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
7 changes: 7 additions & 0 deletions .zsh/nvm.zsh
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
Loading

0 comments on commit c993c4d

Please sign in to comment.