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
#!/usr/bin/python3 | |
# based on the tutorial | |
# https://github.com/open-iscsi/rtslib-fb/blob/master/doc/getting_started.md | |
from rtslib import ( | |
FileIOStorageObject, | |
FabricModule, | |
Target, | |
TPG, |
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 | |
set -e | |
set -u | |
ref_server_settings='https://documentation.ubuntu.com/lxd/en/latest/reference/server_settings/' | |
ref_kernel_key_procfs='https://www.kernel.org/doc/html/latest/security/keys/core.html#new-procfs-files' | |
printf '\nItems to check are based on %s\n\n' "$ref_server_settings" | |
sudo 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
cloudinit-userdata: | | |
preruncmd: | |
- snap set lxd daemon.debug=true | |
- systemctl restart snap.lxd.daemon.service |
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 | |
set -eux | |
output=status.tsv | |
if [ -f "$output" ]; then | |
echo "$output already exists" | |
exit 1 | |
fi |
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
#!/usr/bin/env python3 | |
# $ virtualenv -p python3 .venv | |
# $ source .venv/bin/activate | |
# $ pip3 install certvalidator | |
# $ python3 ./certvalidator_poc.py -h | |
# usage: certvalidator_poc.py [-h] --ssl-cert SSL_CERT [--ssl-key SSL_KEY] | |
# [--ssl-ca SSL_CA] | |
# [hostname ...] |
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
variables: | |
openstack-origin: &openstack-origin distro | |
series: focal | |
comment: | |
- 'machines section to decide order of deployment. database sooner = faster' | |
machines: | |
'0': | |
'1': |
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 | |
set -e | |
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | |
sudo dmsetup remove eram0 || true | |
sudo dmsetup remove eram0-inline-read || true | |
sudo dmsetup remove eram0-inline-write || 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
#cloud-config | |
password: ubuntu | |
chpasswd: | |
expire: false | |
packages: | |
- cowsay | |
runcmd: |
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
function doPost(e) { | |
console.log(e); | |
var spreadsheet = SpreadsheetApp.getActive(); | |
var date = new Date(); | |
var logSheetName = Utilities.formatString('Log - %s', date.getFullYear()); | |
var sheet = spreadsheet.getSheetByName(logSheetName); | |
if (!sheet) { | |
sheet = spreadsheet.insertSheet(logSheetName); |
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
function onFormSubmit(e) { | |
const senderVisibleName = 'Google Form script - Weekly update'; | |
const sheetName = 'Recipients'; | |
// var form = FormApp.getActiveForm(); // to test without actual events | |
var form = e.source; | |
var formUrl = form.getPublishedUrl(); | |
var destinationId = form.getDestinationId(); | |
var sheet = SpreadsheetApp.openById(destinationId).getSheetByName(sheetName); |
NewerOlder