<commit_before>#!/bin/bash

IP=`cat /gandi/config | grep -Po '(?<="pna_address": ")[^"]*' | head -1`

ROUTE=`cat /gandi/config | grep -Po '(?<="pbn_gateway": ")[^"]*' | head -1`

DNS=`cat /etc/resolv.conf | awk '{ print $2}' | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | head -1`

PASS=`cat /gandi/config | grep -Po '(?<="password": ")[^"]*'`

USER=`cat /gandi/config | grep -Po '(?<="user": ")[^"]*'`

SSH=`cat /gandi/config | grep -Po '(?<="ssh_key": ")[^"]*'`

printf "#cloud-config
coreos:
  units:
    - name: systemd-networkd.service
      command: stop
    - name: 00-eth0.network
      runtime: true
      content: |
        [Match]
        Name=eth0

        [Network]
        DNS=$DNS
        Address=$IP
        Gateway=$ROUTE
    - name: systemd-networkd.service
      command: start

users:
  - name: $USER
    passwd: <PASSWORD>
    groups:
      - sudo

    ssh_authorized_keys:
      - ssh-rsa $SSH
" > cloud-config.yml

exit
<commit_msg>should be good :)<commit_after>#!/bin/bash

IP=`cat /gandi/config | grep -Po '(?<="pna_address": ")[^"]*' | head -1`

ROUTE=`cat /gandi/config | grep -Po '(?<="pbn_gateway": ")[^"]*' | head -1`

DNS=`cat /etc/resolv.conf | awk '{ print $2}' | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | head -1`

PASS=`cat /gandi/config | grep -Po '(?<="password": ")[^"]*'`

USER=`cat /gandi/config | grep -Po '(?<="user": ")[^"]*'`

SSH=`cat /gandi/config | grep -Po '(?<="ssh_key": ")[^"]*'`

printf "#cloud-config
coreos:
  units:
    - name: systemd-networkd.service
      command: stop
    - name: 00-eth0.network
      runtime: true
      content: |
        [Match]
        Name=eth0

        [Network]
        DNS=$DNS
        Address=$IP
        Gateway=$ROUTE
    - name: systemd-networkd.service
      command: start

users:
  - name: $USER
    passwd: <PASSWORD>
    groups:
      - sudo

    ssh_authorized_keys:
      - ssh-rsa $SSH" > cloud-config.yml

exit

{'fraction_non_alphanumeric': 0.22582331416623105, 'fraction_numerical': 0.017773131207527444, 'mean_word_length': 2.5378927911275415, 'pattern_counts': {'":': 10, '<': 15, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2044378', 'n_tokens_mistral': 839, 'n_tokens_neox': 764, 'n_words': 155}