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
uci set wireless.radio0.channel=8 | |
uci set wireless.radio0.htmode=HT40- | |
uci set wireless.radio0.noscan=1 | |
uci set wireless.radio0.bursting=1 | |
uci set wireless.radio0.ff=1 | |
uci set wireless.radio0.compression=1 | |
uci set wireless.radio0.xr=1 | |
uci set wireless.radio0.ar=1 | |
uci set wireless.radio0.txpower=20 |
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
# Make sure you are using gpg2 | |
git config --global gpg.program gpg2 | |
# Clone empty repository | |
git clone git@github.com:ruzickap/terraform-gitops.git | |
# Configure a repository to use git-crypt | |
cd terraform-gitops | |
git-crypt init |
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 bash | |
export CLUSTER_FQDN="${CLUSTER_FQDN:-ruzickap-kops-ubuntu.k8s.mylabs.dev}" | |
export AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-eu-central-1}" | |
export KUBECONFIG="/tmp/kubeconfig-${CLUSTER_FQDN}.conf" | |
export KOPS_STATE_STORE="s3://${CLUSTER_FQDN}" | |
set -euxo pipefail | |
## Create S3 bucket first |
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 -eux | |
export CLUSTER_NAME="${CLUSTER_NAME:-ruzickap}" | |
export AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-eu-central-1}" | |
export KUBECONFIG="/tmp/kubeconfig-${CLUSTER_NAME}.conf" | |
export TAGS="Owner=petr.ruzicka@gmail.com Environment=dev Group=Cloud_Native Squad=Cloud_Container_Platform" | |
set -euxo pipefail |
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
:: Tested on Windows 7 | |
@echo. | |
@echo Test connection settings | |
powershell -command "$client = new-object System.Net.WebClient; $client.DownloadFile('http://www.google.com', 'c:\del')" | |
if %ERRORLEVEL% NEQ 0 ( | |
@echo Can not download files form Internet !!! | |
pause | |
exit |
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 bash | |
export CLUSTER_NAME="${USER}-cilium" | |
export AWS_DEFAULT_REGION="eu-central-1" | |
export KUBECONFIG="/tmp/kubeconfig-${CLUSTER_NAME}.conf" | |
export TAGS="Owner=petr.ruzicka@gmail.com Environment=dev" | |
set -euxo pipefail |
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 bash | |
export CLUSTER_NAME="ruzickap-calico" | |
export AWS_DEFAULT_REGION="eu-central-1" | |
export KUBECONFIG="/tmp/kubeconfig-${CLUSTER_NAME}.conf" | |
export TAGS="Owner=petr.ruzicka@gmail.com Environment=dev" | |
set -euxo pipefail |
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 -eux | |
HEADSET="alsa_output.usb-Logitech_Logitech_USB_Headset-00.analog-stereo" | |
HEADSET_MIC="alsa_input.usb-Logitech_Logitech_USB_Headset-00.analog-mono" | |
#pacmd list-sink-inputs | |
#pacmd list-source-outputs | |
pacmd stat | grep -E '^Default (sink|source) name' |
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 -x | |
mkdir test | |
cd test | |
curl https://raw.githubusercontent.com/ruzickap/packer-templates/master/http/windows-server-2016/Autounattend.xml | sed '/.*Microsoft-Windows-PnpCustomizationsWinPE.*/,/component>/d' > Autounattend.xml | |
wget -c https://raw.githubusercontent.com/ruzickap/packer-templates/master/scripts/win-common/fixnetwork.ps1 | |
test -f packer || ( wget https://releases.hashicorp.com/packer/1.2.0/packer_1.2.0_linux_amd64.zip && unzip packer_1.2.0_linux_amd64.zip && rm packer_1.2.0_linux_amd64.zip ) |
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 bash | |
export AZURE_LOCATION=westeurope | |
export CLUSTER_FQDN="ruzickap2aks.k8s.mylabs.dev" | |
# CLUSTER_NAME must have max 12 character due to "--nodepool-name" parameter | |
export CLUSTER_NAME="${CLUSTER_FQDN%%.*}" | |
export KUBECONFIG="/tmp/kubeconfig-${CLUSTER_NAME}.conf" | |
set -euxo pipefail |
NewerOlder