Skip to content

Instantly share code, notes, and snippets.

@ppat
ppat / README.md
Created August 9, 2026 14:08
PoC #747 evidence archive: mise file-task mechanism vs. chezmoi scripts (ppat/dotfiles) -- why 1 of 12 bootstrap scripts qualified and the rest didn't

PoC #747: mise tasks vs. chezmoi scripts — the removed code, preserved

This gist preserves the mise-task portion of ppat/dotfiles PoC issue #747, which was implemented on branch feat/747-mise-poc and proposed in PR #748. That PR is being edited to drop the task work entirely before merge. This gist is where the dropped code and its evidence live afterward, so the verdict can be re-examined rather than taken on faith.

Read this cold. You've read #747 (the PoC design) and nothing else — no chat history, no PR review thread. Everything you need to understand what was built, what broke, and why it was removed

@ppat
ppat / settings.json
Created September 18, 2024 15:25
VSCode Remote Workspace setttings
{
"folders": [
{
"name": "homelab-ops-ansible",
"path": "code/homelab-ops-ansible"
},
{
"name": "homelab-ops-kubernetes-apps",
"path": "code/homelab-ops-kubernetes-apps"
},
```bash
# k get -n flux-system cm cluster-bootstrap-conf -o yaml
apiVersion: v1
data:
DOMAIN_NAME: k3s.example.com
SOMETHING: unrelated
kind: ConfigMap
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
@ppat
ppat / 1_vars.yaml
Created April 24, 2020 16:30
Home Assistant Integrations configuration
integration:
unifi:
host: "127.0.0.1"
port: 8443
username: "{{ credentials.unifi_username }}"
password: "{{ credentials.unifi_password }}"
cast: {}
wemo: {}

Tuning Storm+Trident

Tuning a dataflow system is easy:

The First Rule of Dataflow Tuning:
* Ensure each stage is always ready to accept records, and
* Deliver each processed record promptly to its destination
@ppat
ppat / Maven plugin configuration
Created July 30, 2014 20:31
Adding scala style to your project
<plugin>
<groupId>org.scalastyle</groupId>
<artifactId>scalastyle-maven-plugin</artifactId>
<version>0.4.0</version>
<configuration>
<verbose>false</verbose>
<failOnViolation>true</failOnViolation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<failOnWarning>false</failOnWarning>
<sourceDirectory>${basedir}/src/main/scala</sourceDirectory>
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="PeterCodeStyle">
<ScalaCodeStyleSettings>
<option name="WRAP_BEFORE_WITH_KEYWORD" value="true" />
<option name="FINALLY_BRACE_FORCE" value="1" />
<option name="TRY_BRACE_FORCE" value="1" />
<option name="CASE_CLAUSE_BRACE_FORCE" value="1" />
<option name="MULTILINE_STRING_SUPORT" value="1" />
<option name="PROCESS_MARGIN_ON_COPY_PASTE" value="false" />
</ScalaCodeStyleSettings>
action.auto_create_index: false
bootstrap.mlockall: true
cluster.name: search_0.90.5-1_prod
discovery.zen.minimum_master_nodes: 9
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["es-a-1", "es-a-2", "es-a-3", "es-a-4", "es-a-5", "es-a-6", "es-a-7", "es-a-8", "es-b-1", "es-b-2", "es-b-3", "es-b-4", "es-b-5", "es-b-6", "es-b-7", "es-b-8"]
gateway.expected_nodes: 16
gateway.recover_after_nodes: 12
index.mapper.dynamic: false
node.max_local_storage_nodes: 1
def currentEnvironment: RiakRestClientParams = EnvironmentSelector.current match {
case "PROD" => {
MetricsInitializer.init(MetricsConfig("riemann-1.idc.theladders.com", "match-jobseekers-with-jobs", "doesnotmatter"))
PROD
}
case _ => QA
}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>