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/sh | |
set -e | |
export DNS_NAME=$1 | |
IP="NOTSET" | |
DNS_IP=$(nslookup $DNS_NAME 8.8.8.8 | awk -F': ' 'NR==5 { print $2 } ') | |
echo "Checking DNS - IP: $IP DNS_IP: $DNS_IP DNS_NAME: $DNS_NAME" | |
ATTEMPTS=25 | |
I=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
set -e | |
cp ~/.bashrc .bashrc_backup | |
echo "Theme" | |
sudo add-apt-repository ppa:tista/adapta -y | |
sudo apt-get update | |
sudo apt-get install adapta-backgrounds adapta-gtk-theme -y | |
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height 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
/** | |
* Creates a read/writable property which returns a function set for write/set (assignment) | |
* and read/get access on a variable | |
* | |
* @param {Any} value initial value of the property | |
*/ | |
function createProperty(value) { | |
var _value = value; | |
/** |
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
export DEBIAN_FRONTEND=noninteractive | |
export TEMP_DISK=/mnt | |
apt-get install -y -q --no-install-recommends \ | |
build-essential | |
# Add dockerce repo | |
apt-get update -y -q --no-install-recommends | |
apt-get install -y -q -o Dpkg::Options::="--force-confnew" --no-install-recommends \ |
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
echo "Hello World" |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "go", | |
"request": "launch", | |
"mode": "debug", | |
"remotePath": "", |
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/sh | |
#!/bin/bash | |
# $1 = Azure storage account name | |
# $2 = Azure storage account key | |
# $3 = Azure file share name | |
# $4 = mountpoint path | |
mkdir -p $4 | |
# CIFS settings from Azure CloudShell container which uses .img approach. | |
mount -t cifs //$1.file.core.windows.net/$3 $4 -o vers=2.1,username=$1,password=$2,sec=ntlmssp,cache=strict,domain=X,uid=0,noforceuid,gid=0,noforcegid,file_mode=0777,dir_mode=0777,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1 |
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
CURRENT="khenidak/hyperkube-amd64:kv1.5" | |
NEW="gcrio.azureedge.net/google_containers/hyperkube-amd64:v1.7.0" | |
SEDPATTERN="s|$CURRENT|$NEW|g" | |
sudo systemctl stop kubelet.service | |
sudo sed -i $SEDPATTERN /etc/kubernetes/manifests/* | |
sudo sed -i $SEDPATTERN /etc/kubernetes/addons/* | |
sudo sed -i $SEDPATTERN /etc/default/kubelet | |
sudo systemctl daemon-reload |
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
$resourceGroupName = "some-deployment-group" | |
Login-AzureRmAccount | |
Save-AzureRmProfile "$PSScriptRoot\.azureprofile" | |
function Delete-History { | |
$batch = 80 | |
Get-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName | ForEach-Object { | |
$batch = $batch -1 |
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
Login-AzureRmAccount | |
Save-AzureRmProfile "$PSScriptRoot\.lgazureprofile" | |
Get-AzureRmResourceGroupDeployment -ResourceGroupName "something" | ForEach-Object { Start- | |
Job -ScriptBlock { | |
param($deployment) | |
Select-AzureRmProfile -Path "$PSScriptRoot\.lgazureprofile" | |
$deployment | Remove-AzureRmResourceGroupDeployment | |
} -ArgumentList $_ } |