This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let responseData = pm.response.json(); | |
let accountId = Object.keys(pm.response.json().accounts)[0] | |
console.log(accountId) | |
pm.environment.set("accountId", accountId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: get list of existing users | |
ansible.builtin.getent: | |
database: passwd | |
- name: get list of existing usernames | |
ansible.builtin.set_fact: | |
existing_users: "{{ ansible_facts.getent_passwd.keys() | list }}" | |
- name: create ansible user | |
ansible.builtin.user: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=PowerTOP auto tune | |
[Service] | |
Type=oneshot | |
Environment="TERM=dumb" | |
RemainAfterExit=true | |
ExecStart=/usr/sbin/powertop --auto-tune | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Default] | |
acceleration_breaking=50 | |
acceleration_breaking_enable=false | |
acceleration_enabled=true | |
acceleration_infill=2500 | |
acceleration_ironing=3000 | |
acceleration_limit_mess="[[0.5,1.0,100,6000,210],[1.0,1.5,80,5500,200],[1.5,2.0,60,5000,190]]" | |
acceleration_limit_mess_enable=false | |
acceleration_prime_tower=2000 | |
acceleration_print=2500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet exclude-result-prefixes="query cmd dncv" version="1.0" xmlns:cmd="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.XdsCommandProcessor" xmlns:dncv="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.DNConverter" xmlns:query="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.XdsQueryProcessor" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- parameters passed in from the DirXML engine --> | |
<xsl:param name="srcQueryProcessor"/> | |
<xsl:param name="destQueryProcessor"/> | |
<xsl:param name="srcCommandProcessor"/> | |
<xsl:param name="destCommandProcessor"/> | |
<xsl:param name="dnConverter"/> | |
<xsl:param name="fromNds"/> | |
<!-- identity transformation template --> | |
<!-- in the absence of any other templates this will cause --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Casper Pedersen (github.com/casperghst42) | |
# License: GPL2 | |
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2 | |
virt-customize -a debian-12-generic-amd64.qcow2 --install qemu-guest-agent --install resolvconf --install systemd-resolved --update --run-command 'mkdir -p /etc/network/interfaces.d' --run-command 'echo "auto ens18" >> /etc/network/interfaces.d/ens18' --run-command 'echo "iface ens18 inet manual" >> /etc/network/interfaces.d/ens18' | |
qm create 100000 --name "debian12-cloudinit-template" --memory 2048 --net0 virtio,bridge=vmbr0 | |
qm importdisk 100000 debian-12-generic-amd64.qcow2 local-lvm -format qcow2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: instal packages | |
apt: | |
state: present | |
install_recommends: false | |
pkg: | |
- bridge-utils | |
- ca-certificates | |
- curl | |
- gnupg | |
update_cache: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Add non-free repository | |
replace: | |
dest: /etc/apt/sources.list | |
regexp: '^(deb(?!.* non-free).*)' | |
replace: '\1 non-free' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: wireless-power-save | create unit file | |
copy: | |
dest: /etc/systemd/system/[email protected] | |
content: | | |
[Unit] | |
Description=Set WiFi power save %i | |
After=sys-subsystem-net-devices-wlan0.device | |
[Service] |