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
F1 | F2 | F3 | F4 | L | |
---|---|---|---|---|---|
4.8 | 3.4 | 1.9 | 0.2 | positive | |
5 | 3 | 1.6 | 1.2 | positive | |
5 | 3.4 | 1.6 | 0.2 | positive | |
5.2 | 3.5 | 1.5 | 0.2 | positive | |
5.2 | 3.4 | 1.4 | 0.2 | positive | |
4.7 | 3.2 | 1.6 | 0.2 | positive | |
4.8 | 3.1 | 1.6 | 0.2 | positive | |
5.4 | 3.4 | 1.5 | 0.4 | positive | |
7 | 3.2 | 4.7 | 1.4 | negative |
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
stages: | |
- test | |
- deploy | |
test_flask: | |
variables: | |
REDIS_URL: redis://redis:6379 | |
services: | |
- redis | |
image: python:3.7-alpine |
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
# materi presentasi | |
- virtualization | |
- contianer | |
- virt vs container | |
- what & why docker? | |
https://docs.google.com/presentation/d/1pE-7hoURxkZ2DSlFc-ULLkTsU4MmcvEyZruyCOVIRxE/edit?usp=sharing | |
# buat akun docker hub | |
https://hub.docker.com/ |
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 time | |
import redis | |
from flask import Flask | |
app = Flask(__name__) | |
cache = redis.Redis(host='redis', port=6379) | |
def get_hit_count(): | |
retries = 5 | |
while True: |
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
git clone --depth=1 https://github.com/sstephenson/rbenv.git $RBENV_ROOT | |
echo 'eval "$($RBENV_ROOT/bin/rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
echo 'eval "$($RBENV_ROOT/bin/rbenv init -)"' >> $HOME/.bashrc | |
chmod +x /etc/profile.d/rbenv.sh | |
mkdir $RBENV_ROOT/plugins | |
git clone --depth=1 https://github.com/sstephenson/ruby-build.git $RBENV_ROOT/plugins/ruby-build | |
$RBENV_ROOT/bin/rbenv install 2.4.7 | |
$RBENV_ROOT/bin/rbenv global 2.4.7 |
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: windows | |
tasks: | |
- name: install git on windows | |
win_chocolatey: | |
name: git | |
state: present |
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
windows: | |
hosts: | |
192.168.56.3 | |
vars: | |
ansible_user: aditya | |
ansible_password: passwordpassword | |
ansible_port: 5985 | |
ansible_connection: winrm | |
ansible_winrm_server_cert_validation: ignore |
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
windows: | |
hosts: | |
192.168.56.3 | |
vars: | |
ansible_user: aditya | |
ansible_password: inipasswordnya | |
ansible_port: 5985 | |
ansible_connection: winrm | |
ansible_winrm_server_cert_validation: ignore |
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
... | |
whoami: | |
image: containous/whoami |
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
... | |
wp-database: | |
image: mariadb | |
environment: | |
- MYSQL_ROOT_PASSWORD=ayeaye | |
- MYSQL_DATABASE=wp_db | |
- MYSQL_USER=adit | |
- MYSQL_PASSWORD=adit123 |