new site
|
@ -1,5 +0,0 @@
|
||||||
+++
|
|
||||||
date = '{{ .Date }}'
|
|
||||||
draft = true
|
|
||||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
|
||||||
+++
|
|
|
@ -1,24 +0,0 @@
|
||||||
+++
|
|
||||||
date = "2016-11-05T21:05:33+05:30"
|
|
||||||
title = "A PROPOS"
|
|
||||||
+++
|
|
||||||
|
|
||||||
Moi c’est Draconis geek depuis que je suis tombé dans la marmite. Je suis passionné d’informatique, de nouvelles technologies, de jeux-vidéos et de la culture geek en générale. Lorsque je ne suis pas sur mon clavier, je suis derrière mon objectif photo essayant de capturer ma vision du monde. Je suis un fervent partisan du fais le toi-même, tu possèdes la connaissance, les compétences ou simplement l’envie, pourquoi se priver ? Utilisateur de Linux depuis 1998, je ne suis pas un extrémiste du libre, chacun utilise l’informatique comme il l’entend et en fonction des ses besoins. Je vous laisse me découvrir à travers mes deux moyens d'expressions mon blog et mes photos.
|
|
||||||
|
|
||||||
# BLOG
|
|
||||||
|
|
||||||
Ce blog est un moyen pour moi de relier mes différents centres d’intérêts et passions. Et surtout le plus important pour moi, de partager, sans le partage nous ne sommes rien. Il me sert de bloc-notes, de mémos, à m'exprimer librement, partager mes passions ou d'en discuter autour d'une bonne bière. Ici on parlera, jeux-vidéos, linux, figurines, DIY, et plus si affinité.
|
|
||||||
Ce blog est entièrement auto-hébergé, preuve que cela fonctionne, il est en ligne depuis mars 2011. Pour la technique il s'agit d'un container fonctionnant sur LXC avec DEBIAN comme OS principal. Il est fièrement propulsé par Hugo, Nginx, Let's encrypt et votre serviteur !
|
|
||||||
|
|
||||||
# MENTIONS LEGALES
|
|
||||||
|
|
||||||
Sauf mentions contraires, je suis l’unique auteur du contenu de ce blog et je me réserve un droit total sur tout son contenu. Ce blog utilise n'utilise aucun cookies ou outils de pistage. Je n'aime pas être pisté par les sites que je visite donc je respecte cet adage : Ne fais pas aux autres ce que tu ne voudrais pas qu'on te fasse. Sauf indications contraires le contenu de se site est mis à disposition selon les termes de la [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.fr).
|
|
||||||
|
|
||||||
|
|
||||||
Pour utiliser son contenu :
|
|
||||||
|
|
||||||
* **Les photos publiées dans la rubrique *photographie* ne sont pas libres de droits, tous droits réservés.**
|
|
||||||
* vous devez me créditer, intégrer un lien vers la page en question et indiquer si des modifications ont été effectuées.
|
|
||||||
* vous n’êtes pas autorisé à faire un usage commercial du contenu de ce site.
|
|
||||||
* vous devez diffuser votre contenu dans les mêmes conditions, que vous ayez effectué des modifications ou non au contenu original.
|
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
+++
|
|
||||||
title = "Quoi de neuf : Février 2025"
|
|
||||||
date = "2025-02-09"
|
|
||||||
categories = ["jardin"]
|
|
||||||
tags = ["février-25","semis"]
|
|
||||||
+++
|
|
||||||
|
|
||||||
En ce mois de Février, je continue toujours les semis :<!--more-->
|
|
||||||
* Tomate Roma : une première au jardin pour les sauces tomates et tomates séchées
|
|
||||||
* Laitue Batavia blonde de Paris : une première au jardin.
|
|
||||||
* Tomate Beefsteak : pour notre consomation cet été
|
|
||||||
|
|
||||||
C'est la première année que je me lance dans la Batavia avec la cette laitue blonde. Elle a la particularité de produire des feuilles finement gauffrées, produisant des salades volumineuses et bien croquantes. Variété peu sensible à la chaleur, intéressant pour notre climat méditerranéen.
|
|
||||||
|
|
||||||
C'est aussi une première pour les tomates Roma, chaque année nous avions l'habitude de planter une seule variété de tomate pour notre consomation et la conservation. Cette année nous essayons les tomates Roma pour la conservation. Variété connue pour être très productive et donner des fruits de taille moyenne, à la silhouette allongée et lisse. Les tomates Roma sont charnues et presque sans pépins ce qui en fait une candidate parfaite pour nos conserves.
|
|
||||||
|
|
||||||
Les semis semés au mois Janvier commencent à sortir de terre, ainsi j'ai l'honneur d'avoir une petit forêt de poireau d'hiver de Saint Victor.
|
|
||||||
|
|
||||||
{{< gallery >}}
|
|
||||||
{{< figure src="img/jardin/fevrier25/foret-poireau-thumb.jpg" caption="Forêt de Saint Victor" >}}
|
|
||||||
{{< figure src="img/jardin/fevrier25/laitues.jpg" caption="Laitues à couper chêne blonde">}}
|
|
||||||
{{< /gallery >}}
|
|
||||||
|
|
||||||
|
|
||||||
Mes laitues à couper chêne blonde commencent elles aussi à prendre leur forme définitive attendant patiemment d'être installées au jardin durant le mois mars. Je suis aussi dans l'attente de la germination mes pommes de terre. Pour rester dans la germination je me suis lancé dans la patate douce, instalées bien au chaud dans la véranda.
|
|
||||||
|
|
||||||
|
|
||||||
{{< gallery >}}
|
|
||||||
{{< figure src="img/jardin/fevrier25/pattatedouce.jpg" caption="Pataes Douces" >}}
|
|
||||||
{{< figure src="img/jardin/fevrier25/pommeterre.jpg" caption="Germination en cours">}}
|
|
||||||
{{< /gallery >}}
|
|
||||||
|
|
||||||
|
|
||||||
En préparant la parcelle de pommes de terre j'ai eu l'heureuse surprise de trouver une jeune pousse d'Amandier. Le champs juxtaposant la maison en possède quelques-uns, je pense qu'il provient de là. Je l'ai délicatement déterré pour le rempoter au chaud dans la serre, où je vais le laisser grandrir tranquillement.
|
|
||||||
|
|
||||||
|
|
||||||
{{< figure src="img/jardin/fevrier25/amandier.jpg" link="img/jardin/fevrier25/amandier.jpg" caption="Mon petit amandier" >}}
|
|
||||||
|
|
||||||
|
|
||||||
Mes arômatiques semés au mois de novembre se portent très bien, ils poussent tellement vite j'en suis déjà à mon troisème rempotage.
|
|
||||||
|
|
||||||
|
|
||||||
{{< figure src="img/jardin/fevrier25/aromatiques.jpg" link="img/jardin/fevrier25/aromatiques.jpg" caption="Ciboulette, Aneth, Coriandre" >}}
|
|
||||||
|
|
||||||
|
|
||||||
Pour conclure le mois Février est dans la continuité du mois précédent, la Patience est le maître mot.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
+++
|
|
||||||
title = "Photos"
|
|
||||||
type = "gallery"
|
|
||||||
+++
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 463 KiB |
|
@ -1,8 +0,0 @@
|
||||||
+++
|
|
||||||
image = "chicago-us.jpg"
|
|
||||||
date = "2020-01-21"
|
|
||||||
title = "Chicago, US"
|
|
||||||
type = "gallery"
|
|
||||||
+++
|
|
||||||
|
|
||||||
[Chicago](https://en.wikipedia.org/w/index.php?title=Chicago&oldid=953376675), officially the City of Chicago, is the most populous city in the U.S. state of Illinois, and the third-most-populous city in the United States. With an estimated population of 2,705,994 (2018), it is also the most populous city in the Midwestern United States. Chicago is the county seat of Cook County, the second-most-populous county in the US, with a small portion of the northwest side of the city extending into DuPage County near O'Hare Airport. Chicago is the principal city of the Chicago metropolitan area, often referred to as Chicagoland. At nearly 10 million people, the metropolitan area is the third most populous in the United States.
|
|
Before Width: | Height: | Size: 528 KiB |
|
@ -1,10 +0,0 @@
|
||||||
+++
|
|
||||||
image = "egypte-21.jpg"
|
|
||||||
date = "2025-01-04"
|
|
||||||
title = "L'Egypte des pharaons"
|
|
||||||
type = "gallery"
|
|
||||||
+++
|
|
||||||
|
|
||||||
De retour pour une troisième fois au [Carrières de lumières](https://fr.wikipedia.org/wiki/Carri%C3%A8res_de_Lumi%C3%A8res) des Beaux de Provence. Cette fois-ci pour une projection sur l’Égypte des pharaons et l’orientalisme.
|
|
||||||
|
|
||||||
{{< gallery dir="img/expo-egypte" />}}
|
|
Before Width: | Height: | Size: 490 KiB |
|
@ -1,9 +0,0 @@
|
||||||
+++
|
|
||||||
image = "hel-poland-2.jpg"
|
|
||||||
date = "2020-01-23"
|
|
||||||
title = "Hel, Poland"
|
|
||||||
type = "gallery"
|
|
||||||
+++
|
|
||||||
|
|
||||||
[Hel Peninsula](https://en.wikipedia.org/w/index.php?title=Hel_Peninsula&oldid=939640541) (Polish: Mierzeja Helska) is a 35-km-long sand bar peninsula in northern Poland separating the Bay of Puck from the open Baltic Sea.
|
|
||||||
The width of the peninsula varies from approximately 300 m near Jurata, through 100 m in the most narrow part to over 3 km at the tip. Since the peninsula was formed entirely of sand, it is frequently turned into an island by winter storms. Until the 17th century the peninsula was a chain of islands that formed a strip of land only during the summer.
|
|
Before Width: | Height: | Size: 338 KiB |
|
@ -1,9 +0,0 @@
|
||||||
+++
|
|
||||||
image = "hel-poland-3.jpg"
|
|
||||||
date = "2020-02-06"
|
|
||||||
title = "Hel, Poland"
|
|
||||||
type = "gallery"
|
|
||||||
+++
|
|
||||||
|
|
||||||
[Hel Peninsula](https://en.wikipedia.org/w/index.php?title=Hel_Peninsula&oldid=939640541) (Polish: Mierzeja Helska) is a 35-km-long sand bar peninsula in northern Poland separating the Bay of Puck from the open Baltic Sea.
|
|
||||||
The width of the peninsula varies from approximately 300 m near Jurata, through 100 m in the most narrow part to over 3 km at the tip. Since the peninsula was formed entirely of sand, it is frequently turned into an island by winter storms. Until the 17th century the peninsula was a chain of islands that formed a strip of land only during the summer.
|
|
|
@ -1,8 +0,0 @@
|
||||||
+++
|
|
||||||
image = "panaji-india-2.jpg"
|
|
||||||
date = "2020-01-07"
|
|
||||||
title = "Panaji, India"
|
|
||||||
type = "gallery"
|
|
||||||
+++
|
|
||||||
|
|
||||||
[Panaji](https://en.wikipedia.org/w/index.php?title=Panaji&oldid=949879387), formerly Panjim, is the capital of the Indian state of Goa and the headquarters of North Goa district. It lies on the banks of the Mandovi River estuary in the Ilhas de Goa sub-district (taluka). With a population of 114,759 in the metropolitan area, Panjim is Goa's largest urban agglomeration, ahead of Margão and Vasco da Gama.
|
|
Before Width: | Height: | Size: 450 KiB |
|
@ -1,9 +0,0 @@
|
||||||
+++
|
|
||||||
image = "warsaw-poland.jpg"
|
|
||||||
date = "2020-02-09"
|
|
||||||
title = "Warsaw, Poland"
|
|
||||||
type = "gallery"
|
|
||||||
+++
|
|
||||||
|
|
||||||
[Palace of Culture and Science](https://en.wikipedia.org/w/index.php?title=Palace_of_Culture_and_Science&oldid=945815549) (Polish: Pałac Kultury i Nauki), is a notable high-rise building in central Warsaw, Poland. With a total height of 237 metres (778 ft) it is the tallest building in Poland, the 5th-tallest building in the European Union (including spire) and one of the tallest on the European continent.
|
|
||||||
Constructed in 1955, it houses various public and cultural institutions such as cinemas, theatres, libraries, sports clubs, university faculties and authorities of the Polish Academy of Sciences.
|
|
Before Width: | Height: | Size: 462 KiB |
|
@ -1,3 +0,0 @@
|
||||||
+++
|
|
||||||
title = "Posts"
|
|
||||||
+++
|
|
|
@ -1,60 +0,0 @@
|
||||||
+++
|
|
||||||
title = "Hugo: Afficher les dates en français"
|
|
||||||
date = "2025-02-09"
|
|
||||||
categories = ["adminsys"]
|
|
||||||
tags = ["hugo","date"]
|
|
||||||
+++
|
|
||||||
|
|
||||||
Hugo est un générateur de sites statiques rapide et moderne écrit en Go, conçu pour rendre la création de sites web à nouveau amusante.
|
|
||||||
<!--more-->
|
|
||||||
Cependant à chaque fois je rencontre le même problème sur le système de date. Hugo s’appuie sur des librairies de format de date du langage go, 100% américain,
|
|
||||||
du coup je me retrouve avec les dates à l’envers en mode YYYY-DD-MM à la place du logique YYYY-MM-DD et les mois en langue Anglaise.
|
|
||||||
Pour site entièrement francophone cela pose un problème de lecture.
|
|
||||||
|
|
||||||
Pour y remidier j'ai mis en place une petite routine :
|
|
||||||
|
|
||||||
* Je créé deux petits fichier en `YAML` appellé : `mois.yml` et `moishort.yml`. Ces deux fichiers font le pont entre le numéro de mois et l’affichage en français.
|
|
||||||
Comme leur nom l'indique l'un affiche les mois en entier et l'autre les noms tronqués, en fonction des besoins et du theme utilisé.
|
|
||||||
* J'utilise ensuite le numéro de mois comme un index et stocke la valeur correspondante dans une variable locale : `{{ $mymonths := index $.Site.Data.mois }}`
|
|
||||||
* Pour finir avec `printf` j'affiche cette valeur : `{{ index $mymonths (printf "%d" .Date.Month) }} {{ .Date.Year }}`
|
|
||||||
|
|
||||||
Ainsi, mes dates seront bien formattées en français, il me suiffit de mettre à jour toutes les parties de mon template qui affichent des dates ainsi que dans les partials.
|
|
||||||
|
|
||||||
## Le Code
|
|
||||||
|
|
||||||
mois.yml :
|
|
||||||
```yaml
|
|
||||||
1: "Janvier"
|
|
||||||
2: "Février"
|
|
||||||
3: "Mars"
|
|
||||||
4: "Avril"
|
|
||||||
5: "Mai"
|
|
||||||
6: "Juin"
|
|
||||||
7: "Juillet"
|
|
||||||
8: "Août"
|
|
||||||
9: "Septembre"
|
|
||||||
10: "Octobre"
|
|
||||||
11: "Novembre"
|
|
||||||
12: "Décembre"
|
|
||||||
```
|
|
||||||
|
|
||||||
moisshort.yml :
|
|
||||||
```yaml
|
|
||||||
1: "Jan"
|
|
||||||
2: "Fév"
|
|
||||||
3: "Mar"
|
|
||||||
4: "Avr"
|
|
||||||
5: "Mai"
|
|
||||||
6: "Jui"
|
|
||||||
7: "Juil"
|
|
||||||
8: "Aoû"
|
|
||||||
9: "Sept"
|
|
||||||
10: "Oct"
|
|
||||||
11: "Nov"
|
|
||||||
12: "Déc"
|
|
||||||
```
|
|
||||||
Le code en go pour traduire les dates :
|
|
||||||
``` go
|
|
||||||
{{ $mymonths := index $.Site.Data.mois }}{{ .Date.Day }}
|
|
||||||
{{ index $mymonths (printf "%d" .Date.Month) }} {{ .Date.Year }}
|
|
||||||
```
|
|
|
@ -1,183 +0,0 @@
|
||||||
+++
|
|
||||||
title = "Gérer ses dotfiles avec git"
|
|
||||||
date = "2014-05-19"
|
|
||||||
Categories = ["adminsys"]
|
|
||||||
tags = ["dotfiles","git","mr","vcsh"]
|
|
||||||
+++
|
|
||||||
|
|
||||||
L’utilisation de plusieurs ordinateurs sous Linux, peut devenir un vrai cauchemar lorsque l’on veut maintenir la même configuration à jour. <!--more-->Dans mon quotidien il m’arrive d’utiliser trois ordinateurs différents. Et j’aime bien retrouver mes marques quel que soit la machine utilisée. Au départ je « trimballais » partout une clef usb avec tous mes fichiers de configurations, mais cette solution a atteint sa limite très rapidement.
|
|
||||||
|
|
||||||
Elle était surtout très contraignante car, je devais en permanence avoir ma clef usb sur moi et en cas de modification de configuration penser à faire une copie (ce qui arrivait une fois sur mille) sur la dite clef pour pouvoir mettre à jour mes autres ordinateurs. Du coup je me retrouvais avec des configurations très hétéroclites.
|
|
||||||
|
|
||||||
J’ai donc décidé de créer un dépôt git pour les différentes configurations que je souhaite déployer sur mes ordinateurs. Certains diront pourquoi ne pas tout grouper dans un même dépôt, je préfère les séparer en cas problème sur un cela ne me bloquera pas le reste.
|
|
||||||
|
|
||||||
C’est alors que j’ai entendu parler de vcsh et mr (Merci à Brice camarade libriste qui m’a expliqué les bases). Ses deux petits programmes couplés avec git m’ont permit de centraliser tous mes fichiers de configurations sur mon serveur gitlab et ainsi de pouvoir installer mon environnement sur tous les ordinateurs que j’utilise.
|
|
||||||
|
|
||||||
### VCSH – Version Control System for $HOME – multiple Git repositories in $HOME
|
|
||||||
|
|
||||||
Comme son nom l’indique il permet de faire de la gestion de version pour le $HOME. Grâce à lui plusieurs dépôts git peuvent cohabiter dans le même répertoire. Il centralise toutes les têtes de dépôts au même endroit, par défaut il les place dans `~/.config/vcsh/repos.d` mais il est tout à fait possible de le changer, de même si l’on désire maintenir plusieurs dépôts git ailleurs que dans le $HOME. Pour plus d’informations je vous invite sur [la page github](https://github.com/RichiH/vcsh) du projet
|
|
||||||
|
|
||||||
Passons à son installation, sous Debian,
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
sudo apt-get install vcsh
|
|
||||||
```
|
|
||||||
|
|
||||||
### mr pour myrepo
|
|
||||||
|
|
||||||
`mr` intervient principalement sur l’utilisation et la configuration des dépôts. Dans un premier temps il permet avec une seule ligne de commande, de livrer et pousser les modifications, mettre à jour simultanément tous les dépôts renseignés dans sa configuration. Dans un second temps il permet aussi de gérer la configuration de ses mêmes dépôts. Dans mon cas il me permet de pousser mes modifications à la fois sur mon serveur gitlab mais aussi sur mon compte github pour en garder une sauvegarde. Il me permet de rajouter une url à mon origin dès le clonage des dépôts, ce qui m’évite une configuration post-installation de tous mes dépots. Pour plus d’informations voici la [page](http://myrepos.branchable.com) du projet.
|
|
||||||
|
|
||||||
L’installation sur Debian est toujours aussi simple
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
sudo apt-get install mr
|
|
||||||
```
|
|
||||||
|
|
||||||
### Préparatifs avant la transformation
|
|
||||||
|
|
||||||
Tout d’abords j’ai défini quels fichiers de configurations que je souhaite garder à jour et déployer sur mes différents ordinateurs:
|
|
||||||
|
|
||||||
1. La configuration d’openbox
|
|
||||||
2. La configuration d’emacs
|
|
||||||
3. La configuration de terminator
|
|
||||||
4. La configuration de zsh
|
|
||||||
|
|
||||||
### Initialisation avec vcsh
|
|
||||||
|
|
||||||
J’ai au préalable créé sur gitlab et github un dépôt par configurations. Ensuite j’ai suivi la documentation de vcsh pour créer un par un par les dépôts. Exemple avec openbox :
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
#initialisation du dépôt
|
|
||||||
vcsh init openbox
|
|
||||||
#création du gitignore pour éviter d'avoir des erreures sur les dossiers non #suivi
|
|
||||||
vcsh write-gitignore openbox
|
|
||||||
#ajout des fichiers
|
|
||||||
vcsh openbox add ~/.config/openbox/rc.xml ~/.config/openbox/menu.xml ~/.config/openbox/autostart ~/.gitignore/openbox
|
|
||||||
vcsh commit -am 'intial commit'
|
|
||||||
vcsh openbox remot set-url --add origin git@github.com:colmaris/dotfiles-openbox.git
|
|
||||||
```
|
|
||||||
|
|
||||||
J’ai reproduit cette manipulation pour chacun des dépôts à initialiser. Petite astuce si le dépôt git existe déjà, comme ce fut le cas pour moi avec ma configuration d’emacs, dont je ne voulais pas perdre l’historique. Il m’a suffi de créer le chemin vers les fichiers de configurations dans le dépôts git avant la migration vers vcsh.
|
|
||||||
|
|
||||||
Pour emacs il faut de l’on retrouve le chemin exact vers le fichier `init.el`.
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
cd ~/.emacs
|
|
||||||
mkdir .emacs/
|
|
||||||
git mv init.el .emacs
|
|
||||||
git add .emacs
|
|
||||||
git commit -am 'moving file init.el'
|
|
||||||
git push
|
|
||||||
```
|
|
||||||
|
|
||||||
Ensuite j’ai supprimé totalement le dossier .emacs de mon `$HOME`, pour le cloner avec vcsh.
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
vcsh clone git@git.olivierdelort.net:colmaris/emacs <span class="crayon-e">emacs</span>
|
|
||||||
```
|
|
||||||
|
|
||||||
Ainsi j’ai put garder l’historique de mon dépôt emacs, et je peux maintenant l’utiliser avec vcsh sans problème.
|
|
||||||
|
|
||||||
### Configuration de mr
|
|
||||||
|
|
||||||
Une fois tous mes dépôts de configuration initialiser avec vcsh, je suis passé à la configuration de mr dont le but premier, dans mon cas, est de pouvoir pousser mes modifications sur mon gitlab et les sauvegarder sur github.
|
|
||||||
|
|
||||||
La configuration de *mr* se fait via un fichier .mrconfig directement placé dans le $HOME. Voici le mien
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
[DEFAULT]
|
|
||||||
git_gc = git gc "$@"
|
|
||||||
# * Dotfiles Organisation
|
|
||||||
|
|
||||||
# ** Emacs
|
|
||||||
[$HOME/.config/vcsh/repo.d/emacs.git]
|
|
||||||
checkout =
|
|
||||||
vcsh clone git@git.olivierdelort.net:colmaris/emacs.git emacs
|
|
||||||
vcsh emacs remote set-url --add origin git@github.com:colmaris/dotfiles-emacs.git
|
|
||||||
|
|
||||||
# ** Openbox
|
|
||||||
[$HOME/.config/vcsh/repo.d/openbox.git]
|
|
||||||
checkout =
|
|
||||||
vcsh clone git@git.olivierdelort.net:colmaris/dotfiles-openbox.git openbox
|
|
||||||
vcsh openbox remote set-url --add origin git@github.com:colmaris/dotfiles-openbox.git
|
|
||||||
|
|
||||||
# ** Terminator
|
|
||||||
[$HOME/.config/vcsh/repo.d/terminator.git]
|
|
||||||
checkout =
|
|
||||||
vcsh clone git@git.olivierdelort.net:colmaris/terminator-solarized.git terminator
|
|
||||||
vcsh terminator remote set-url --add origin git@github.com:colmaris/terminator-solarized.git
|
|
||||||
|
|
||||||
# ** Zsh
|
|
||||||
[$HOME/.config/vcsh/repo.d/zsh.git]
|
|
||||||
checkout =
|
|
||||||
vcsh clone git@git.olivierdelort.net:colmaris/dotfiles-zsh.git zsh
|
|
||||||
vcsh zsh remote set-url --add origin git@github.com:colmaris/dotfiles-zsh.git
|
|
||||||
```
|
|
||||||
|
|
||||||
Petite explication :
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
# ** Emacs
|
|
||||||
#ici j'indique ou se trouve la tête du dépôt
|
|
||||||
[$HOME/.config/vcsh/repo.d/emacs.git]
|
|
||||||
#ici se trouve les actions à réaliser lors du clonage
|
|
||||||
checkout =
|
|
||||||
# je clone à partir de mon gitlab
|
|
||||||
vcsh clone git@git.olivierdelort.net:colmaris/emacs.git emacs
|
|
||||||
#je rajoute mon compte github à l'origin de mon dépôt
|
|
||||||
vcsh emacs remote set-url --add origin git@github.com:colmaris/dotfiles-emacs.git
|
|
||||||
```
|
|
||||||
|
|
||||||
Lors du clonage des dépôts mr rajoutera l’url de mon compte github à l’origin déjà configurée.
|
|
||||||
|
|
||||||
Ce qui me permet de pousser d’un seul coup tous les dépôts sur mon github.
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
mr push
|
|
||||||
```
|
|
||||||
|
|
||||||
### Déploiement
|
|
||||||
|
|
||||||
A partir de maintenant je peux déployer mes configurations sur n’importe quel ordinateur ou git, vcsh et mr sont installés.
|
|
||||||
|
|
||||||
Je procède comme suit :
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
#installation des prérequis
|
|
||||||
sudo apt-get install git vcsh mr
|
|
||||||
#configuration de mr
|
|
||||||
git clone git@git.olivierdelort.net:colmaris/dotfiles-mr.git ~/.mrconfig
|
|
||||||
#clonage
|
|
||||||
mr checkout
|
|
||||||
```
|
|
||||||
|
|
||||||
Et voilà en quelques minutes j’ai déployé ma configuration et je suis prêt à travailler. S’il m’arrive de faire des modifications je les livre et les pousse directement dans le dépôt concerné. Et sur mes autres ordinateurs il me suffit de faire une mise à jour avec la commande `mr update` pour qu’elles soient prises en comptent.
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
mr update
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/apache-autoindex.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/draconis-install.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/emacs.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/eso-theme.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/motd-colmaris.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/mrconfig.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/mytheme-lightdm.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/openbox.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/terminator.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: /home/draconis/.config/vcsh/repo.d/zsh.git
|
|
||||||
Already up-to-date.
|
|
||||||
mr update: finished (10 ok)
|
|
||||||
```
|
|
||||||
|
|
||||||
### Conclusion
|
|
||||||
|
|
||||||
Depuis que j’utilise cette méthode je revis littéralement, je ne me soucis plus de savoir si j’ai ma clef usb à jour et avec moi. Tout est centralisé sur mon gitlab et j’ai mon github en sauvegarde. Je l’ai étendu sur d’autre projet sur lesquels je travaille.
|
|
|
@ -1,12 +0,0 @@
|
||||||
1: "Janvier"
|
|
||||||
2: "Février"
|
|
||||||
3: "Mars"
|
|
||||||
4: "Avril"
|
|
||||||
5: "Mai"
|
|
||||||
6: "Juin"
|
|
||||||
7: "Juillet"
|
|
||||||
8: "Août"
|
|
||||||
9: "Septembre"
|
|
||||||
10: "Octobre"
|
|
||||||
11: "Novembre"
|
|
||||||
12: "Décembre"
|
|
|
@ -1,12 +0,0 @@
|
||||||
1: "Jan"
|
|
||||||
2: "Fév"
|
|
||||||
3: "Mar"
|
|
||||||
4: "Avr"
|
|
||||||
5: "Mai"
|
|
||||||
6: "Jui"
|
|
||||||
7: "Juil"
|
|
||||||
8: "Aoû"
|
|
||||||
9: "Sept"
|
|
||||||
10: "Oct"
|
|
||||||
11: "Nov"
|
|
||||||
12: "Déc"
|
|
101
hugo.toml
|
@ -1,101 +0,0 @@
|
||||||
baseurl = "https://colmaris.fr"
|
|
||||||
title = "colmaris"
|
|
||||||
theme = ["hugo-theme-console", "hugo-easy-gallery"]
|
|
||||||
languageCode = 'fr-FR'
|
|
||||||
defaultContentLanguage = "fr"
|
|
||||||
defaultContentLang = "fr"
|
|
||||||
pygmentsstyle = "nordic"
|
|
||||||
pygmentscodefences = true
|
|
||||||
pygmentscodefencesguesssyntax = true
|
|
||||||
|
|
||||||
|
|
||||||
[markup]
|
|
||||||
[markup.goldmark]
|
|
||||||
duplicateResourceFiles = false
|
|
||||||
[markup.goldmark.extensions]
|
|
||||||
definitionList = true
|
|
||||||
footnote = true
|
|
||||||
linkify = true
|
|
||||||
linkifyProtocol = 'https'
|
|
||||||
strikethrough = true
|
|
||||||
table = true
|
|
||||||
taskList = true
|
|
||||||
[markup.goldmark.extensions.cjk]
|
|
||||||
eastAsianLineBreaks = false
|
|
||||||
eastAsianLineBreaksStyle = 'simple'
|
|
||||||
enable = false
|
|
||||||
escapedSpace = false
|
|
||||||
[markup.goldmark.extensions.extras]
|
|
||||||
[markup.goldmark.extensions.extras.delete]
|
|
||||||
enable = false
|
|
||||||
[markup.goldmark.extensions.extras.insert]
|
|
||||||
enable = false
|
|
||||||
[markup.goldmark.extensions.extras.mark]
|
|
||||||
enable = false
|
|
||||||
[markup.goldmark.extensions.extras.subscript]
|
|
||||||
enable = false
|
|
||||||
[markup.goldmark.extensions.extras.superscript]
|
|
||||||
enable = false
|
|
||||||
[markup.goldmark.extensions.passthrough]
|
|
||||||
enable = false
|
|
||||||
[markup.goldmark.extensions.passthrough.delimiters]
|
|
||||||
block = []
|
|
||||||
inline = []
|
|
||||||
[markup.goldmark.extensions.typographer]
|
|
||||||
apostrophe = '’'
|
|
||||||
disable = false
|
|
||||||
ellipsis = '…'
|
|
||||||
emDash = '—'
|
|
||||||
enDash = '–'
|
|
||||||
leftAngleQuote = '«'
|
|
||||||
leftDoubleQuote = '“'
|
|
||||||
leftSingleQuote = '‘'
|
|
||||||
rightAngleQuote = '»'
|
|
||||||
rightDoubleQuote = '”'
|
|
||||||
rightSingleQuote = '’'
|
|
||||||
[markup.goldmark.parser]
|
|
||||||
autoHeadingID = true
|
|
||||||
autoHeadingIDType = 'github'
|
|
||||||
wrapStandAloneImageWithinParagraph = true
|
|
||||||
[markup.goldmark.parser.attribute]
|
|
||||||
block = false
|
|
||||||
title = true
|
|
||||||
[markup.goldmark.renderHooks]
|
|
||||||
[markup.goldmark.renderHooks.image]
|
|
||||||
enableDefault = false
|
|
||||||
[markup.goldmark.renderHooks.link]
|
|
||||||
enableDefault = false
|
|
||||||
[markup.goldmark.renderer]
|
|
||||||
hardWraps = false
|
|
||||||
unsafe = false
|
|
||||||
xhtml = false
|
|
||||||
|
|
||||||
[taxonomies]
|
|
||||||
tag = "tags"
|
|
||||||
category = "categories"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[params]
|
|
||||||
# Cutting off the page title to two chars for mobile (console-demo -> co)
|
|
||||||
titleCutting = true
|
|
||||||
|
|
||||||
# Set the animation style -- https://animate.style/
|
|
||||||
# To disable animations, please remove or comment animationStyle parameter
|
|
||||||
animateStyle = "animated zoomIn fast"
|
|
||||||
|
|
||||||
[[params.navlinks]]
|
|
||||||
name = "infos/"
|
|
||||||
url = "about/"
|
|
||||||
|
|
||||||
[[params.navlinks]]
|
|
||||||
name = "notes/"
|
|
||||||
url = "posts/"
|
|
||||||
|
|
||||||
[[params.navlinks]]
|
|
||||||
name = "photographie/"
|
|
||||||
url = "photos/"
|
|
||||||
|
|
||||||
[[params.navlinks]]
|
|
||||||
name = "au-jardin/"
|
|
||||||
url = "jardin/"
|
|
|
@ -1,34 +0,0 @@
|
||||||
<a
|
|
||||||
|
|
||||||
{{ if or (strings.HasPrefix .Destination `http`) (strings.HasPrefix .Destination `#`) (strings.HasPrefix .Destination `/`) }}
|
|
||||||
|
|
||||||
href = "{{ .Destination | safeURL }}"
|
|
||||||
|
|
||||||
{{ else if strings.HasPrefix .Destination `mailto` }}
|
|
||||||
|
|
||||||
href = "mailto:{{ .Text }}"
|
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ with .Title}}
|
|
||||||
|
|
||||||
title = "{{ . }}"
|
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if strings.HasPrefix .Destination "http" }}
|
|
||||||
|
|
||||||
target = "_blank"
|
|
||||||
rel = "nofollow noopener noreferrer"
|
|
||||||
|
|
||||||
{{ else if strings.HasPrefix .Destination "mailto" }}
|
|
||||||
|
|
||||||
onClick = "javascript:window.open('mailto:{{ .Text }}', 'mail'); event.preventDefault()"
|
|
||||||
|
|
||||||
{{ end }}>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
{{ .Text }}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
</a>
|
|
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 593 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 830 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 996 KiB |
Before Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 567 KiB |
Before Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 604 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 717 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 742 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 604 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 579 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 456 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 530 KiB |
Before Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 656 KiB |
Before Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 571 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 392 KiB |
Before Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 674 KiB |
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 674 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 798 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 909 KiB |
Before Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 852 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 850 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 690 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 740 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 848 KiB |
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 746 KiB |
Before Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 868 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 774 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 790 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 555 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 665 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 569 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 710 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 727 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 556 KiB |
Before Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 585 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 687 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 606 KiB |
Before Width: | Height: | Size: 68 KiB |