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 | |
aptitude -y install expect | |
// Not required in actual script | |
MYSQL_ROOT_PASSWORD=abcd1234 | |
SECURE_MYSQL=$(expect -c " | |
set timeout 10 |
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
#update and install some dependencies | |
sudo apt-get update && apt-get upgrade -y; | |
sudo apt-get install -y debconf-utils zsh htop libaio1; | |
#set the root password | |
DEFAULTPASS="rootpass" | |
#set some config to avoid prompting | |
sudo debconf-set-selections <<EOF | |
mysql-apt-config mysql-apt-config/select-server select mysql-8.0 |
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
FROM python:3.7.4-buster | |
ADD . /app | |
WORKDIR /app | |
RUN python -m venv venv | |
RUN venv/bin/pip install --upgrade pip | |
RUN venv/bin/pip install -r requirements.txt | |
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
var body = document.getElementsByTagName('body')[0], | |
sidebar = document.getElementById('sidebar'); | |
// sidebar overflow hide | |
sidebar.onmouseover = function() { | |
body.style.overflow = 'hidden'; | |
} | |
sidebar.onmouseout = function() { | |
body.style.overflow = 'auto'; |
NewerOlder