#create a release branch from master git checkout -b release/1.0.5 master # get the logs for the source branch we want to cherry pick from git log develop --oneline # this is the merge commit for DATA-506 951c3f9 (HEAD -> develop, origin/develop, origin/HEAD) Merge pull request #128 from artnetworldwide/feature/DATA-506 # checkout the destination branch (release/1.0.5), in case we switched branches git checkout release/1.0.5 # cherry pick # apply the changes introduced by the commit to the current branch (release/1.0.5) # it creates a new commit git cherry-pick 951c3f9 # cherry pick for multiple commits git cherry-pick HASH1 HASH2 HASH2
Author Archives: Angel
DIY – How to build a Horizontal Privacy Screen – RealCedar.com
Adding SSH Key to SSH Agent
Check if SSH Agent is running
eval "$(ssh-agent -s)"
Add the Keys to SSH Agent
ssh-add ~/.ssh/nameofkey
Verify Keys Added to SSH Agent
ssh-add -l
Copy Key to Remote Server
ssh-copy-id user@remote.server.location
Copy Server Key to Host
ssh-copy-id user@host.local
If you see a warning “Permission 0664 for ‘key_id’ are too open”, do this:
chmod og-rw key_id
Originally posted here:
https://www.linkedin.com/pulse/adding-ssh-key-agent-eduardo-robles/
Prometheus Monitoring – Steps to monitor third-party apps using Prometheus Exporter | Part 2
Гъби в масло и ориз
Продукти:
- гъби – 300 г
- ориз – 300 г дългозърнест
- масло – 50 г
- соев сос – 3 с.л
- сол – 1 щипка
- универсална подправка – 1 щипка
Приготвяне:
Измиваме и нарязваме гъбите. Запържваме ги в маслото, добавяме сол и вегета.
Когато се запържи добре, добавяме дългозърнестия ориз и 900 мл вода.
Когато се свари, добавяме соевият сос. По желание се добавя сос към гъбите с ориз и поотделно при сервиране.
Оригинална рецепта: виж тук
Generative AI
Prometheus monitoring stack on Ubuntu 22.04.2 and Micro Kubernetes Cluster (microk8s)
1) Install Ubuntu 22.04.2 desktop
Install guest agent:
sudo apt-get install qemu-guest-agent sudo systemctl start qemu-guest-agent
Optional – Add the curret user to the sudo group:
sudo usermod -aG sudo $USER
2) Configure RDP and VNC
fix the lock problem:
3) Install docker
sudo apt install docker.io
add the current user to docker group:
sudo usermod -aG docker $USER
4) Check docker version
docker --version
5) Create a Micro Kubernetes Cluster (microk8s)
See here: https://microk8s.io/docs/getting-started
sudo snap install microk8s --classic --channel=1.27
MicroK8s creates a group to enable seamless usage of commands which require admin privilege. To add your current user to the group and gain access to the .kube caching directory, run the following two commands:
sudo usermod -a -G microk8s $USER sudo chown -f -R $USER ~/.kube
See the node:
microk8s kubectl get nodes
See the running services:
microk8s kubectl get services
Create an alias:
alias kubectl='microk8s kubectl'
Deploy an app:
microk8s kubectl create deployment nginx --image=nginx microk8s kubectl get pods
Starting and Stopping MicroK8s:
microk8s stop microk8s start
export the cluster configuration
kubectl config view --raw > ~/.kube/config
6) Alternatively – install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb sudo dpkg -i minikube_latest_amd64.deb
start your cluster:
minikube start
Install kubectl:
snap install kubectl --classic kubectl version --client
7) Install helm
$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 $ chmod 700 get_helm.sh $ ./get_helm.sh
or using snap:
sudo snap install helm --classic
8) Deploy Prometheus monitoring stack to Kubernetes with a single Helm Chart
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update kubectl create ns prom helm search repo prometheus-community helm install prometheus prometheus-community/kube-prometheus-stack -n prom helm install ksm prometheus-community/kube-state-metrics -n prom # install the kube-state-metrics kubectl --namespace prom get pods
Check configmaps and secrets:
kubectl --namespace prom get configmap kubectl --namespace prom get secret
Look inside a secret file:
kubectl --namespace prom get secret
Check CRDs
kubectl get crd
9) Access Prometheus Dashboard
$ kubectl port-forward -n prom service/prometheus-kube-prometheus-prometheus 9090
10) Access Grafana Dashboard
$ kubectl port-forward -n prom deployment/prometheus-grafana 3000
default user/password is admin/prom-operator
11) Uninstall Prometheus stack
$ helm uninstall ksm -n prom $ helm uninstall prom -n prom
12) Install and use K8S Lens to explore what was deployed in the kluster:
Baked Catfish
Original recipe from here: https://www.delish.com/cooking/recipe-ideas/a26595303/best-baked-catfish-recipe/
Directions
Preheat oven to 425° and drizzle 2 tablespoons oil on a large baking sheet. On a large plate, combine cornmeal and Cajun seasoning. Season catfish with salt and pepper, then dredge fish in seasoned cornmeal, pressing to coat.
Place fish on prepared baking sheet and drizzle with remaining 2 tablespoons oil. Bake until golden and fish flakes easily with a fork, 15 minutes. Serve with lemon wedges.
Install Docker in WSL 2 without Docker Desktop