function Export-CACertificates {
param(
[string]$OutputFile = 'all_ca_certificates.pem',
[ValidateSet("DOS", "UNIX")]
[string]$NewLineFormat = "DOS"
)
$newline = if ($NewLineFormat -eq "DOS") { "`r`n" } else { "`n" }
This file contains hidden or 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
- task: Bash@3 | |
displayName: Retrieve current agent public IP | |
inputs: | |
targetType: 'inline' | |
script: | | |
echo "##vso[task.setvariable variable=AGENT_IP]$(curl -s http://ipinfo.io/json| jq -r '.ip')" |
This file contains hidden or 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
import fnmatch | |
import os | |
#import re2 as re | |
import regex as re | |
import subprocess | |
from subprocess import PIPE, STDOUT | |
import argparse | |
import yaml | |
import csv |
This file contains hidden or 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
param tags object = {} | |
param environment | |
param prefix string | |
param regions array = [ | |
'uksouth' | |
'ukwest' | |
'northeurope' | |
'westeurope' | |
'eastus' | |
'southcentralus' |
This file contains hidden or 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
@description('The name of the Azure Resource to be created.') | |
param resourceName string | |
@description('The name of the Azure DevOps organization.') | |
param accountName string | |
@description('The operation type to be performed on the Azure DevOps organization.') | |
@allowed([ | |
'Create ' | |
'Link ' |
This file contains hidden or 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 bash | |
apt_wait () { | |
while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | |
sleep 1 | |
done | |
while sudo fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do | |
sleep 1 | |
done | |
if [ -f /var/log/unattended-upgrades/unattended-upgrades.log ]; then |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Returns all permutations of paths through the front door object to the target backends configured. | |
.DESCRIPTION | |
For the provided Azure Front Door resource, this function generates output objects for each permutation of: | |
* Url input | |
* Pattern Matched |
This file contains hidden or 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
podman inspect fedora-toolbox-35 | jq -r '.[0].Config.CreateCommand | join(" ")' |
sudo systemctl enable podman.socket
sudo systemctl start podman.socket
sudo podman run -d --name gitlab-runner --restart always --security-opt label=disable \
-v /run/podman/podman.sock:/var/run/docker.sock \
-v gitlab-runner-config:/etc/gitlab-runner \
docker.io/gitlab/gitlab-runner:latest
This file contains hidden or 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
""" | |
This python script will find flatpak deduplication size stats. | |
Of course, this checks the regular flatpak installation at /var/lib/flatpak . | |
If you want to use an alternative path, execute the program with said path. | |
Made with :heart: by powpingdone#3611, or just powpingdone on github. | |
Explaination for output: | |
'no dedupe': The size that the ostree repository would take up if files were not deduplicated. | |
'dedupe': The actual size of the ostree repository. |