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
| Explain git and GitHub to me, as if I'm a farmer. I'm a really smart farmer, and I know a lot about agriculture, but I don't know much about writing and maintaining code. Please use the analogy of farms, farming, planting crops. planting trees, growing crops, pulling weeds, pruning, and other farming analogies. Explain the various tools and git commands, CLI, and also why I might want to use modern tools like 'Github Desktop'. What do each of the tools do? How can I avoid making mistakes? Make sure I understand the analogies, so I don't kill any of my crops (or destroy my code-base). |
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
| # install chromium, its driver, and selenium | |
| !apt update | |
| !apt install libu2f-udev libvulkan1 | |
| !wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| !dpkg -i google-chrome-stable_current_amd64.deb | |
| !wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.70/linux64/chromedriver-linux64.zip | |
| !unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver -d /usr/local/bin/ | |
| !pip install selenium chromedriver_autoinstaller | |
| # set options to be headless, .. |
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
| """ssh-copy-id for Windows. | |
| Example usage: python ssh-copy-id.py ceilfors@my-remote-machine | |
| This script is dependent on msysgit by default as it requires scp and ssh. | |
| For convenience you can also try that comes http://bliker.github.io/cmder/. | |
| """ | |
| import argparse, os | |
| from subprocess import call |
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
| """ssh-copy-id for Windows. | |
| Example usage: python ssh-copy-id.py ceilfors@my-remote-machine | |
| This script is dependent on msysgit by default as it requires scp and ssh. | |
| For convenience you can also try that comes http://bliker.github.io/cmder/. | |
| """ | |
| import argparse, os | |
| from subprocess import call |