Create an empty git repo or reinitialize an existing one
$ git init| # Put this in your ~/.gitconfig or ~/.config/git/config | |
| # Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
| [user] | |
| name = Your Full Name | |
| email = [email protected] | |
| [color] | |
| # Enable colors in color-supporting terminals | |
| ui = auto | |
| [alias] | |
| st = status |
Create an empty git repo or reinitialize an existing one
$ git init| # copy into ~/.profile or ~/.bashrc | |
| #alias ls='ls -F --color --show-control-chars' | |
| alias ls='ls -F --show-control-chars' | |
| alias ll='ls -l' | |
| # Windows aliases | |
| alias cls='clear' | |
| alias dir='ls -F --color=always' | |
| alias del='rm' |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Twitter</title> | |
| <link rel="stylesheet" type="text/css" href="./css/tailwind.css"> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
| </head> |
This cheat sheet describes my usage/implementation of virtualenv with virtualenv wrapper and the bash foo that I added with the help of many blogs to make it all tick together in fun land.
Quick Reference
$ echo $WORKON_HOME
/Users/benjamin/.virtualenvs
$ echo $PROJECT_HOME
| gource -1920x1080 --title "MyTitle" --hide filenames --stop-at-end --file-idle-time 0 -o temporary.ppm --seconds-per-day .00050 ~/prj/svn/myproject | |
| ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i temporary.ppm -vcodec libx264 -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 -preset slow finalVideo.mp4 |
| alias dj="python manage.py" | |
| alias djdd="python manage.py dumpdata" | |
| alias djld="python manage.py loaddata" | |
| alias djm="python manage.py migrate" | |
| alias djsh="python manage.py shell" | |
| alias djsm="python manage.py schemamigration" | |
| alias djs="python manage.py syncdb --noinput" | |
| alias djt="python manage.py test" | |
| alias djrs="python manage.py runserver" |
| # This script creates two kinds of isometric cameras. | |
| #The one, TrueIsocam called camera, is the mathematical correct isometric camera with the 54.736 rotation to get the 30 degrees angles at the sides of the rhombus. | |
| #The other, GameIsocam called camera, is a camera with which you can render isometric tiles for a 2d game. Here we need a 60 degrees angle instedad of the 54.736 one to get a proper stairs effect and a ratio of 2:1 | |
| # Then there is the special case with a 4:3 ratio, which is button 3. You can also make 2D games with that one. The view is more topdown though as with a 2:1 ratio of the traditional game iso view. | |
| # The fourth button creates a simple groundplane where you can place your stuff at. | |
| #You can of course set up everything by hand. This script is a convenient solution so that you don't have to setup it again and again. | |
| # The script is under Apache license |