Skip to content

Instantly share code, notes, and snippets.

View cblecker's full-sized avatar
💤
If you need something from me, please ping on Slack

Christoph Blecker cblecker

💤
If you need something from me, please ping on Slack
View GitHub Profile
@cblecker
cblecker / README.md
Created September 27, 2025 00:07
Ansible

Podman Machine Rosetta Configuration Playbook

This Ansible playbook automates the configuration of Rosetta support for Podman machines on macOS Tahoe systems.

What it does

The playbook performs the following tasks:

  1. Checks for existing Rosetta support - Verifies if the /proc/sys/fs/binfmt_misc/rosetta file exists
  2. Enables Rosetta if needed - Creates the /etc/containers/enable-rosetta file when Rosetta binfmt support is not present
@cblecker
cblecker / ip.sh
Created August 28, 2022 15:03
small script to check your external IP
#!/usr/bin/env bash
echo -n "OpenDNS: "
dig +short +time=3 +tries=1 myip.opendns.com @208.67.222.222
echo -n "Amazon: "
curl -s -m3 checkip.amazonaws.com
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: expand-nat-port-range
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
summary=A custom OpenShift network tuning profile
@cblecker
cblecker / git-main-alias.sh
Created March 15, 2021 21:07
git aliases for working with default branches
git config --global alias.default '!git symbolic-ref refs/remotes/origin/HEAD | sed '"'"'s:^refs/remotes/origin/::'"'"
git config --global alias.checkout-main '!git checkout $(git default)'
s#/0[[:>:]]# 0.0.0.0#
s#/1[[:>:]]# 128.0.0.0#
s#/2[[:>:]]# 192.0.0.0#
s#/3[[:>:]]# 224.0.0.0#
s#/4[[:>:]]# 240.0.0.0#
s#/5[[:>:]]# 248.0.0.0#
s#/6[[:>:]]# 252.0.0.0#
s#/7[[:>:]]# 254.0.0.0#
s#/8[[:>:]]# 255.0.0.0#
s#/9[[:>:]]# 255.128.0.0#

Keybase proof

I hereby claim:

  • I am cblecker on github.
  • I am cblecker (https://keybase.io/cblecker) on keybase.
  • I have a public key ASAXwMD9N-5TRSKjUUzdxYtVD91Co7Xf7cWqhBzM634I3Qo

To claim this, I am signing this object: