Ejercicio: Usando el comando echo montar un dockerfile que muestre un index.html con un “hola mundo”.
- Creamos Dockerfile y escribimos
FROM ubuntu
RUN apt-get update
RUN apt-get install -y nginx
RUn echo "Hola Mundo" >> /var/www/html/| export DISPLAY=:0 | |
| # Copy/Paste | |
| alias pbcopy='xsel --clipboard --input' | |
| alias pbpaste='xsel --clipboard --output' | |
| # Top Commands | |
| alias topcommands='history | tr -s " " | cut -d" " -f3 | sort | uniq -c | sort -n | tail -20' | |
| # Javascript |
| Command | Keybinding | Mac Keyboard |
|---|---|---|
| add line comment | ctrl + K and C | ⌘K and C |
| copy line down | shift + alt + ↓ | ⇧⌘↓ |
| copy line up | shift + alt + ↑ | ⇧⌘↑ |
| format document | shift + alt + F | ⇧⌥F |
| go finish line | ctrl + → | ⌘→ |
| go start line | ctrl + ← | ⌘← |
| go finish word | alt + → | ⌥→ |
| go start word | alt + ← | ⌥← |
| == Adb Server | |
| adb kill-server | |
| adb start-server | |
| == Adb Reboot | |
| adb reboot | |
| adb reboot recovery | |
| adb reboot-bootloader | |
| == Shell |
| Notes | Git commands |
|---|---|
| Configure the author name to be used with your commits | git config --global user.name "Sam Smith" |
| Configure the email address to be used with your commits | git config --global user.email sam@example.com |
| Configure gitignore global | git config --global core.excludesfile "~/.gitignore_global" |
| ## How to hide API keys from github ## | |
| 1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while | |
| retaining your commits: https://help.github.com/articles/remove-sensitive-data/ | |
| 2. In the terminal, create a config.js file and open it up: | |
| touch config.js | |
| atom config.js |
#SwitchResX Settings for LG 21:9 UltraWide
SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .
##Disabling System Integrity Protection (SIP)
If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following: