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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "datasource", | |
"uid": "grafana" | |
}, | |
"enable": true, |
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
cat > "$HOME/Library/Application Support/rancher-desktop/lima/_config/override.yaml" << 'EOT' | |
provision: | |
- mode: system | |
script: | | |
#!/bin/sh | |
# Increase per-user file descriptor limits | |
cat << 'EOF' > /etc/security/limits.d/rancher-desktop.conf | |
* soft nofile 82920 | |
* hard nofile 82920 | |
EOF |
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
#!/bin/bash | |
# Check if NordVPN is installed | |
if ! command -v nordvpn &> /dev/null; then | |
echo "NordVPN is not installed. Installing..." | |
# Determine the installation command based on the system | |
if command -v apt-get &> /dev/null; then | |
sudo apt-get install nordvpn | |
elif command -v yum &> /dev/null; then | |
sudo yum install nordvpn |
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
PAT="" | |
ORG_NAME="" | |
DEFAULT_JSON='{ | |
"organization": { | |
"settings": { | |
"disable_anonymous_access_badges": true, | |
"limit_variables_set_queue_time": false, | |
"limit_job_authorization_current_project_non_release_pipelines": false, | |
"limit_job_authorization_current_project_release_pipelines": false, | |
"protect_access_repositories_yaml_pipelines": false, |
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
PAT="" | |
ORG_NAME="" | |
DEFAULT_JSON={ | |
"organization": { | |
"policies": { | |
"disallow_third_party_application_access_via_oauth": false, | |
"disallow_ssh_authentication": false, | |
"log_audit_events": true, | |
"allow_public_projects": true, | |
"additional_protections_public_package_registries": true, |
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
PAT="" | |
ORG_NAME="ivanporta" | |
PROJECT_NAME="Sample" | |
DEFAULT_JSON='{ | |
"organization": { | |
"name": "portaivan", | |
"azure_active_directory": { | |
"tenant_id": "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | |
} | |
} |
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
PAT="" | |
ORG_NAME="ivanporta" | |
PROJECT_NAME="Sample" | |
DEFAULT_JSON='{ | |
"agent_pools": | |
[ | |
{ | |
"self_hosted":[ | |
{ | |
"name": "Default", |
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
PAT="" | |
ORG_NAME="ivanporta" | |
PROJECT_NAME="Sample" | |
DEFAULT_JSON='{ | |
"pipeline": { | |
"service_endpoints": [ | |
{ | |
"azurerm": [ | |
{ | |
"name": "Azure", |
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
PAT="" | |
ORG_NAME="ivanporta" | |
PROJECT_NAME="Sample" | |
DEFAULT_JSON='{ | |
"pipeline": { | |
"environments": [ | |
{ | |
"name": "Connectivity", | |
"description": "Connectivity production environment", | |
"security_groups_name": [ |
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
- script: | | |
terraform plan -out tf.tfplan | |
displayName: Generate Terraform plan | |
- script: | | |
terraform show -no-color tf.tfplan > $(Agent.TempDirectory)/tf.txt | |
displayName: Convert Terraform plan to text | |
- bash: | | |
cd $(Agent.TempDirectory) |
NewerOlder