merge commits:
git rebase -i HEAD~(# the number of merging commits - 1)
revert changes:
git reflog # or git log -g
merge commits:
git rebase -i HEAD~(# the number of merging commits - 1)
revert changes:
git reflog # or git log -g
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:
### 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 |
# 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') |
Reference: 1
install golang with brew:
$ brew update
$ brew install golang
setting up PATH environment variable (in ~/.bash_profile):