sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit
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
cache_directory = "/tmp/retroarch" | |
core_options_path = "/opt/retropie/configs/all/retroarch-core-options.cfg" | |
system_directory = "/home/pi/RetroPie/BIOS" | |
assets_directory = "/opt/retropie/emulators/retroarch/assets" | |
config_save_on_exit = "false" | |
video_threaded = "true" | |
video_smooth = "false" | |
video_aspect_ratio_auto = "true" | |
video_shader_dir = "/opt/retropie/emulators/retroarch/shader/" | |
video_font_size = "12" |
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
import csv | |
import ml4k | |
import os | |
listOfFiles = [ | |
'./nflscrapR-data/games_data/regular_season/reg_games_2018.csv', | |
'./nflscrapR-data/games_data/regular_season/reg_games_2017.csv', | |
'./nflscrapR-data/games_data/regular_season/reg_games_2016.csv', | |
'./nflscrapR-data/games_data/regular_season/reg_games_2015.csv' | |
] |
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
import csv | |
import ml4k | |
import os | |
listOfFiles = [ | |
'./nflscrapR-data/games_data/regular_season/reg_games_2017.csv', | |
'./nflscrapR-data/games_data/regular_season/reg_games_2016.csv' | |
] | |
API_KEY = "******************************" |
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
import csv | |
with open('~/Documents/github-projects/nflscrapR-data/games_data/regular_season/reg_games_2018.csv') as csv_file: | |
csv_reader = csv.reader(csv_file, delimiter=',') | |
line_count = 0 | |
for row in csv_reader: | |
if line_count == 0: | |
print(f'Column names are {", ".join(row)}') | |
line_count += 1 | |
else: |
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
[root@terraform_test terraform_external_data_test]# cat kube-token.sh | |
#! /bin/bash | |
# openssl and kubeadmin need to be installed on kube-controller before running this script | |
token=$(/usr/bin/ssh kube-controller "kubeadm token list | grep -v DESCRIPTION | awk '{print \$1}'") | |
certhash=$(/usr/bin/ssh kube-controller "openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'") | |
jq -n --arg token "$token" --arg certhash "$certhash" '{"token":$token, "certhash":$certhash}' | |
[root@puppet terraform_external_data_test]# | |
[root@terraform_test terraform_external_data_test]# cat main.tf | |
data "external" "kube-token" { |
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 | |
PORTAL_PORT=$(kubectl describe service kubernetes-dashboard --namespace=kube-system| grep -i 'NodePort:' | awk {' print $3 '} | awk -F \/ {' print $1 '}) | |
PORTAL_NODE=$(kubectl get pods --namespace=kube-system| grep -i dashboard | awk {' print $1 '}) | |
PORTAL_IP_ADDRESS=$(kubectl describe pod $PORTAL_NODE --namespace=kube-system| grep Node | grep '/' | awk -F \/ {' print $2 '}) | |
echo "kubernetes dashboard URL is the following: http://$PORTAL_IP_ADDRESS:$PORTAL_PORT/" |
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
### install powershell: | |
curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo | |
sudo yum install -y powershell | |
pwsh | |
### install powercli: | |
Set-PSRepository -Name "PSGallery" -InstallationPolicy "Trusted" | |
Find-Module "VMware.PowerCLI" | Install-Module -Scope "CurrentUser" -AllowClobber | |
Import-Module "VMware.PowerCLI" | |
Set-PowerCLIConfiguration -InvalidCertificateAction ignore -confirm:$false |
Notes were generated from the following install guide: https://docs.openstack.org/newton/install-guide-ubuntu/environment-packages.html
Generate a password and save it somewhere:
openssl rand -hex 10
Get latest to prepare the system for Openstack installation:
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
# install vagrant | |
wget https://releases.hashicorp.com/vagrant/2.1.1/vagrant_2.1.1_x86_64.deb | |
sudo dpkg -i vagrant_2.1.1_x86_64.deb | |
which vagrant | |
vagrant --version | |
# install ovftool for use with the vcenter provider | |
./VMware-ovftool-4.3.0-7948156-lin.x86_64.bundle | |
which ovftool | |
ovftool --version |
NewerOlder