curl -I -L https://hostname
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 | |
# Set the Azure subscription for the script to run | |
# Example: az account set --subscription <subscription_id> | |
# Parallel throttle limit - modify this based on your system capability | |
parallelThrottleLimit=16 | |
logFileName="LogAnalyticsAgentUninstallUtilityScriptLog.log" | |
inventoryFile="LogAnalyticsAgentExtensionInventory.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
$InstallPath = 'C:\AzCopy' | |
# Cleanup Destination | |
if (Test-Path $InstallPath) { | |
Get-ChildItem $InstallPath | Remove-Item -Confirm:$false -Force | |
} | |
# Zip Destination | |
$zip = "$InstallPath\AzCopy.Zip" |
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
autoload -U +X bashcompinit && bashcompinit | |
zmodload -i zsh/parameter | |
if ! (( $+functions[compdef] )) ; then | |
autoload -U +X compinit && compinit | |
fi | |
_python_argcomplete() { | |
local prefix= | |
if [[ $COMP_LINE == 'gcloud '* ]]; then | |
if [[ $3 == ssh && $2 == *@* ]] ;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
$LocalTempDir=$env:TEMP;$ChromeInstaller="ChromeInstaller.exe";(New-Object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe',"$LocalTempDir\$ChromeInstaller");Start-Process -FilePath "$LocalTempDir\$ChromeInstaller" -ArgumentList '/silent', '/install' -Wait;$Process2Monitor="chrome";Do{$ProcessesFound=Get-Process -Name $Process2Monitor -ErrorAction SilentlyContinue;if($ProcessesFound){Write-Host "Still running: $($ProcessesFound.Name -join ', ')";Start-Sleep -Seconds 2}else{Remove-Item -Path "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose}}until(!$ProcessesFound)$LocalTempDir=$env:TEMP;$ChromeInstaller="ChromeInstaller.exe";(New-Object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe',"$LocalTempDir\$ChromeInstaller");Start-Process -FilePath "$LocalTempDir\$ChromeInstaller" -ArgumentList '/silent', '/install' -Wait;$Process2Monitor="chrome";Do{$ProcessesFound=Get-Process -Name $Proce |
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
# Use a multi-stage build to optimize image size | |
FROM node:14-alpine AS build | |
WORKDIR /app | |
COPY package*.json ./ | |
RUN npm ci --only=production | |
COPY . . | |
RUN npm run build | |
FROM nginx:alpine | |
LABEL maintainer="Your Name <[email protected]>" |
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
terraform { | |
required_providers { | |
google = { | |
source = "hashicorp/google" | |
} | |
} | |
} | |
provider "google" { | |
version = "3.5.0" |
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
resource "google_compute_instance" "terraform" { | |
project = "<PROJECT_ID>" | |
name = "terraform" | |
machine_type = "n1-standard-1" | |
zone = "us-west1-c" | |
boot_disk { | |
initialize_params { | |
image = "debian-cloud/debian-11" | |
} |
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
# Customizing Terminal Colors | |
# | |
# export PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\]' | |
cyan='\[\033[1;36m\]' | |
red='\[\033[1;31m\]' | |
green='\[\033[1;32m\]' | |
purple='\[\033[1;35m\]' | |
reset='\[\033[0m\]' |
brew install cosign
brew install crane
kind create cluster --image=kindest/node:v1.24.0
NewerOlder