Skip to content

Instantly share code, notes, and snippets.

View omerfsen's full-sized avatar

Omer Sen omerfsen

View GitHub Profile
@omerfsen
omerfsen / docker_push_multi-architecture.sh
Last active March 21, 2024 15:33
Docker Push multi-arch image
#!/bin/bash
# Docker buildx supports to build and push but
# Docker push does not support multi-arch so here is workaround to do
# via docker manifest
SOURCE_IMG=otheruser_that_has_both_arch/gpu-stress-test:1.0.0
DEST_IMG=omerfsen/gpu-stress-test:1.0.0
{
"basics": {
"name": "Omer Sen",
"label": "MLOps/DevOps/DevSecOps and Linux/UNIX Engineer",
"email": "omerfsen@gmail.com",
"phone": "+44 7466825310",
"url": "linkedin.com/in/omerfaruksen",
"location": {
"address": "South London",
"city": "London",
@omerfsen
omerfsen / install_tiny11_kvm.sh
Last active February 20, 2023 18:45
Install Tiny11 on KVM
This following command is for Ubuntu 22.04 LTS
Do not forget to download virtio-win driver from
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.229-1/virtio-win-0.1.229.iso
And issue command. Do not forget to load Red Hat VirtIO disk driver on disk editing page of Win11 installer as by default it does not see disks
virt-install \
--name Golden_Tiny_11 \
@omerfsen
omerfsen / reg-cli2
Created January 21, 2023 17:20
dockerhub-search-for-image.sh
#!/bin/bash
#
# search dockerhub via APIv2 and print images and tags.
# get token to be able to talk to Docker Hub
TOKEN=dckr_pat_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${UNAME}'", "password": "'${UPASS}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)
UNAME=${1}
@omerfsen
omerfsen / keybase.md
Created August 24, 2019 07:42
Keybase

Keybase proof

I hereby claim:

  • I am omerfsen on github.
  • I am omerfsen (https://keybase.io/omerfsen) on keybase.
  • I have a public key ASABTvjYK39O-iVV7A7DqHelkJm5B0PKfbWtcGjABhVpCAo

To claim this, I am signing this object:

@omerfsen
omerfsen / bash-cli-openssl-stdin-encryption
Last active May 23, 2019 11:27 — forked from robert2d/bash-cli-openssl-stdin-encryption
Bash $STDIN Encryption with openssl and aes256
# Encrypt STDIN with Salt "045667221ABCDFFF", Password from STDIN
$ echo "message" | openssl enc -aes-256-cbc -a -S "045667221ABCDFFF" -pass pass:TEST
U2FsdGVkX18EVmciGrzf/1pWNVmPZ5FLXa+v68TZGGg=
# Decrypt STDIN with Salt "045667221ABCDFFF", Password from STDIN
$ echo "U2FsdGVkX18EVmciGrzf/1pWNVmPZ5FLXa+v68TZGGg=" | openssl enc -aes-256-cbc -a -d -S "045667221ABCDFFF" -pass pass:TEST
message