Skip to content

Instantly share code, notes, and snippets.

View afritzler's full-sized avatar
🥋
Cool $hit with containers and something with Machine Learning

Andreas Fritzler afritzler

🥋
Cool $hit with containers and something with Machine Learning
View GitHub Profile
@afritzler
afritzler / os-lb-delete.sh
Last active April 28, 2021 08:13
OpenStack LoadBalancer v2 Deletion Bash Script
#!/bin/bash
# get lb info
get-lbinfo() {
neutron lbaas-loadbalancer-show $1 -f json
}
# delete all listeners
delete-listeners() {
lIDs="$(neutron lbaas-loadbalancer-show $1 -f json | jq -r ".listeners | .[] | .id")"
@afritzler
afritzler / archl-linux-installation
Created June 10, 2019 14:35
Arch Linux installation
cfdisk
@afritzler
afritzler / openstack-cheetsheet.md
Last active December 5, 2018 11:39
OpenStack Cheet Sheet

LBaas

Resetting LoadBalancer state

neutron lbaas-loadbalancer-update --admin-state-up False lb_id
neutron lbaas-loadbalancer-update --admin-state-up True lb_id

User Management

Add user to project/tenant

@afritzler
afritzler / crypto-pi.md
Last active January 20, 2022 16:46
BlockChain / Crypto mining on Raspberry Pi (Monero, ByteCoin ...) via Minergate
# update raspbian
sudo apt-get update -y
# install build dependencies
sudo apt-get install autoconf libcurl4-openssl-dev libjansson-dev openssl libssl-dev gcc gawk

# clone and build
git clone https://github.com/lucasjones/cpuminer-multi.git
cd cpuminer-multi
./autogen.sh
@afritzler
afritzler / k8sbuild.md
Last active August 30, 2017 12:33
Building Kubernetes Hyperkube Image

Clone repo and prep stuff ... yadda yadda

Prerequisits

Clean all previous builds and remove all docker container

docker rm $(docker -a -q)
build/make-clean.sh

Run the build

@afritzler
afritzler / k8s-pi3.md
Last active June 26, 2016 21:31
Kubernetes on Raspberry Pi 3 - The missing Troubleshooting Guide

Isolation Considerations

Edit /boot/cmdline.txt and set the value to cgroup_enable=cpuset.

Not able to Download Docker Images

That was a hard one to fix.

sudo sysctl -w net.ipv4.tcp_mtu_probing=1

To make this change permanently and survive a reboot add this line to the following file /etc/sysctl.conf:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo sed -i /deb/s/wheezy/jessie/g /etc/apt/sources.list
sudo sed -i /deb/s/wheezy/jessie/g /etc/apt/sources.list.d/*.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean
@afritzler
afritzler / terraform-remote-exec
Last active November 16, 2018 20:42
Terraform remote-exec cloud-init fix
provisioner "remote-exec" {
inline = [
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done"
]
}
@afritzler
afritzler / tmux-cheatsheet.markdown
Created November 30, 2015 12:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
echo "hello world"