curl -fsSL https://get.docker.com/ | sudo sh
sudo usermod -aG docker $USER
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# https://github.com/docker/compose/releases/download/1.27.2/docker-compose-Linux-x86_64
sudo chmod +x /usr/local/bin/docker-compose
# check (re-login)
docker version
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
| # DO NOT ADD ANY 'import' STATEMENT | |
| # Problem 1 | |
| a0, a1, a2, a3, a4, x = 1, 2, 3, 4, 5, 6 # python 에서는 이렇게 초기화도 가능하다. packing | |
| y = (a4 * x**4) + (a3 * x**3) + (a2 * x**2) + (a1 * x) + a0 # TODO | |
| print("Value of The Quartic Fomula:", y) #7465 | |
| # Problem 2 | |
| def gcd(a, b): | |
| # TODO - 유클리드 호제법 사용 |
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 random | |
| def largest(l): | |
| m = None | |
| for i in l: | |
| if m == None or i > m: | |
| m = i | |
| return m | |
| #return max(l) |
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
| cat pip.conf | |
| [global] | |
| index-url=http://ftp.daumkakao.com/pypi/simple | |
| trusted-host=ftp.daumkakao.com | |
| kaggle.json | |
| {"username":"zihado","key":"307ff45220156b72c231b4a966b8c6bf"} | |
| docker run -d -p 8888:8888 -v "$PWD":/home/jovyan/work --name ds-notebook jupyter/datascience-notebook |
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
| ~/.pip/pip.conf | |
| [global] | |
| index-url=http://ftp.daumkakao.com/pypi/simple | |
| trusted-host=ftp.daumkakao.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
| ``` | |
| $ git clone https:// | |
| $ git branch develop | |
| $ git checkout -b develop | |
| $ git merge | |
| $ git remote -v | |
| $ git fetch | |
| $ git push | |
| $ git commit -a -m "hello" | |
| ``` |
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":"2022-03-05T16:07:58.551Z","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
| * https://httpbin.org/ | |
| * https://reqbin.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
| for node in node1 node2 node3;do | |
| multipass launch -n $node | |
| done | |
| # Init cluster on node1 | |
| multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -" | |
| # Get node1's IP | |
| IP=$(multipass info node1 | grep IPv4 | awk '{print $2}') |
-
In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"
-
A "Parallels Tools" CD will popup on your Ubuntu desktop.
-
Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"
-
Open terminal, change directory to parallels_fixed (
cd ~/Desktop/parallels_fixed) -
Make command line installer executable (
chmod +x install) -
Change directory to "installer" (
cd installer) -
Make few other scripts executable:
chmod +x installer.* *.sh prl_*