INT 21h

Hi, I am Vladimir Smagin, SysAdmin, DevOps and barely good guy. Telegram Email / GIT / Микроблог / Thingiverse / GPG

CronJobs operator for Kubernetes

№ 10306 В разделах: Администрирование Программирование от September 17th, 2019,

Helps to control multiple cronjobs with same image, but different commands.

Checkout code and documentation https://git.blindage.org/21h/cron-operator

Нет комментариев »

Как выключить уведомления в Vivaldi

№ 10292 В разделе "Администрирование" от September 10th, 2019,

Заходите на страницу chrome://settings/content/notifications и отключаете.

Нет комментариев »

Vault secret retrieve and save to JSON file

№ 10280 В разделах: Администрирование Программирование от September 1st, 2019,

I wrote small program to retrieve secrets from Vault and provide them to my PHP and Python apps. ENV variables with connection credentials is useful with Docker containers and even Kubernetes, list of secrets to retrieve can be stored inside Docker image.

Secret stored in Vault

Result file on disk

Source code and binary release https://git.blindage.org/21h/vault-retriever

Нет комментариев »

Fast bootstrap of Operator SDK and your first project

№ 10268 В разделе "Программирование" от August 30th, 2019,

1) Install operator-sdk on your computer https://github.com/operator-framework/operator-sdk/blob/master/doc/user/install-operator-sdk.md. I prefer to install into $GOPATH/bin.
2) create script somewhere like /opt/bootstrap_operator.sh

#!/bin/bash
set -e

REPO="git.blindage.org/21h/redis-operator"
API_VERSION="blindage.org/v1alpha1"
KIND="Redis"
NAME="redis-operator"

# operator sdk
export GO111MODULE=on
echo "Bootstraping ${NAME}"
operator-sdk new ${NAME} --git-init --repo ${REPO} --verbose
cd ${NAME}
echo "Adding API ${API_VERSION}"
operator-sdk add api --api-version=${API_VERSION} --kind=${KIND} --verbose
echo "Creating controller"
operator-sdk add controller --api-version=${API_VERSION} --kind=${KIND} --verbose

3) change directory to your “~/dev” and run script bash /opt/bootstrap_operator.sh, it will create new directory “~/dev/redis-operator

4) build your new operator, pack to image operator-sdk build redis-operator

5) push new image to registry with docker push myregistry.ru/redis-operator

Нет комментариев »

Screensaver “Flying dicks”

№ 10259 В разделе "Администрирование" от August 30th, 2019,

It looks like this

Download picture with dick

wget /wp-content/uploads/2019/08/644710-200.png -O /tmp/644710-200.png
sudo mkdir -p /usr/local/share/pixmaps/
sudo mv /tmp/644710-200.png /usr/local/share/pixmaps/644710-200.png

Create file /usr/share/applications/screensavers/floating-penis.desktop with content:

[Desktop Entry]
Name=Floating Dick
Comment=Bubbles the dicks around the screen
Exec=/usr/lib/mate-screensaver/mate-screensaver/floaters /usr/local/share/pixmaps/644710-200.png
TryExec=/usr/lib/mate-screensaver/mate-screensaver/floaters
StartupNotify=false
Terminal=false
Type=Application
Categories=Screensaver;
Keywords=MATE;screensaver;GNOME;logo;bubbles;
OnlyShowIn=MATE;

Also check out my precious wallpapers with ponies.

Нет комментариев »

Микроблог перейти

# 2019-09-12 07:54:26

git.apache.org все еще не работает, но можно фиксануть go mod с помощью replace git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20180902110319-2566ecd5

# 2019-09-10 13:58:22

офигенное хранилище абсолютно бесплатных svg www.svgrepo.com/

# 2019-09-09 16:29:21

Цикл статей тщательно разжевывающих Amazon IAM, очень рекомендую для прочтения medium.com/@thomas.storm/aws-i medium.com/@thomas.storm/aws-i medium.com/@thomas.storm/aws-i medium.com/@thomas.storm/aws-i


© Vladimir Smagin, 2005-2019. Копирование материалов без разрешения запрещено. GPG DA4CD0F5E222EA727D6A40C413BCE12E5618F071 *
Яндекс.Метрика

Fortune cookie: Jesus was killed by a Moral Majority.