start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env python | |
# | |
# simle'n'stupid vhost "parser" | |
# | |
# Usage: ./vhosts-reader.py FILE | |
# FILE is a apache config file | |
import re | |
import sys | |
import os.path |
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
# Will include all hosts the playbook is run on. | |
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
- name: "Build hosts file" | |
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
when: hostvars[item].ansible_default_ipv4.address is defined | |
with_items: groups['all'] |
To remove a submodule you need to:
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
The following worked with Elastic Cloud, Elasticsearch & Kibana v7.6.0. It should be pretty close for other kinds of deployments. Before starting, make sure you have the right license level that allows SAML.
I had a bit of trouble figuring out how to use bitnami's [sealed secrets](https://github.com/bitnami-labs/sealed-secrets) with [helm](https://helm.sh) | |
Here's a definition of done to help you see what I was trying to achieve. | |
**Definition of done** | |
- Single secret available for a release in a namespace, listing all secret variables | |
- Regular helm workflow, with no extra kubeseal commands for developers | |
- Encrypted secrets clearly visible in git | |
- Sealedsecret managed by helm |
When I click on links from Slack or Outlook on MacOS they open in seemingly random browser windows/profiles. This is annoying.
Open links in a particular google chrome profile window. Be less annoyed.
chrome://version
and find the desired profile name. Mine was Default
. Copy that profile's directory name, like Profile 2
or Default
, not the profile's vanity name you see when you click on your profile icon in the browser.brew install finicky
. After install it should be running and you should see the icon in the upper toolbar.> Config > Create New
~/.finicky
and make it look something like this, filling in your profile name:import requests | |
import uuid | |
from recipe_scrapers import scrape_html | |
MEALIE_TOKEN = "" | |
MEALIE_URL = "" | |
MEALIE_TAG_ID = "" | |
MEALIE_HEADERS = {"Authorization": "Bearer " + MEALIE_TOKEN} | |
AH_HEADERS = {"Accept-Language": "nl", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0"} |