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 | |
sudo yum -y install epel-release | |
sudo yum repolist | |
sudo yum -y install gcc gcc-c++ openssl-devel bzip2-devel \ | |
python36 python36-devel python36-setuptools python36-tools \ | |
elfutils-libelf-devel libpcap-devel cmake glibc-static qemu telnet putty \ | |
qt5-qtbase qt5-qtbase-devel qt5-qtsvg qt5-qtsvg-devel \ | |
wireshark-gnome openvpn | |
curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6 |
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
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
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 | |
#curl -L https://git.io/fjWan -o install-ansible.sh && bash -x install-ansible.sh | |
yum -y install epel-release && yum -y install ansible || \ | |
export DEBIAN_FRONTEND="noninteractive" ; \ | |
apt-add-repository -y ppa:ansible/ansible ; \ | |
apt-get update ; \ | |
apt-get upgrade --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" ; \ | |
apt-get -y install ansible |
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
# Kickstart file for composing the "Fedora" spin of Fedora (rawhide) | |
# Maintained by the Fedora Release Engineering team: | |
# https://fedoraproject.org/wiki/ReleaseEngineering | |
# mailto:[email protected] | |
# Use a part of 'iso' to define how large you want your isos. | |
# Only used when composing to more than one iso. | |
# Default is 695 (megs), CD size. | |
# Listed below is the size of a DVD if you wanted to split higher. | |
part iso --size=8098 |
These are instructions for standing up a Kubernetes cluster with Raspberry Pis with the current Hypriot (1.9.0), with K8S v1.10.5
Thanks to https://gist.github.com/alexellis/fdbc90de7691a1b9edb545c17da2d975 and https://gist.github.com/aaronkjones/d996f1a441bc80875fd4929866ca65ad for doing all the hard work!
- This was done using a cluster of 5 RPi 3 B+
- All Pi's are connected via a local ethernet switch on a 10.0.0.0/24 LAN
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 | |
########################################### | |
# program: nat_tables.sh # | |
# Author: Diarmuid O'Briain # | |
# Copyright ©2017 C2S Consulting # | |
# License: www.gnu.org/licenses/gpl.txt # | |
########################################### | |
# NAT masquerade rules for hypervisor, hosting OpenStack testbed # | |
# Select interface, typically 'wlp4s0' for WIFI and 'enp0s3' for wired Ethernet | |
INTERFACE=eth0 # Unhash for wired Ethernet interface |
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 | |
echo "ceci est un test" |
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
--- | |
- hosts: localhost | |
# from the role mediapop/ansible-scaleway-linux-headers | |
gather_facts: true | |
tasks: | |
- name: "Set kernel facts" | |
set_fact: | |
scaleway_upstream_kernel: "{{ansible_kernel|regex_replace('-.*$', '')}}" | |
scaleway_local_kernel: "{{ansible_kernel|regex_replace('^[^-]+', '')}}" |