few changes, in makefile added colors

This commit is contained in:
hugogogo
2022-06-03 11:04:23 +02:00
parent cc2558f6a4
commit 080109e9c3
5 changed files with 41 additions and 3 deletions

View File

@@ -33,7 +33,10 @@
**git stash pop** reapply the stashed changes and removes them from the stash area
**git stash apply** reaply the stashed changes and keep them in the stash area
**git config --global credential.helper store** store the passwords in .git-credentials in the HOME directory (thanks to global, as opposed to the project directory) so you don't have tot type it each time
**git cherry-pick NAME_OF_BRANCH** ti merge a branch into the actual one, but only with the last commit
**git config --global core.editor "vim"** change the git editor for vim
**git cherry-pick NAME_OF_BRANCH** it merge a branch into the actual one, but only with the last commit
**git log --graph** show the graph of the commits with branchs
**git log --first-parent master** show all the commits directly on master (or other branch)
**relier dossier sur serveur en local avec git**
**acceder au serveur via ssh :**
`ssh hugugtzx@world-370.fr.planethoster.net -p 5022`

View File

@@ -7,9 +7,12 @@
**mkdir file{1..10}** creer 10 dossiers nommés de file1 à file10
**pwd** print working directory
**xdg-open .** open working directory
**du -sh** directory sizes
**ncdu** (visual version of 'du' command) quick presentation of directories size
**ssh username@ssh.server.com -p 0000** se connecter a un serveur via ssh en precisant un port
**ssh username@ssh.server.domain -p XXXX** se connecter a un serveur via ssh en precisant un port
**sftp -P XXXX username@ssh.server.domain** se connecter a un server ssh avec le protocol ftp
**vim scp://username@ssh.server.domain:XXXX//home/path/to/file** edit a remote file from local vim
**pdftotext** transforme un pdf en un fichier texte
**^** designe le debut d'une ligne

View File

@@ -1,3 +1,9 @@
/SYNTAX/
to create a new syntax file, just copy an existing one :
cp /usr/share/vim/vimXX/syntax/extension.vim ~/.vim/syntax/
and change the name to match the extension
and change the content to whatever you want
/MODE INSERTION/
**i** mode insertion avant le curseur
**I** mode insertion au debut de la ligne