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
message = 'Divide the army in two, advance and outflank them on the right. I will advance on the left flank from the woods getting them by surprise.' | |
message = message.replace(' ','') | |
message = message.replace(',','') | |
message = message.replace('.','') | |
shift_secret = 6 | |
ciphered_message = '' | |
print(message) | |
for character in message: | |
if character.isupper(): | |
ciphered_message += chr((ord(character) + shift_secret - 65) % 26 + 65) |
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
# Run a container and expose port to host | |
docker run --name mongo-instance-01 -p 27017:27017 -d mongo:latest | |
# Access its terminal | |
docker ps | |
docker exec -it <container-id> bash | |
# Run the same mongo DB in the above example with persistence. | |
docker volume create mongo-volume-01 | |
docker run \ |
NewerOlder