Last active
September 26, 2018 11:11
-
-
Save bzhr/7e298109a04bf12895161aa8f37dfbae to your computer and use it in GitHub Desktop.
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
# Start MongoDB | |
`sudo systemctl start mongod` | |
# Check if MongoDB is running | |
`sudo systemctl status mongod` | |
# More info | |
https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04 | |
# Mount QNap NAS Folder to Ubuntu | |
Example: | |
sudo mount -t nfs sai.local:/Public /mnt/nas/Public | |
List available (public) Nas Folders: | |
// check that the IP addr used is correct for NAS | |
showmount -e sai.local | |
# sai - name of the storage device, because the IP is dynamic | |
# The above mount command will be lost after reboot (with user and pass) | |
# To keep the mount add something like this to /etc/fstab | |
sai.local/vmware-bkp /home/<username>/mnt/QNAP-backup cifs username=admin,password=admin 0 0 | |
# Mount folders from the NAS permanently | |
# Add this line to /etc/fstab | |
sai.local:/Multimedia /mnt/nas/Multimedia/ nfs | |
# Refmt example of recompiling Reason ton OCaml | |
refmt --parse re --print ml ./hello_world.re > hello_world_ocaml.ml | |
# Install/Update Postman on Ubuntu | |
# From: https://blog.bluematador.com/posts/postman-how-to-install-on-ubuntu-1604/ | |
# Download latest version from: https://www.getpostman.com/apps | |
# Replace the current app in /opt/Postman with the new one | |
# Maybe first delete the old: | |
`sudo rm -rf /opt/Postman` | |
# Then move the new to /opt/ | |
# To create the icon: | |
cat > ~/.local/share/applications/postman.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman | |
Exec=postman | |
Icon=/opt/Postman/resources/app/assets/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
EOL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment