- Structure and Interpretation of Computer Programs
- XP Explained
- Architecture of Open Source Applications
- Architecture of Open Source Applications: Volume II
- Clean Architecture
- Growing Object-Oriented Software, Guided by Tests
- Refactoring: Improving Design of Existing Code
- [Refactoring to Patterns](https://www.amazon.com/Refactoring-Patterns-Joshua-
This file contains 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
# Remove the line below if you want to inherit .editorconfig settings from higher directories | |
root = true | |
# C# files | |
[*.cs] | |
#### Core EditorConfig Options #### | |
# Indentation and spacing | |
indent_size = 4 |
This file contains 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
@("app-one", "app-two", "app-three") | ForEach-Object { scoop cache rm $_ } |
This file contains 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
docker pull docker.bintray.io/jfrog/artifactory-oss:latest | |
docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest | |
# With volume mounting | |
docker run | |
--name artifactory-oss | |
-d | |
-v /var/opt/jfrog/artifactory:/var/opt/jfrog/artifactory | |
-p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest |
This file contains 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
# Default nmap scan | |
nmap localhost | |
# Default service nmap | |
nmap -sV localhost | |
# Service scan with output logging | |
nmap -sV -oA log.txt localhost | |
# Scan specific ports | |
nmap -p1-1024 localhost | |
# e.g. Check if local port 80 is open | |
nmap -p 80 localhost |
This file contains 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
### | |
docker run -i --dns=8.8.8.8 --name=mycontainer1 -i ubuntu:latest | |
### | |
docker run -t --dns=8.8.8.8 --dns-search=mydomain.local --volume /local_vol --volume /home/user:/remote_vol --name=mycontainer3 -i ubuntu:latest /bin/bash | |
### Mnt volume hosting basic web template | |
docker run --name=webtest -v /home/ddubson/docker/dockerwww:/var/www/html -it centos6:baseweb /bin/bash | |
### |
This file contains 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
1. Create a directory in your 'user' home directory called 'docker'. Within that directory, create another directory called 'mydata'. Within that directory, create a file called 'mydata.txt' containing any text message you want. | |
# mkdir -p docker/mydata | |
# touch docker/mydata/mydata.txt | |
2. Create a docker container name 'local_vol' from the 'centos:6' image. The container should be created in interactive mode, attached to the current terminal and running the bash shell. Finally create the container with a volume (or directory) called 'containerdata' so that the system will automatically create the directory/mount when the container starts. | |
# docker create --name="local_vol" -t -i -v /containerdata centos:6 /bin/bash | |
3. List the filesystems within the container, specifically looking for the volume/directory that was added to the container during creation. |
This file contains 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
1. Create a container from the base image for the latest version of Ubuntu available (if you do not have an Ubuntu base image installed locally, pull the latest one down for your local repository). The container should be started in interactive mode attached to the current terminal and running the bash shell. Once running, shut the container down by exiting. | |
# docker pull ubuntu | |
# docker run -t -i ubuntu:latest /bin/bash | |
# exit | |
2. Run the appropriate Docker command to get the name of the previously run container. Issue the appropriate command to restart the container that you obtained the name of. Do NOT create a new container, restart the one we just used. | |
## -l = latest | |
# docker ps -l |
NewerOlder