~/bin/fcos/coreos.ignition:
{
"ignition": {
"version": "3.0.0"
},
"passwd": {
"users": [
# | |
[Unit] | |
Description=Downloads artifacts for dist upgrade | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/zypper dup -y -d --auto-agree-with-licenses |
#enable fcos modular | |
sed -i 's|^enabled=0|enabled=1|g' /etc/yum.repos.d/fedora-modular.repo | |
sed -i 's|^enabled=0|enabled=1|g' /etc/yum.repos.d/fedora-updates-modular.repo | |
rpm-ostree install crictl crio conntrack-tools | |
systemctl reboot | |
#crio network (see https://kubernetes.io/docs/setup/production-environment/container-runtimes/) | |
sudo sh -c 'echo "br_netfilter" > /etc/modules-load.d/br_netfilter.conf | |
cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf | |
net.bridge.bridge-nf-call-iptables = 1 |
cd ~/.oh-my-zsh && find . -type d -name ".git" -exec sh -c 'cd $1/..; git pull' _ {} \; |
configMaps: | |
# Delete indices older than 7 days | |
action_file_yml: |- | |
--- | |
actions: | |
1: | |
action: delete_indices | |
description: "Clean up ES by deleting old indices" | |
options: | |
timeout_override: |
#clone ipxe cd src write script.pxe:
#!ipxe
echo yeaaaa
echo lets go down the rabbit hole..
dhcp
#set net0/ip 192.168.0.100
clear mod1 | |
clear mod4 | |
keycode 64 = Meta_L | |
keycode 133 = Alt_L | |
add mod1 = Alt_L | |
add mod4 = Meta_L |
scaling hidpi: everything is very small needed steps:
meta/win/idea issue:
alt
with left win
# create instance using https://aws.amazon.com/marketplace/fulfillment?productId=b7ee8a69-ee97-4a49-9e68-afaee216db2e&launch=oneClickLaunch | |
# use west-2b (us oregon, subnet-5d371e38) | |
# create swap (https://meta.discourse.org/t/create-a-swapfile-for-your-linux-server/13880) | |
sudo install -o root -g root -m 0600 /dev/null /swapfile | |
dd if=/dev/zero of=/swapfile bs=1k count=2048k | |
mkswap /swapfile | |
swapon /swapfile | |
echo "/swapfile swap swap auto 0 0" | sudo tee -a /etc/fstab | |
sudo sysctl -w vm.swappiness=10 |
#! /usr/local/bin/amm | |
/** | |
* A ammonite script http://www.lihaoyi.com/Ammonite/#Ammonite-Shell | |
* For report toggl datas | |
* HowTo: | |
* - install ammonite: sudo curl -L -o /usr/local/bin/amm https://git.io/vHaMa && sudo chmod +x /usr/local/bin/amm | |
* - update script with Toggl-apikey and | |
* - chmod +x togglReport.sc | |
* - ./togglReport.sc | |
* |