- .qcow2 - KVM type Virtual Machines
- .vmdk - VMware and VirtualBox and ESXi
- .vdi - VirtualBox
- .vhdx - Microsoft Hyper-V
- .vhd - Azure requires fixed size
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkIsolation] | |
"DSubnetsAuthoritive"=dword:00000001 | |
"DomainSubnets"="100.64.0.0/12" |
- Follow https://techcommunity.microsoft.com/t5/virtualization/sneak-peek-taking-a-spin-with-enhanced-linux-vms/ba-p/382415
- xrdp.service not starting because address already in use: microsoft/linux-vm-tools#94
sudo apt-get update
sudo apt install git
git clone https://github.com/Microsoft/linux-vm-tools.git ~/linux-vm-tools
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
uild1: | |
image: centos:7 | |
stage: build | |
script: | |
- | | |
set +x | |
echo "Color test:" | |
echo "-----------" | |
echo -e "\033[30;1m This is ansi_bold black\033[0;m" | |
echo -e "\033[31;1m This is ansi_bold_red\033[0;m" |
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
curl -si https://api.github.com/users/bitroniq/repos | \ | |
grep ssh_url | cut -d '"' -f4 | xargs -i git clone {} |
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
#cloud-config | |
ssh_pwauth: True | |
password: techloq12 | |
users: | |
- default | |
- name: root | |
- name: bitroniq | |
chpasswd: | |
list: | | |
root:techloq12 |
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 sh | |
# First, we need to grab the name of the IAM role attached to the instance. | |
instance_profile=$(curl http://169.254.169.254/latest/meta-data/iam/security-credentials/) | |
# Alright, we’ve got the IAM role name, which we’ll now use to grab the access and secret access keys. | |
aws_access_key_id=$(curl http://169.254.169.254/latest/meta-data/iam/security-credentials/"${instance_profile}" | grep AccessKeyId | cut -d':' -f2 | sed 's/[^0-9A-Z]*//g') | |
aws_secret_access_key=$(curl http://169.254.169.254/latest/meta-data/iam/security-credentials/"${instance_profile}" | grep SecretAccessKey | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g') | |
aws_session_token=$(curl http://169.254.169.254/latest/meta-data/iam/security-credentials/"${instance_profile}" | grep Token | awk '{ print $3 }' | sed -e 's/^"//' -e 's/",//') |
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 | |
# gets iam security credentials from instance metadata and writes them to | |
# awscli environment variables and .s3cfg (for s3cmd) | |
# Usage: ec2-get-security-credentials ROLENAME DEFAULT_REGION | |
# ROLE=$1 | |
# DEFAULT_REGION=$2 | |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
NewerOlder