- Download ubuntu-16.04.3-desktop-amd64.iso from \\nipedadata\Programmes\Systeme Exploitation\Linux\Ubuntu
- Create a new VirtualMachine in VMware Workstation
- Memory : 4Go
- Hard Disk : 20Go
- Network: NAT (or Bridge)
$ sudo apt-get upgrade
$ sudo apt-get install open-vm-tools-desktop
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Press Enter to accept the default file location and enter a passphrase you'll remember.
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
Detailed instructions : https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
$ cat ~/.ssh/id_rsa.pub
Copy the content of this file to your clipboard and paste it to GitHub Settings / SSH and GPG keys / Add SSH key. No need to install xclip.
Detailed instruction : https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
$ git config --global credential.helper cache
$ git config --global credential.helper 'cache --timeout=3600'
Detailed instruction : https://help.github.com/articles/caching-your-github-password-in-git/
Please refer to the detailed instructions below while typing the following commands.
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce=17.12.0~ce-0~ubuntu
$ docker -v
$ sudo docker run hello-world
Detailed instructions : https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository
Post-installation
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
$ exit
Log out and log back in so that your group membership is re-evaluated.
Detailed instructions : https://docs.docker.com/install/linux/linux-postinstall/
Please refer to the detailed instructions below while typing the following commands.
$ sudo curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ docker-compose -v
Detailed instructions : https://docs.docker.com/compose/install/#install-compose
Download .deb file at https://code.visualstudio.com/docs/?dv=linux64_deb
Please refer to the detailed instructions below while typing the following commands and adjust them to the file you downloaded.
$ cd Downloads/
$ sudo dpkg -i code_1.19.1-1513676564_amd64.deb
$ sudo apt-get install -f
$ code
Detailed instructions : https://code.visualstudio.com/docs/setup/linux
Please ensure you write all your code in the ~/Code folder. Breath deep and take a snapshot.
$ mkdir ~/Code
$ cd ~/Code
$ git clone this_repository.git # this_repository.git refers to your actual GitHub repository
$ cd this_repository
$ docker-compose up -d # if you encounter an error at this step, restart Ubuntu and try again
Visit http://localhost:8080
Open this project with Visual Studio Code, change the text in the h1 tag of index.html and reload the page to see the changes. Does it work ?
$ sudo apt-get install ruby-full
$ sudo gem install sass --no-user-install
Detailed instructions :
Following commands require to be in your project directory ~/Code/this_repository.
$ sass --watch sass:css
You are now free to code, but don't modify the content of the css directory. Every modification of scss/app.scss file will update files located in the css directory.
Sign up for a free Heroku account : https://www.heroku.com/
Follow these steps :
- Create a new app
- App name : cesi-resume-yourforname (for example cesi-resume-eric)
- Choose a region : Europe
- Connect to Github
- Deployment method : Github
- Connect to Github : enter your repository name and click "search" and "connect"
- Deploy
- Manual deploy : click "Deploy branch"
Visit https://cesi-resume-yourforname.herokuapp.com
git config --global user.email [email protected]
git commit --amend --reset-author # to update last commit (only if you did one of course)
Finding your commit email address : https://help.github.com/articles/about-commit-email-addresses/
Detailed instructions : https://help.github.com/articles/setting-your-commit-email-address-in-git/
Useful git commands :
git status
git diff
git log
git add filename
git commit -m "message"
git commit --amend
git pull origin master
git push origin master
Detailled instructions : https://www.git-tower.com/blog/git-cheat-sheet/
Commit message format "type: subject"
- type : one of the following ones
- feat (new feature)
- fix (bug fix)
- docs (changes to documentation)
- style (formatting, missing semi colons, etc; no code change)
- refactor (refactoring production code)
- test (adding missing tests, refactoring tests; no production code change)
- chore (updating grunt tasks etc; no production code change)
- subject : summary in present tense
Examples : https://seesparkbox.com/foundry/semantic_commit_messages
Detailled instructions : https://conventionalcommits.org/
git add docker-compose.yml
git commit -m "chore: add docker-compose.yml file" -m "Create three services (mariadb, laravel and redis) and one volume (db_data). Type \"docker-compose up\" to start"
git push origin master
git init
git add .
git remote add origin https://github.com/username/repository.git
git commit -m "chore : add initial code"
git push -u origin master
Detailled instructions : https://semver.org/
git tag -a 0.1.0 -m "Initial development version 0.1.0"
git push origin master --tags