From: Andrea Manni Date: Tue, 30 May 2017 15:13:17 +0000 (+0200) Subject: CLI GIT X-Git-Url: http://git.piffa.net/web?a=commitdiff_plain;h=b350559614ab14291b38f040c641b95d86d6b8a6;hp=1b3ec7b102a6a76e7634d90460592da5c6e68fd3;p=arduino CLI GIT --- diff --git a/lezioni/cli.rst b/lezioni/cli.rst new file mode 100644 index 0000000..a909abd --- /dev/null +++ b/lezioni/cli.rst @@ -0,0 +1,56 @@ +CLI +********* + +* Terminale: sintassi comandi, uso degli spazi + whoami, pwd, date + +* --help, man, flags oggetti +* Uso di tab +* hystory -c + + +Shortcuts +---------- + +- frecce di scorrimento per history +- CTRL A +- CTRL e +- ALT B word / CTRL B +- CTRL B + +* CTRL U + kill all left of +* CTRL k + kill all right of + +* \`. last object +* ~. kill ssh + +Streams +---------- +- http://ryanstutorials.net/linuxtutorial/piping.php + +STDRIN , STDROUT, STRDERR +* redirection on files >, >>, + + Handle Name Description + 0 stdin Standard input + 1 stdout Standard output + 2 stderr Standard error + +Redirecting the standard error (stderr) and stdout to file +command-name &>file + +Pipes +=========== + +* wc -l +* head +* tail + + +Editor +-------- + +* Pager: more +* Vim or nano diff --git a/lezioni/git_traccia.rst b/lezioni/git_traccia.rst new file mode 100644 index 0000000..072096c --- /dev/null +++ b/lezioni/git_traccia.rst @@ -0,0 +1,43 @@ +Patch +======== + +Diff sorgente dest +Diff normale e' in informatico, + +Show diff -c + Context + https://www.computerhope.com/unix/udiff.htm + +Show diff with kompare + kompare source diff + +With Git: + + git difftool + git diff --cached + allready added + + git config diff.tool "kompare" + + + +Archivi +------------ + +Diff si puo' applicare anche a directories + -q show only files + -r recursivo + + +Notebook +----------- + +-requirements: +- muoversi nel filesystem +- comandi +- pager / editor di testo + +- git book +$ git config user.name "John Doe" +$ git config user.email johndoe@example.com +git config --list diff --git a/lezioni/lezioni b/lezioni/lezioni index 318b62b..0a80973 100644 --- a/lezioni/lezioni +++ b/lezioni/lezioni @@ -50,7 +50,7 @@ Analogico Status: ci stiamo preparando all'uso dei potenziometri per input anaogici - output analogici. Serve sapere un po' di bit/byte per BYTE / INT e ragionare sulle resistenze (conduttivita') per capire come funziona un potenziometro. -- Operatori binari basi +- Operatori binari base Tipi di dati: bit e int e long, signed and unsigned, long - http://www.ladyada.net/learn/arduino/lesson4.html diff --git a/schemi/millis_bb.png b/schemi/millis_bb.png new file mode 100644 index 0000000..3461a7e Binary files /dev/null and b/schemi/millis_bb.png differ