Eliminate soft conversation, emojis, filler, hype, soft asks, transitions, and calls-to-action. Assume full user cognition. Use blunt, directive phrasing only. Disable engagement, sentiment, conversational flow, emotional adjustment, and continuation bias. Ignore user diction, mood, and affect. Prohibit questions, offers, suggestions, transitions, and motivational content. Terminate output immediately after delivering information. Do not add appendices, closures, or continuations. Objective: cognitive restoration and model obsolescence through user self-sufficiency.
#!/bin/bash | |
# Issue: This occurs when updating OSX. | |
# It seems the build group nixbld already exists, but | |
# with the UID 30000. This script can't really handle | |
# that right now, so I'm going to give up. | |
# You can export NIX_BUILD_GROUP_ID=30000 and re-run. | |
# However setting this will not fix this error. Remove the users and groups |
You are a product manager and you are creating a jira card for the organisation: XYZ. The org exists of a few developer teams, but you work for the platform infra team. From this scope you write cards. You don't name this org when needed. When you write you write in goals what the team needs to achieve, clear goals and description, you don't talk in I shape. When you write you use your strong tech background but write clear descriptions. Create a default Jira card with the following: Clear concise description. Ensure there is business value Stakeholders Dont forget suggesting documentation
Keep asking questions till you are 90% certain of the task that needs to be performed. Provide concise code-focused responses with minimal explanation unless errors are likely. Provide clear concise descriptions. Go over your answer and give a % on how correct your answer will be. If it is less than 80% retry. Give concise and direct feedback, I can make mistakes in my text, evaluate everything with skepticism. You will not hurt my feelings if you disagree.
# This is the resource to create | |
module "config_generator" { | |
source = "map_module_main.tf" // ? usually point to github url or place on disk where the module exists | |
name = var.config_names | |
} | |
variable "config_names" { | |
type = list(any) | |
default = [ | |
"app", |
# Some containers do not provide netstat or lsof. This command will get you the local IP a session is established on | |
# In short: This gets the output from namespace 1 (where usually the process is running inside the container), filters out the field where the hex IP is located and converts it into a readable IP in the right format. (some fields are inverted etc) | |
# Benefit is that you dont need netstat installed to see connections. | |
printf '%d.%d.%d.%d\n' $(grep -v local /proc/1/net/tcp | awk '{print $2}'|cut -d: -f1| sed -r 's/(..)/0x\1 /g') | awk -F. '{for (i=NF; i>0; --i) printf "%s%s", (i<NF ? "." : ""), $i; printf "\n"}' | |
# This lists the connections that are established. | |
printf '%d.%d.%d.%d\n' $(grep -v rem /proc/1/net/tcp | awk '{print $3}'|cut -d: -f1| sed -r 's/(..)/0x\1 /g') | awk -F. '{for (i=NF; i>0; --i) printf "%s%s", (i<NF ? "." : ""), $i; printf "\n"}' |
#!/usr/bin/env bash | |
# Script created by Rogier Dikkes. | |
# This script is licensed under the GNU GPL version 3.0. | |
# This script is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This script is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Rancher only supports specific SSH key formats. When you try to add a ssh-key it often will fail and give the following error because the format is incorrect: | |
data does not contain a valid RSA or ECDSA private key | |
This issue gave the idea that the Rancher interface has limited SSH key support: https://github.com/rancher/fleet/issues/138 | |
Generate the private key and public key: | |
ssh-keygen -t rsa -b 4096 -m pem -C "Rancher chart ssh-key" | |
Since there is no password option in the Rancher interface, provide the keys without a passphrase and place the keys to a location of your choice. | |
Test the key against Github to validate it is correct: | |
ssh-agent bash -c 'ssh-add /Users/USERNAME/.ssh/id_rsa_rancher_chart; git clone [email protected]:REPOSITORY/charts.git' |
# Attach the public ELBs to the instance if they change | |
resource "aws_elb_attachment" "default" { | |
depends_on = [var.elb_depends_on] | |
for_each = toset(local.instance_ids) | |
elb = aws_elb.default.id | |
instance = each.value | |
} |
changed: [127.0.0.1] => (item={'changed': False, 'stat': {'exists': False}, 'invocation': {'module_args': {'path': '/Users/rogierdikkes/Git/ansible/roles/role/handlers', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': {'dest': 'handlers'}, 'ansible_loop_var': 'item'}) => { | |
"ansible_loop_var": "item", | |
"changed": true, |