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
<!-- npm install vue-awesome-swiper --> | |
<script> | |
import Vue from 'vue'; | |
import VueAwesomeSwiper from 'vue-awesome-swiper/dist/ssr'; | |
Vue.use(VueAwesomeSwiper); | |
export default { | |
name: 'MyCarousel', |
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
# kube-prompt.sh | |
#!/bin/bash | |
__kube_ps1() | |
{ | |
# Get current context | |
CONTEXT=$(cat ~/.kube/config | grep "current-context:" | sed "s/current-context: //") | |
if [ -n "$CONTEXT" ]; then | |
echo "(k8s: ${CONTEXT})" |
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
#/bin/bash | |
# run a shell inside a running POD | |
# Paramenter 1: the name of the "app". The deployment should match <app_name>-deployment and the container must have the | |
# app name. | |
POD_NAME=$(kubectl get pods -n stock --no-headers -o custom-columns=":metadata.name" | grep -m1 "$1-deployment") | |
echo "Acessing pod $POD_NAME" | |
kubectl exec -it "$POD_NAME" -n stock -c "$1" -- 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
#/bin/bash | |
# Access the current logs of the provided POD | |
# | |
# Parameter 1: the app name, which should match the deployment name (<app name>-deployment) and the container name. | |
POD_NAME=$(kubectl get pods -n stock --no-headers -o custom-columns=":metadata.name" | grep -m1 "$1-deployment") | |
echo "Acessing pod $POD_NAME" | |
kubectl logs "$POD_NAME" -n stock -c "$1" --follow |
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
#!/bin/bash | |
# generate new personal ed25519 ssh key | |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>" | |
# generate new host cert authority (host_ca) ed25519 ssh key | |
# used for signing host keys and creating host certs | |
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network | |
eval "$(ssh-agent -s)" |