- Create user '''adduser [userName]'''
- Set up SSH connection
- Disable password login
- (Deprecated) Set up webite configuration with Apache2
- Change DNS IP address configuration for Type: A, Name: @ rule
Reference: 1
install golang with brew:
$ brew update
$ brew install golang
setting up PATH environment variable (in ~/.bash_profile):
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
# https://realpython.com/introduction-to-mongodb-and-python/ | |
# to connect to mongodb: | |
# windows: | |
# cmd: $ "C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe" --dbpath="c:\data\db" | |
import pymongo | |
from pymongo import MongoClient | |
# default port: client = MongoClient('mongodb://localhost:27017') |
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
### PYGAME IN WX ### | |
# A simple test of embedding Pygame in a wxPython frame | |
# | |
# By David Barker (aka Animatinator), 14/07/2010 | |
# Patch for cross-platform support by Sean McKean, 16/07/2010 | |
# Patch to fix redrawing issue by David Barker, 20/07/2010 | |
# Second window demo added by David Barker, 21/07/2010 | |
# modified by Yuxi Luo (Skycocoo), 19/06/2018 | |
# removed all deprecated methods to current pygame & wx version |
How To Install the Apache Web Server on Ubuntu 16.04
Create directory for public html:
$ sudo mkdir -p /var/www/(__domain_name__)/public_html
Create virtual host file for domain:
merge commits:
git rebase -i HEAD~(# the number of merging commits - 1)
revert changes:
git reflog # or git log -g