# Default GitHub
Host github.com
HostName github.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
# Work GitHub
Host work.github.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
#!/bin/bash | |
# the command doing the real work has an exit status here | |
status=$? # save it | |
find . -not -uid $(stat -c "%u" .) -exec chown --reference=. {} \; | |
exit $status # exit with the saved status value |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
git update-index --assume-unchanged
- https://stackoverflow.com/questions/6317169/using-gitignore-to-ignore-but-not-delete-files
git remote -v
git remote rm REMOTE_ORIGIN_URL
Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
$('.aClass').click( function(e) {
event.preventDefault();
});
- aClass is the class on the accordion anchor link
- Link resource: https://stackoverflow.com/questions/28977499/bootstrap-accordion-how-to-avoid-page-scroll-when-collapse-or-expand-elements
- Shows what port is exposed to the container
- Shows the IP address of the container which by default is different from the host IP
- Using Windows shell you need to replace the single quotes with double quotes
- i.e.
"{{.NetworkSettings.IPAddress}}"
- i.e.
docker container inspect --format "{{.NetworkSettings.IPAddress}}" container_name
- Publishing ports is always in HOST:CONTAINER format
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 | |
# Delete all containers | |
docker container rm $(docker container ps -a -q) | |
# Delete all containers even running ones | |
docker container rm -f $(docker container ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |