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:
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:
#!/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 | |
#!/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/",//') |
#cloud-config | |
ssh_pwauth: True | |
password: techloq12 | |
users: | |
- default | |
- name: root | |
- name: bitroniq | |
chpasswd: | |
list: | | |
root:techloq12 |
curl -si https://api.github.com/users/bitroniq/repos | \ | |
grep ssh_url | cut -d '"' -f4 | xargs -i git clone {} |
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" |
sudo apt-get update
sudo apt install git
git clone https://github.com/Microsoft/linux-vm-tools.git ~/linux-vm-tools
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkIsolation] | |
"DSubnetsAuthoritive"=dword:00000001 | |
"DomainSubnets"="100.64.0.0/12" |