sudo apt-get install software-properties-common
sudo add-apt-repository --yes --no-update ppa:maas/2.6
sudo apt update
sudo apt install maas -y
dpkg-reconfigure maas-region-controller
ssh-keygen
maas createadmin
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 requests | |
| import re | |
| import os | |
| import subprocess | |
| subprocess.run(["pip3", "install", "bs4"]) | |
| from bs4 import BeautifulSoup | |
| #variables | |
| # target URL to scrap |
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
| {"lastUpload":"2021-01-18T15:50:31.316Z","extensionVersion":"v3.4.3"} |
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
| deployment: | |
| deployer: juju | |
| orchestrator: openstack | |
| provider_config: | |
| bms: | |
| domainsuffix: englab.juniper.net | |
| ntpserver: 10.204.217.158 | |
| ssh_pwd: c0ntrail123 | |
| ssh_user: root |
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
| deployment: | |
| deployer: juju | |
| orchestrator: openstack | |
| provider_config: | |
| bms: | |
| domainsuffix: englab.juniper.net | |
| ntpserver: 10.204.217.158 | |
| ssh_pwd: c0ntrail123 | |
| ssh_user: root |
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
| network: | |
| version: 2 | |
| renderer: networkd | |
| ethernets: | |
| eno1: | |
| dhcp4: no | |
| addresses: [10.204.216.194/24] | |
| gateway4: 10.204.216.254 | |
| nameservers: |
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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/Users/nuthanc/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
| ZSH_THEME="robbyrussell" |
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
| alias s="source ~/.bashrc" | |
| alias gaa="git add --all" | |
| alias cb="code ~/.bashrc || vi ~/.bashrc" | |
| p(){ | |
| cd $(pwd) | |
| git add --all | |
| git commit -m "$1" | |
| git push origin master | |
| } |
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
| #To fix bad hashInsert the following as after "late_commands:" in /etc/maas/preseeds/curtin_userdata | |
| prxyfix_01_cmd: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'Acquire::http::Pipeline-Depth 0;' > /etc/apt/apt.conf.d/99FixBadProxy"] | |
| prxyfix_02_cmd: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'Acquire::http::No-Cache true;' >> /etc/apt/apt.conf.d/99FixBadProxy"] | |
| prxyfix_03_cmd: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo 'Acquire::BrokenProxy true;' >> /etc/apt/apt.conf.d/99FixBadProxy"] | |
| #Automatically insert above into /etc/maas/preseeds/curtin_userdata using sed | |
| sudo sed -e '/late_commands:/a \ \ prxyfix_01_cmd: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo '"'"'Acquire::http::Pipeline-Depth 0;'"'"' > /etc/apt/apt.conf.d/99FixBadProxy"]\n\ \ prxyfix_02_cmd: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo '"'"'Acquire::http::No-Cache true;'"'"' >> /etc/apt/apt.conf.d/99FixBadProxy"]\n\ \ prxyfix_03_cmd: ["curtin", "in-target", "--", "sh", "-c", "/bin/ec |
OlderNewer