- open a terminal
- copy/paste the
_runit.sh
script into a file (chmod +x
it and run it) or just run it line by line
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
openstack-01 | |
description: Computer | |
product: AS -1124US-TNRP (To be filled by O.E.M.) | |
vendor: Supermicro | |
version: 0123456789 | |
serial: <redacted> | |
width: 64 bits | |
capabilities: smbios-3.2.0 dmi-3.2.0 smp vsyscall32 | |
configuration: boot=normal family=To be filled by O.E.M. sku=To be filled by O.E.M. uuid=8b641600-87fd-11eb-8000-3cecef5dbea8 | |
*-core |
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
# Distribution / packaging | |
.Python | |
.DS_Store | |
env/ | |
build/ | |
develop-eggs/ | |
dist/ | |
downloads/ | |
eggs/ | |
.eggs/ |
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 | |
sudo apt update -y | |
sudo apt install python3-dev python3-pip | |
pip3 install ansible |
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
--- | |
# sudo apt install python3-pip | |
# sudo pip3 install ansible | |
# mkdir -p ~/.ansible/plugins/modules/ | |
# curl https://raw.githubusercontent.com/jistr/ansible-gsetting/master/gsetting.py > ~/.ansible/plugins/modules/gsetting.py | |
# sudo ansible-playbook <name of this file>.yaml | |
- hosts: localhost | |
connection: local | |
become: yes | |
tasks: |
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
from adafruit_servokit import ServoKit | |
from time import sleep | |
kit = ServoKit(channels=16) | |
DOOR = 0 | |
kit.servo[DOOR].actuation_range = 270 | |
kit.servo[DOOR].set_pulse_width_range(1000,2500) | |
def open_door(open_angle=120, increment=10, pause_time=0.05): |
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 | |
# MySQL database credentials | |
DB_USER="" # put your wordpres mysql user name here | |
DB_PASS='' # put your database password here | |
DB_NAME="" # put your mysql database name here | |
DB_HOST="" # put your mysql host here | |
# Base path for wordpress files | |
WWW_DIR="/var/www/html" # set this to the base path of your wordpress install | |
# Set the date format, filename and the directories where your backup files will be placed and which directory will be archived. |
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
# Step 1 - install xcode tools | |
# Xcode unattended install - https://apple.stackexchange.com/questions/107307/how-can-i-install-the-command-line-tools-completely-from-the-command-line | |
xcode-select --install | |
# deal with the interactive windows to approve/accept license | |
# Step 2 - install homebrew | |
# Install homebrew - https://brew.sh/ | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
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
sudo apt-get update -y && \ | |
sudo apt-get upgrade -y && \ | |
sudo apt-get install -y laptop-mode-tools | |
# docker-ce - https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common && \ | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \ | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" && \ | |
sudo apt-get install -y docker-ce |
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
# Copyright 2015-2016 Canonical Ltd. This software is licensed under the | |
# GNU Affero General Public License version 3 (see the file LICENSE). | |
"""DLI Power Driver.""" | |
__all__ = [] | |
import re | |
from time import sleep |
NewerOlder