This commit is contained in:
Marc Beninca 2017-12-02 23:02:37 +01:00
parent 5dba54b9d5
commit 2c273a2626
100 changed files with 1534 additions and 0 deletions

3
source/apache/index.rst Normal file
View file

@ -0,0 +1,3 @@
######
Apache
######

10
source/applications.rst Normal file
View file

@ -0,0 +1,10 @@
############
Applications
############
.. toctree::
:maxdepth: 2
nodejs/index
tomcat/index
glassfish/index

55
source/apt/configure.rst Normal file
View file

@ -0,0 +1,55 @@
*********
Configure
*********
Keys
====
.. code:: shell
apt-key add "path/to/key/file"
Configuration
=============
* etc/apt/apt.conf
::
APT::Get::Show-Versions true;
Dpkg::Progress-Fancy true;
Acquire::Check-Valid-Until false;
* etc/apt/preferences
::
Package: *
Pin: release n=stretch-backports
Pin-Priority: 400
Package: *
Pin: release n=buster
Pin-Priority: 200
Package: *
Pin: release n=sid
Pin-Priority: 100
* etc/apt/sources.list
deb.debian.org ↔ ftp.cc.debian.org
file:/path
::
deb http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-backports main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org stretch/updates main contrib non-free
deb http://deb.debian.org/debian buster main contrib non-free
deb http://security.debian.org buster/updates main contrib non-free
deb http://deb.debian.org/debian sid main contrib non-free

8
source/apt/index.rst Normal file
View file

@ -0,0 +1,8 @@
###
APT
###
.. toctree::
configure
upgrade

27
source/apt/upgrade.rst Normal file
View file

@ -0,0 +1,27 @@
*******
Upgrade
*******
Hold
====
Hold
----
.. code:: shell
apt-mark hold linux-*
Show
----
.. code:: shell
apt-mark showhold
Unhold
------
.. code:: shell
apt-mark unhold linux-*

9
source/archive.rst Normal file
View file

@ -0,0 +1,9 @@
Archive
=======
.. toctree::
:maxdepth: 2
tar/index
squashfs-tools/index
xorriso/index

421
source/bash/configure.rst Normal file
View file

@ -0,0 +1,421 @@
*********
Configure
*********
Configuration
=============
* etc/bash.bashrc
.. code:: bash
file="/usr/share/bash-completion/bash_completion"
if [ -f "${file}" ]; then
source "${file}"
fi
PS1="\
┌ \e[0;31m\t\e[0m\
– \e[0;32m\${?}\e[0m\
– \e[0;33m\u\e[0m\
@ \e[0;34m\h\e[0m\
"
if git --version &> /dev/null; then
PS1="${PS1} –\e[0;35m\$(__git_ps1)\e[0m"
fi
PS1="${PS1}\n\
│\e[0;36m\${PWD}\e[0m\n\
└ "
PS2="\
└ "
file="/etc/bash.alias"
if [ -f "${file}" ]; then
source "${file}"
fi
Alias
=====
* etc/bash.alias
Described
---------
.. code:: bash
# apt
# update packages catalog
alias aud='apt-get update'
# show package information
alias a='apt-cache show'
# package versions policy
alias ap='apt-cache policy'
# upgrade forbidding package installation or removal
alias aug='apt-get upgrade'
# upgrade allowing package installation or removal
alias adu='apt-get dist-upgrade'
# install packages
alias ai='apt-get install'
# clean packages cache
alias ac='apt-get autoclean;apt-get clean;apt-get autoremove'
# bash
# clear terminal
alias c='clear'
# exit terminal
alias x='exit'
# change current directory to its parent
alias ..='cd ..'
# make a directory
alias md='mkdir'
# make a directory after making its parents
alias mdp='mkdir --parents'
# change current directory to the previous one
alias pd='cd -'
# change mode as directory
alias cmd='chmod 755'
# change mode as file
alias cmf='chmod 644'
# change owner as root
alias cor='chown 0:0'
# change owner as user
alias cou='chown 1000:1000'
# look for a string in processes names
alias pg='ps -A|grep'
# kill a process by id
alias k='kill -9'
# kill all instances of a process by name
alias ka='killall'
# grep from current directory with regex
alias g='grep -rn . -e'
# list current directory entries
alias l='ls --all --color -l -p --time-style="+%Y%m%d-%H%M%S%-:::z"'
# git
# add to index
alias ga='git add'
# add all to index
alias gaa='git add --all'
# create a branch
alias gb='git branch'
# delete a branch
alias gbd='git branch --delete'
# force a branch deletion
alias gbdf='git branch --delete --force'
# list branches
alias gbl='git branch --all --list --verbose --verbose'
# set the link to a remote branch from a local branch
alias gbu='git branch -u'
# clone a remote repository
alias gc='git clone'
# clean untracked files
alias gcf='git clean -d --force'
# index all and commit
alias gacm='git add --all;git commit -m'
# commit the index
alias gcm='git commit -m'
# redo the last commit with a different message
alias gcma='git commit --amend -m'
# make a root commit
alias gcmr='git commit --allow-empty --allow-empty-message -m ""'
# switch to a branch or checkout file(s) from a commit
alias gco='git checkout'
# checkout an orphan branch
alias gcoo='git checkout --orphan'
# checkout development branch
alias gcod='git checkout dev'
# checkout feature branch
alias gcof='git checkout f'
# pick a commit
alias gcp='git cherry-pick'
# abort the commit pick
alias gcpa='git cherry-pick --abort'
# continue the commit pick
alias gcpc='git cherry-pick --continue'
# configure the user name
alias gcun='git config user.name'
# configure the user email
alias gcue='git config user.email'
# differences from last or between commits
alias gd='git diff'
# display what is indexed in cache
alias gdc='git diff --cached'
# differences via external tool
alias gdt='git difftool --dir-diff'
# differences via external tool
alias gdw='git diff --word-diff-regex=.'
# fetch from the remote repository
alias gf='git fetch --tags --verbose'
# fetch from remote repository and prune local orphan branches
alias gfp='git fetch --prune --tags --verbose'
# garbage collect all orphan commits
alias ggc='git reflog expire --expire=now --all;git gc --prune=now'
# initialize a new repository
alias gi='git init'
# initialize a new bare repository
alias gib='git init --bare'
# log commits history
alias gl='git log --all --graph \
--format="%C(auto)%h%d %C(red)%ai%n%C(auto)%B"'
# log commits history with patches
alias glp='git log --all --graph \
--format="%C(auto)%h%d %C(red)%ai%n%C(auto)%B" --patch'
# log medium information
alias glm='git log --all --decorate --graph --pretty=medium'
# fast-forward to remote branch
alias gmf='git merge --ff-only'
# do a merge commit
alias gmc='git merge --no-ff -m'
# abort the current merge commit
alias gma='git merge --abort'
# squash a branch and index its modifications
alias gms='git merge --squash'
# merge via external tool
alias gmt='git mergetool'
# push to the remote repository
alias gp='git push --set-upstream --verbose'
# delete from the remote repository
alias gpd='git push --verbose --delete'
# force the push to the remote repository
alias gpf='git push --set-upstream --verbose --force'
# rebase current branch onto another
alias grb='git rebase'
# abort current rebase
alias grba='git rebase --abort'
# continue current rebase
alias grbc='git rebase --continue'
# force rebase without fast-forward
alias grbf='git rebase --no-ff'
# rebase interactively
alias grbi='git rebase --interactive'
# list all remote repositories
alias grm='git remote'
# add a new remote repository
alias grma='git remote add'
# list remote repositories
alias grml='git remote --verbose'
# show a connection to a repository
alias grms='git remote show'
# set the location of the remote repository
alias grmu='git remote set-url'
# remove file(s) from index or move current branch pointer
alias grs='git reset'
# move current branch pointer to the development branch
alias grsd='git reset dev'
# wipe modifications or reset current branch to another commit
alias grsh='git reset --hard'
# reset current branch to the development branch
alias grshd='git reset --hard dev'
# current state of repository
alias gs='git status --untracked-files=all'
# show a commit
alias gsh='git show'
# tag a commit
alias gt='git tag'
# delete a tag
alias gtd='git tag --delete'
# rsync
# synchronize
alias rs='rsync --archive --no-whole-file --progress --verbose'
# no synchronize
alias rsn='rsync --archive --no-whole-file --progress --verbose -n'
# synchronize and delete
alias rsd='rsync --archive --no-whole-file --progress --verbose --delete'
# synchronize and delete
alias rsdn='rsync --archive --no-whole-file --progress --verbose --delete -n'
Old
---
.. code:: bash
alias c="clear"
alias cmd="chmod 755"
alias cmf="chmod 644"
alias cor="chown 0:0"
alias cou="chown 1000:1000"
alias k="kill -9"
alias ka="killall -9"
alias l="ls --all --color=always -l \
--indicator-style=slash --time-style=\"+%Y%m%d-%H%M%S%-:::z\""
alias pg="ps -A|grep"
alias x="exit"
alias a="apt-cache show"
alias ac="apt-get autoclean;apt-get clean;apt-get autoremove"
alias acl="apt-get changelog"
alias adl="apt-get download"
alias adu="apt-get dist-upgrade"
alias adus="apt-get dist-upgrade --simulate"
alias adub="apt-get dist-upgrade --target-release stretch-backports"
alias adubs="apt-get dist-upgrade --target-release stretch-backports --simulate"
alias af="apt-get --fix-broken install"
alias afs="apt-get --fix-broken install --simulate"
alias ai="apt-get install"
alias ais="apt-get install --simulate"
alias aib="apt-get install --target-release stretch-backports"
alias aibs="apt-get install --target-release stretch-backports --simulate"
alias ait="apt-get install --target-release testing"
alias aits="apt-get install --target-release testing --simulate"
alias aiu="apt-get install --target-release unstable"
alias aius="apt-get install --target-release unstable --simulate"
alias ap="apt-cache policy"
alias as="apt-cache search"
alias asrc="apt-get source"
alias aud="apt-get update"
alias aug="apt-get upgrade"
alias augs="apt-get upgrade --simulate"
alias augb="apt-get upgrade --target-release stretch-backports"
alias augbs="apt-get upgrade --target-release stretch-backports --simulate"
alias ga="git add"
alias gaa="git add --all"
alias gb="git branch"
alias gbd="git branch --delete"
alias gbdf="git branch --delete --force"
alias gbl="git branch --all --list --verbose --verbose"
alias gbu="git branch -u"
alias gc="git clone"
alias gcf="git clean -d --force"
alias gcm="git commit -m"
alias gcma="git commit --amend -m"
alias gcme="git commit --allow-empty --allow-empty-message -m"
alias gco="git checkout"
alias gcob="git checkout -b"
alias gcoo="git checkout --orphan"
alias gcp="git cherry-pick"
alias gcpa="git cherry-pick --abort"
alias gcpc="git cherry-pick --continue"
alias gcue="git config user.email"
alias gcun="git config user.name"
alias gd="git diff"
alias gdc="git diff --word-diff-regex=."
alias gdt="git difftool --dir-diff"
alias gf="git fetch --tags --verbose"
alias gfsnr="git fsck --no-progress --no-reflogs"
alias ggc="git reflog expire --expire=now --all; git gc --prune=now"
alias gi="git init"
alias gib="git init --bare"
alias gl="git log --abbrev-commit --all --decorate --graph --format=oneline"
alias gla="git log --all --decorate --graph \
--format=\"%C(auto)%h %C(red)%an%C(auto)%d %C(reset)%s\""
alias glm="git log --all --decorate --graph --format=medium"
alias gma="git merge --abort"
alias gmc="git merge --no-ff -m"
alias gmf="git merge --ff-only"
alias gms="git merge --squash"
alias gmt="git mergetool"
alias gp="git push --set-upstream --tags --verbose"
alias gpd="git push --delete origin"
alias grb="git rebase"
alias grba="git rebase --abort"
alias grbc="git rebase --continue"
alias grbi="git rebase --interactive"
alias grma="git remote add origin"
alias grmc="git rm --cached"
alias grms="git remote show origin"
alias grmu="git remote set-url origin"
alias grs="git reset"
alias grsh="git reset --hard"
alias grshd="git reset --hard dev"
alias grshm="git reset --hard master"
alias gs="git status --untracked-files"
alias gsc="git show"
alias gt="git tag"
alias gtd="git tag --delete"
alias rs="rsync --archive --progress --verbose"
alias rsn="rsync --archive --progress --verbose -n"
alias rsd="rsync --archive --progress --verbose --delete"
alias rsdn="rsync --archive --progress --verbose --delete -n"
alias tc="tar --numeric-owner --verbose --create --auto-compress --file"
alias tx="tar --numeric-owner --verbose --extract --file"

8
source/bash/index.rst Normal file
View file

@ -0,0 +1,8 @@
####
BASH
####
.. toctree::
configure
snippets

26
source/bash/snippets.rst Normal file
View file

@ -0,0 +1,26 @@
********
Snippets
********
Start a runnable script file
============================
.. code:: bash
#! /bin/bash
Find out current script
=======================
.. code:: bash
SCRIPT_FILE="$(realpath "${BASH_SOURCE[0]}")"
SCRIPT_DIRECTORY="$(dirname "${SCRIPT_FILE}")"
SCRIPT_NAME="$(basename "${SCRIPT_FILE}")"
Quit the interpreter
====================
.. code:: bash
exit

3
source/bind/index.rst Normal file
View file

@ -0,0 +1,3 @@
####
BIND
####

10
source/boot.rst Normal file
View file

@ -0,0 +1,10 @@
####
Boot
####
.. toctree::
:maxdepth: 2
systemd/index
linux/index
grub/index

3
source/certbot/index.rst Normal file
View file

@ -0,0 +1,3 @@
#######
CertBot
#######

8
source/code.rst Normal file
View file

@ -0,0 +1,8 @@
####
Code
####
.. toctree::
:maxdepth: 2
python3/index

View file

@ -0,0 +1,8 @@
################
Containerization
################
.. toctree::
:maxdepth: 2
lxc/index

9
source/data.rst Normal file
View file

@ -0,0 +1,9 @@
####
Data
####
.. toctree::
:maxdepth: 2
sql/index
postgresql/index

8
source/desktop.rst Normal file
View file

@ -0,0 +1,8 @@
#######
Desktop
#######
.. toctree::
:maxdepth: 2
gnome/index

13
source/documents.rst Normal file
View file

@ -0,0 +1,13 @@
#########
Documents
#########
.. toctree::
:maxdepth: 2
pandoc/index
sphinx/index
markdown/index
restructuredtext/index
libreoffice/index
pdftk/index

7
source/ffmpeg/index.rst Normal file
View file

@ -0,0 +1,7 @@
######
FFMPEG
######
.. toctree::
snippets

View file

@ -0,0 +1,10 @@
********
Snippets
********
Change container
================
.. code:: bash
ffmpeg -i input.avi output.mkv

19
source/git/configure.rst Normal file
View file

@ -0,0 +1,19 @@
*********
Configure
*********
Identity
========
.. code:: shell
git config user.name "First Last"
git config user.email "user@domain.tld"
* ~/.gitconfig
.. code:: ini
[user]
name = "First Last"
email = "user@domain.tld"

8
source/git/index.rst Normal file
View file

@ -0,0 +1,8 @@
###
Git
###
.. toctree::
configure
snippets

13
source/git/snippets.rst Normal file
View file

@ -0,0 +1,13 @@
********
Snippets
********
TODO
====
* .gitignore
* aliases
* git diff
* cached (staging area)
* character

View file

@ -0,0 +1,3 @@
*******************
Certify application
*******************

View file

@ -0,0 +1,3 @@
*****************
Configure service
*****************

View file

@ -0,0 +1,3 @@
******************
Deploy application
******************

View file

@ -0,0 +1,9 @@
#########
GlassFish
#########
.. toctree::
configure
deploy
certify

View file

@ -0,0 +1,54 @@
*********
Configure
*********
General
=======
Settings
--------
* automatic date/time
* automatic timezone
Tweak tool
----------
* dark theme
dconf
-----
* backgrounds
* updates
Applications
============
Terminal (gnome-terminal)
-------------------------
* dark variant
* colors
* infinite scroll
Files (nautilus)
----------------
Settings
Text editor (gedit)
-------------------
Settings
Plugins:
* git
Keyboard shortcuts
------------------
Calculator
----------
Advanced mode

6
source/gnome/index.rst Normal file
View file

@ -0,0 +1,6 @@
#####
GNOME
#####
.. toctree::
configure

7
source/gource/index.rst Normal file
View file

@ -0,0 +1,7 @@
######
Gource
######
.. toctree::
render

18
source/gource/render.rst Normal file
View file

@ -0,0 +1,18 @@
******
Render
******
* TODO FFMPEG pipe
.. code:: bash
gource \
--date-format "%Y - %m - %d / %H : %M : %S" \
-f \
--highlight-dirs \
--highlight-users \
--key \
--output-framerate 60 \
--start-date "yyyy-mm-dd HH:MM:SS" \
--auto-skip-seconds 1 \
--seconds-per-day 10

3
source/gpg/index.rst Normal file
View file

@ -0,0 +1,3 @@
###
GPG
###

3
source/grub/image.rst Normal file
View file

@ -0,0 +1,3 @@
**********
Make image
**********

8
source/grub/index.rst Normal file
View file

@ -0,0 +1,8 @@
####
GRUB
####
.. toctree::
modules
image

3
source/grub/modules.rst Normal file
View file

@ -0,0 +1,3 @@
*******
Modules
*******

12
source/hosts/index.rst Normal file
View file

@ -0,0 +1,12 @@
*****
Hosts
*****
LocalHost
=========
::
::1 localhost
127.0.0.1 localhost

View file

@ -0,0 +1,7 @@
###########
ImageMagick
###########
.. toctree::
snippets

View file

@ -0,0 +1,3 @@
********
Snippets
********

View file

@ -1 +1,32 @@
.. toctree:: .. toctree::
tasks
.. toctree::
:caption: Pro
:maxdepth: 3
:numbered: 2
archive
documents
version
script
network
data
web
code
applications
security
system
boot
containerization
virtualization
.. toctree::
:caption: Home
:maxdepth: 3
:numbered: 2
desktop
media
privacy

View file

@ -0,0 +1,27 @@
###############
ISC-DHCP-server
###############
*************
Configuration
*************
* /etc/dhcp/dhcpd.conf
::
option domain-name "sub.domain.tld";
option domain-name-servers 1.2.3.200;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 1.2.3.0 netmask 255.255.255.0 {
range 1.2.3.123 1.2.3.128;
}
host name {
hardware ethernet 01:23:45:67:89:ab;
fixed-address 1.2.3.4;
}

View file

@ -0,0 +1,11 @@
*******
Convert
*******
.. code::
libreoffice \
--headless \
--convert-to "png" \
--outdir "chemin/fichier.png" \
input_file.o??

View file

@ -0,0 +1,7 @@
###########
LibreOffice
###########
.. toctree::
convert

View file

@ -0,0 +1,3 @@
*********
Arguments
*********

8
source/linux/index.rst Normal file
View file

@ -0,0 +1,8 @@
#####
Linux
#####
.. toctree::
arguments
modules

3
source/linux/modules.rst Normal file
View file

@ -0,0 +1,3 @@
*******
Modules
*******

3
source/lxc/container.rst Normal file
View file

@ -0,0 +1,3 @@
*********
Container
*********

3
source/lxc/host.rst Normal file
View file

@ -0,0 +1,3 @@
****
Host
****

8
source/lxc/index.rst Normal file
View file

@ -0,0 +1,8 @@
###
LXC
###
.. toctree::
host
container

View file

@ -0,0 +1,7 @@
########
MarkDown
########
.. toctree::
syntax

View file

@ -0,0 +1,52 @@
******
Syntax
******
Titles
======
::
# title 1
## title 2
### title 3
#### title 4
##### title 5
###### title 6
Lists
=====
::
* element 1
* element 2
* element 2.1
* element 2.2
* element 2.2.1
* element 2.2.2
Blocks
======
::
```language
multi
line
message
```
Links
=====
::
[link_caption](link_address)
Images
======
::
![alternative_text](image_address)

10
source/media.rst Normal file
View file

@ -0,0 +1,10 @@
#####
Media
#####
.. toctree::
:maxdepth: 2
imagemagick/index
ffmpeg/index
mkvtoolnix/index

View file

@ -0,0 +1,3 @@
##########
MKVtoolnix
##########

9
source/network.rst Normal file
View file

@ -0,0 +1,9 @@
Network
=======
.. toctree::
:maxdepth: 2
bind/index
hosts/index
isc-dhcp-server/index

View file

@ -0,0 +1,77 @@
*********
Configure
*********
* /etc/nginx/nginx.conf
.. code::
pid /run/nginx.pid;
user user;
worker_processes auto;
events {
multi_accept off;
worker_connections 512;
}
http {
# General
keepalive_timeout 60;
sendfile on;
server_tokens off;
tcp_nopush on;
tcp_nodelay on;
types_hash_max_size 2048;
# Names
server_name_in_redirect off;
server_names_hash_bucket_size 128;
# File types
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Security
ssl_buffer_size 8k;
ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-SHA384,ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA,ECDHE-ECDSA-AES256-SHA,DHE-DSS-AES256-GCM-SHA384,DHE-RSA-AES256-GCM-SHA384,DHE-RSA-AES256-SHA256,DHE-DSS-AES256-SHA256,DHE-RSA-AES256-SHA,DHE-DSS-AES256-SHA";
ssl_dhparam /etc/nginx/dhparam;
ssl_ecdh_curve secp384r1;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1.2;
ssl_session_cache shared:ssl_session_cache:16m;
ssl_session_timeout 15m;
# Log
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Compression
gzip on;
gzip_buffers 32 8k;
gzip_comp_level 5;
gzip_http_version 1.1;
gzip_proxied any;
gzip_types *;
gzip_vary off;
# Misc
add_header Strict-Transport-Security max-age=31557600;
client_max_body_size 16m;
index index.html;
proxy_pass_request_body on;
proxy_pass_request_headers on;
proxy_redirect off;
# Includes
include /etc/nginx/sites-enabled/*;
}

8
source/nginx/index.rst Normal file
View file

@ -0,0 +1,8 @@
#####
NginX
#####
.. toctree::
configure
serve

37
source/nginx/serve.rst Normal file
View file

@ -0,0 +1,37 @@
*****
Serve
*****
* /etc/nginx/sites-available/…
.. code::
server {
listen 80;
server_name _;
location "/mirrors" {
root "/";
autoindex on;
}
location "/" {
root "/data/http";
autoindex on;
}
}
server {
listen 443 ssl http2;
server_name "sous.domaine.tld";
ssl_certificate "/etc/nginx/certificates/nom.crt";
ssl_certificate_key "/etc/nginx/certificates/nom.key";
location "/static" {
root "/data/https";
default_type "text/html";
index "index.html";
}
location "/" {
proxy_pass "http://127.0.0.1:8069";
proxy_redirect off;
proxy_set_header Host $host;
}
}

3
source/nodejs/index.rst Normal file
View file

@ -0,0 +1,3 @@
######
NodeJS
######

3
source/openssl/index.rst Normal file
View file

@ -0,0 +1,3 @@
#######
OpenSSL
#######

42
source/pandoc/build.rst Normal file
View file

@ -0,0 +1,42 @@
*****
Build
*****
Formats
=======
Documents
---------
* html5
* odt
* docx
* latex (--latex-engine="xelatex")
Presentations
-------------
* beamer
* dzslides
* revealjs
* s5
* slideous
* slidy
Generation
==========
.. code:: shell
pandoc \
--data-dir="directory/path" \
--from="markdown" \
"input_file" \
--to="html5" \
--output="output_file" \
--standalone \
--number-sections \
--toc \
--toc-depth=3 \
--template="template_name" \
--css="style/relative/path"

7
source/pandoc/index.rst Normal file
View file

@ -0,0 +1,7 @@
######
PanDoc
######
.. toctree::
build

3
source/pdftk/index.rst Normal file
View file

@ -0,0 +1,3 @@
#####
PDFtk
#####

View file

@ -0,0 +1,3 @@
*****************
Configure service
*****************

View file

@ -0,0 +1,3 @@
***************
Create database
***************

View file

@ -0,0 +1,7 @@
##########
PostGreSQL
##########
.. toctree::
configure
create

9
source/privacy.rst Normal file
View file

@ -0,0 +1,9 @@
Privacy
=======
.. toctree::
:maxdepth: 2
certbot/index
tcplay/index
gpg/index

8
source/python3/index.rst Normal file
View file

@ -0,0 +1,8 @@
#######
Python3
#######
.. toctree::
syntax
snippets

View file

@ -0,0 +1,21 @@
********
Snippets
********
Répertoires
===========
Détruire
--------
.. code:: python3
import shutil
shutil.rmtree(path)
Web
===
.. code:: python3
requests.get(url).content.decode(charset)

20
source/python3/syntax.rst Normal file
View file

@ -0,0 +1,20 @@
******
Syntax
******
Imports
=======
.. code:: python3
import module
module.py → module/__init__.py
------------------------------
* __init__.py
first/module.py → second/module.py
----------------------------------
* first

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View file

@ -0,0 +1,8 @@
################
ReStructuredText
################
.. toctree::
tree
syntax

View file

@ -0,0 +1,78 @@
******
Syntax
******
Sections
========
.. code:: restructuredtext
####
Part
####
*******
Chapter
*******
Section
=======
SubSection
----------
SubSubSection
^^^^^^^^^^^^^
Paragraph
"""""""""
ToSort
======
.. code:: restructuredtext
.. raw:: html
<div></div>
* *1 star*
* **2 stars**
* ``2 backquotes``
After this comma,
| output new line
.. comment
..
multiline
comment
.. image:: image.png
Indent 0
Indent 1 which
continues here.
Indent 2
* item
* subitem
* item
#. first
#. second
----
.. epigraph::
No matter where you go, there you are.
-- Buckaroo Banzai

View file

@ -0,0 +1,7 @@
****
Tree
****
.. code::
index

7
source/rsync/index.rst Normal file
View file

@ -0,0 +1,7 @@
#####
Rsync
#####
.. toctree::
snippets

17
source/rsync/snippets.rst Normal file
View file

@ -0,0 +1,17 @@
********
Snippets
********
Simulate sync with deletion
===========================
.. code:: bash
rsync \
--archive \
--no-whole-file \
--progress \
--verbose \
--delete --dry-run
"/local/directory/" \
"user@host:/remote/directory/"

9
source/script.rst Normal file
View file

@ -0,0 +1,9 @@
######
Script
######
.. toctree::
:maxdepth: 2
bash/index
rsync/index

8
source/security.rst Normal file
View file

@ -0,0 +1,8 @@
########
Security
########
.. toctree::
:maxdepth: 2
openssl/index

3
source/sphinx/build.rst Normal file
View file

@ -0,0 +1,3 @@
*******************
Build documentation
*******************

View file

@ -0,0 +1,13 @@
***********************
Configure documentation
***********************
MarkDown
========
.. code:: python3
source_parsers = {
'.md': 'recommonmark.parser.CommonMarkParser',
}
source_suffix = ['.rst', '.md']

3
source/sphinx/create.rst Normal file
View file

@ -0,0 +1,3 @@
********************
Create documentation
********************

10
source/sphinx/index.rst Normal file
View file

@ -0,0 +1,10 @@
######
Sphinx
######
.. toctree::
install
configure
create
build

View file

@ -0,0 +1,9 @@
*******
Install
*******
.. code:: shell
python3-sphinx
python3-sphinx-rtd-theme
python3-recommonmark

8
source/sql/index.rst Normal file
View file

@ -0,0 +1,8 @@
###
SQL
###
.. toctree::
syntax
snippets

3
source/sql/snippets.rst Normal file
View file

@ -0,0 +1,3 @@
********
Snippets
********

3
source/sql/syntax.rst Normal file
View file

@ -0,0 +1,3 @@
******
Syntax
******

View file

@ -0,0 +1,3 @@
##############
SquashFS-tools
##############

8
source/system.rst Normal file
View file

@ -0,0 +1,8 @@
######
System
######
.. toctree::
:maxdepth: 2
apt/index

8
source/systemd/index.rst Normal file
View file

@ -0,0 +1,8 @@
#######
SystemD
#######
.. toctree::
system
journal

View file

@ -0,0 +1,3 @@
***************
Control journal
***************

View file

@ -0,0 +1,3 @@
**************
Control system
**************

3
source/tar/index.rst Normal file
View file

@ -0,0 +1,3 @@
###
TAr
###

3
source/tasks.rst Normal file
View file

@ -0,0 +1,3 @@
#####
Tasks
#####

3
source/tcplay/index.rst Normal file
View file

@ -0,0 +1,3 @@
######
TCplay
######

View file

@ -0,0 +1,3 @@
*******************
Certify application
*******************

View file

@ -0,0 +1,3 @@
*****************
Configure service
*****************

3
source/tomcat/deploy.rst Normal file
View file

@ -0,0 +1,3 @@
******************
Deploy application
******************

9
source/tomcat/index.rst Normal file
View file

@ -0,0 +1,9 @@
######
TomCat
######
.. toctree::
configure
deploy
certify

9
source/version.rst Normal file
View file

@ -0,0 +1,9 @@
#######
Version
#######
.. toctree::
:maxdepth: 2
git/index
gource/index

View file

@ -0,0 +1,3 @@
##########
VirtualBox
##########

View file

@ -0,0 +1,8 @@
##############
Virtualization
##############
.. toctree::
:maxdepth: 2
virtualbox/index

9
source/web.rst Normal file
View file

@ -0,0 +1,9 @@
###
Web
###
.. toctree::
:maxdepth: 2
nginx/index
apache/index

3
source/xorriso/index.rst Normal file
View file

@ -0,0 +1,3 @@
#######
XoRRISO
#######