forked from vincent/notebook
Merge pull request 'master' (#1) from vincent/notebook:master into master
Reviewed-on: https://git.ducamps.win/olivier/notebook/pulls/1
This commit is contained in:
commit
e2a6229f06
5
Cuisine/Cocktails/Americano
Normal file
5
Cuisine/Cocktails/Americano
Normal file
@ -0,0 +1,5 @@
|
||||
# Américano
|
||||
* Cointreau 2cl
|
||||
* Martini Blanc 3cl
|
||||
* Campari 4cl
|
||||
* Martini Rouge 5cl
|
7
Cuisine/Cocktails/Cosmopolitan
Normal file
7
Cuisine/Cocktails/Cosmopolitan
Normal file
@ -0,0 +1,7 @@
|
||||
# Cosmopolitan (version modifié Noël 2020)
|
||||
- Vodka 3cl
|
||||
- Cointreau 1cl
|
||||
- Limoncello 0.5cl
|
||||
- Chambord 0.5cl
|
||||
- Jus de citron 1cl
|
||||
- Jus de cranberry 3cl
|
6
Cuisine/Cocktails/Sex_on_the_beach
Normal file
6
Cuisine/Cocktails/Sex_on_the_beach
Normal file
@ -0,0 +1,6 @@
|
||||
# Sex on the beach
|
||||
- Vodka 3cl
|
||||
- Chambord 2cl
|
||||
- Liqueur de pêche 2cl
|
||||
- Jus d'annanas 5cl
|
||||
- Jus de cranberry 6cl
|
5
Cuisine/Cocktails/Soupe_cidre
Normal file
5
Cuisine/Cocktails/Soupe_cidre
Normal file
@ -0,0 +1,5 @@
|
||||
# Soupe de cidre ( 7 personnes)
|
||||
- Cognac 3 cl
|
||||
- Sirop de sucre de canne 15cl
|
||||
- Jus d'orange 30cl
|
||||
- Cidre 1 bouteille
|
0
Cuisine/Cocktails/index.md
Normal file
0
Cuisine/Cocktails/index.md
Normal file
@ -35,6 +35,7 @@
|
||||
- gratin d'endives au jambon
|
||||
- Oeuf cocote
|
||||
- fondu savoyarde
|
||||
- lentille saucisse
|
||||
|
||||
|
||||
## sauce
|
||||
@ -59,3 +60,5 @@
|
||||
- Mousse au chocolat
|
||||
- crêpes
|
||||
- gauffre
|
||||
- thé brun
|
||||
- créme renversé
|
@ -3,3 +3,30 @@
|
||||
## tunelling
|
||||
|
||||
[chisel](https://github.com/jpillora/chisel) permet de mettre en place un tunel TCP sur du http
|
||||
|
||||
|
||||
## site
|
||||
|
||||
[devhind (cheatsheet)](https://devhints.io/)
|
||||
|
||||
[Lean X in Y minutes](https://learnxinyminutes.com/)
|
||||
|
||||
|
||||
[online Json editor](https://jsoneditoronline.org/)
|
||||
|
||||
[compression d'image](https://squoosh.app/)
|
||||
|
||||
## goaccess
|
||||
|
||||
permet d'analyser les log d'accés d'un server web
|
||||
|
||||
```goaccess /var/log/nginx/access.log -o /usr/share/nginx/html/report.html --real-time-html --ignore-crawlers -e 192.168.1.1-192.168.1.254 -e 127.0.0.1```
|
||||
|
||||
- *-o* fichier de sortie
|
||||
- *--real-time-html* mise a jour en temps réel du fichier de sortie
|
||||
- *--ignore-crawlers* ignore les bot des moteur de recherche
|
||||
- *-e* permet d'ignorer des ip ici les IP local
|
||||
|
||||
## décrypter un hash
|
||||
|
||||
[search that hash](https://github.com/HashPals/search-that-hash)
|
||||
|
@ -1,6 +1,6 @@
|
||||
# domotique
|
||||
|
||||
[Hack Xiaomi gateway V2](https://easydomoticz.com/forum/viewtopic.php?t=8397))
|
||||
[Hack Xiaomi gateway V2](https://easydomoticz.com/forum/viewtopic.php?t=8397)
|
||||
|
||||
## jeedom
|
||||
- install docker avec database sur host
|
||||
|
@ -1,4 +1,8 @@
|
||||
# git
|
||||
![git](../img/git.jpg)
|
||||
## Clone with submodule recurse
|
||||
|
||||
add *--recurse-submodules* to clone command
|
||||
|
||||
## Add in staging only a part of modification done in a file
|
||||
|
||||
|
35
IT/git/submodule.md
Normal file
35
IT/git/submodule.md
Normal file
@ -0,0 +1,35 @@
|
||||
# submodule
|
||||
|
||||
Git submodule allows ro add externel repository in a repository
|
||||
|
||||
## Adding submodule
|
||||
|
||||
- ```git submodule add http://git/toto.git $path```
|
||||
this command add *http://git/toto.git* in *path* directory (add -b $branchname to follow specific branch)
|
||||
- after that you need to add and commit submodule folder
|
||||
|
||||
to populate a submodule nested in other submodule
|
||||
|
||||
- ```git submodule init```
|
||||
- ```git submodule update```
|
||||
|
||||
## removing submodule
|
||||
|
||||
- remove submodule entry in *.gitmodules*
|
||||
- remove submodule entry in *.git/config* (only present when **git submodule init** have been perform)
|
||||
- remove submodule path ```git rm --cached $path```
|
||||
|
||||
## Updating submodule
|
||||
|
||||
|
||||
you can update a submodule Manually going in submodule folder and perform a ```git fetch``` and ```git merge```
|
||||
|
||||
|
||||
### Fetch and merge
|
||||
automatic process
|
||||
- perform a ```git submodule update --remote```
|
||||
|
||||
|
||||
in each case you need to commit update in project
|
||||
|
||||
|
BIN
IT/img/Tmux.png
Normal file
BIN
IT/img/Tmux.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 115 KiB |
BIN
IT/img/git.jpg
Normal file
BIN
IT/img/git.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
IT/img/zsh.jpg
Normal file
BIN
IT/img/zsh.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@ -10,7 +10,7 @@
|
||||
# │ └──────────────────── hour (0 - 23)
|
||||
# └───────────────────────── min (0 - 59)
|
||||
```
|
||||
|
||||
[test cron](https://crontab.guru/)
|
||||
See also
|
||||
- [wikipedia/cron](http://en.wikipedia.org/wiki/Cron)
|
||||
|
||||
@ -46,4 +46,4 @@ $ sudo crontab -e
|
||||
|
||||
## user crontab lcation
|
||||
|
||||
`/var/spool/cron/crontabs`
|
||||
`/var/spool/cron/crontabs`
|
||||
|
@ -56,3 +56,14 @@ fi
|
||||
|-r -w -x | test permition|
|
||||
|$a -nt $b| $a plus récent|
|
||||
|$a -ot $b| $a plus vieux|
|
||||
|
||||
## Supprimer les Dossiers contenant 1 élement
|
||||
|
||||
```
|
||||
IFS=$'\n';for i in $(ls) do ✔ 10022 18:29:32
|
||||
if [ $(ls $i|wc|awk '{print $1}') = 1 ]
|
||||
then
|
||||
rm -r $i
|
||||
fi
|
||||
|
||||
```
|
||||
|
13
IT/linux/zsh.md
Normal file
13
IT/linux/zsh.md
Normal file
@ -0,0 +1,13 @@
|
||||
![zsh](../img/zsh.jpg)
|
||||
|
||||
# functionality
|
||||
|
||||
|
||||
# shortcut
|
||||
|
||||
key|comportment
|
||||
---|-----------
|
||||
|
|
||||
|
||||
|
||||
|
40
IT/tmux.md
Normal file
40
IT/tmux.md
Normal file
@ -0,0 +1,40 @@
|
||||
# Tmux
|
||||
|
||||
![tmux](img/Tmux.png)
|
||||
|
||||
personal config [Here](https://git.ducamps.win/vincent/conf2/src/branch/master/tmux/.tmux.conf)
|
||||
|
||||
## copy in remote clipboard
|
||||
|
||||
shift+select to use remote selection clipboard
|
||||
|
||||
|
||||
## command
|
||||
|
||||
command | comportment
|
||||
--------|------------
|
||||
ls | print running session
|
||||
attach -t 0 | connect to session pass in parameter
|
||||
|
||||
|
||||
## keyboard shortcut
|
||||
|
||||
- master key: ctrl-b
|
||||
|
||||
key|comportment
|
||||
---|-----------
|
||||
? | print all shortcut
|
||||
- | split vertical panel
|
||||
\| | split horizontal panel
|
||||
z | full screen panel
|
||||
c | create window
|
||||
n | next windows
|
||||
, | rename windows
|
||||
:new | new session
|
||||
s | list session
|
||||
|
||||
## move into pane
|
||||
|
||||
Use atl with directional arrow or vim mode key jklm
|
||||
|
||||
|
@ -2,6 +2,12 @@
|
||||
|
||||
![neovim](img/neovim.png)
|
||||
|
||||
[tuto config](https://jdhao.github.io/2018/12/24/centos_nvim_install_use_guide_en/)
|
||||
|
||||
## config
|
||||
I use NVIM instead vim
|
||||
config [Here](https://git.ducamps.win/vincent/conf2/src/branch/master/nvim/.config/nvim/init.vim)
|
||||
|
||||
## Pluging
|
||||
|
||||
### vim-plug
|
||||
@ -27,6 +33,7 @@ Vim est un éditeur de texte intégré hautement configurable permettant d’éd
|
||||
Voici une liste des raccourcis clavier de Vim.
|
||||
|
||||
### custom config
|
||||
leader: space
|
||||
|
||||
|conb|action|
|
||||
|----|------|
|
||||
@ -34,6 +41,7 @@ Voici une liste des raccourcis clavier de Vim.
|
||||
|jk or jj|exit insert mode|
|
||||
|leader+cc|comment line|
|
||||
|leader+cu|uncomment line|
|
||||
|:w!!|save as sudo|
|
||||
|
||||
### Mode normale & mode visuel
|
||||
|
||||
|
16
IT/virsh.md
16
IT/virsh.md
@ -17,6 +17,20 @@
|
||||
- appliquer une snapshot: `virsh snapshot-revert --domain --snapshotname "ansible ping OK" --running`
|
||||
- delete snapshot: `virsh snapshot-delete --domain freebsd --snapshotname 5Sep2016_S2`
|
||||
|
||||
## share folder with host
|
||||
|
||||
- add a filesystem device to your host:
|
||||
```
|
||||
<filesystem type='mount' accessmode='squash'>
|
||||
<source dir='/home/vincent/Documents'/>
|
||||
<target dir='/mnt/workplace'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
</filesystem>
|
||||
```
|
||||
- on guest mount the filesystem:
|
||||
- with mount cmd :`mount -t 9p -o trans=virtio,version=9p2000.L mount_tag /path/to/mount_point/on/guest`
|
||||
- in your fstab:`mount_tag /path/to/mount_point/on/guest 9p trans=virtio,version=9p2000.L 0 0`
|
||||
- add in **9pnet_virtio** to **/etc/modules-load.d/9pnet_virtio.conf**
|
||||
|
||||
## enabling guest function on arch
|
||||
|
||||
@ -25,4 +39,4 @@
|
||||
|
||||
```
|
||||
MODULES=(virtio virtio_blk virtio_pci virtio_net)
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user