diff options
author | neodarz <neodarz@neodarz.net> | 2017-06-20 19:03:17 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-06-20 19:03:17 +0200 |
commit | 6dbdf013628321f9996efe4a90eaa03b8a8875a4 (patch) | |
tree | 0d48ee911685c9170ee7750b5cc21e117918a5d5 | |
parent | e11b17c3265cca97b244fa368391cdfe8dd182f0 (diff) | |
download | my_new_personal_website-6dbdf013628321f9996efe4a90eaa03b8a8875a4.tar.xz my_new_personal_website-6dbdf013628321f9996efe4a90eaa03b8a8875a4.zip |
Fork of wiki.neodarz.net
Diffstat (limited to '')
26 files changed, 1382 insertions, 3 deletions
diff --git a/source/css/.sass-cache/a8996a515a695ff5c935f13cf981016eac95224b/theme.scssc b/source/css/.sass-cache/a8996a515a695ff5c935f13cf981016eac95224b/theme.scssc Binary files differnew file mode 100644 index 00000000..795998f6 --- /dev/null +++ b/source/css/.sass-cache/a8996a515a695ff5c935f13cf981016eac95224b/theme.scssc diff --git a/source/css/out.css b/source/css/out.css new file mode 100644 index 00000000..79ad345a --- /dev/null +++ b/source/css/out.css @@ -0,0 +1,523 @@ +@charset "UTF-8"; +/*** Webfonts ***/ +/* icon font from fontello */ +@font-face { + font-family: 'fontello'; + src: url("../fonts/fontello.eot"); + src: url("../fonts/fontello.eot?#iefix") format("embedded-opentype"), url("../fonts/fontello.woff") format("woff"), url("../fonts/fontello.ttf") format("truetype"), url("../fonts/fontello.svg#fontello") format("svg"); + font-weight: normal; + font-style: normal; } +@font-face { + font-family: 'awesome'; + src: url("/fonts/font-awesome/fonts/fontawesome-webfont.eot"); + src: url("../fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/fontawesome-webfont.woff") format("woff"), url("../fonts/fontawesome-webfont.ttf") format("truetype"), url("../fonts/fontawesome-webfont.svg#fontawesome-webfont") format("svg"); + font-weight: normal; + font-style: normal; } +/*** Main theme ***/ +body { + background-color: #000; + color: #fff; + font-family: "monospace", "helvetica", serif; + font-size: 12px; + -webkit-font-smoothing: antialiased; + margin: 0 0 100px 0; } + +.bodya { + border: 1px solid #fff; + margin-left: 20vw; + margin-right: 20vw; } + +@media only screen and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-device-pixel-ratio: 1.25), only screen and (min-resolution: 200dpi), only screen and (min-resolution: 1.25dppx) { + -webkit-font-smoothing: subpixel-antialiased; } +#archival-notice { + position: absolute; + top: 30px; + left: 0; + right: 0; + margin: 0 auto; + text-align: center; + color: red; } + +li { + list-style: none; } + +ul li:before { + content: "\25b6 \00a0"; } + +/* Menu design */ +.nav { + position: fixed; + left: 2.5%; + height: 150px; + width: 200px; + text-align: center; } + .nav li { + list-style: none; } + .nav li a { + text-decoration: none; } + +.lia { + text-decoration: none; } + .lia li:before { + list-style: none; + content: "" !important; } + .lia:hover li { + background-color: #fff; + color: #000; } + +.left-lia { + float: left; } + .left-lia:after { + content: "█▓▒░"; } + +.right-lia { + float: right; } + .right-lia:after { + content: "░▒▓█"; } + +.lia-border { + border: 1px solid #fff; } + .lia-border ul { + padding: 0px; + margin: 0; } + .lia-border hr { + background-color: #fff; + margin: 0; + padding: 0; } + +/* subMenu design */ +.subnav { + position: fixed; + right: 2.5%; + height: 150px; + width: 200px; + text-align: center; } + .subnav li { + list-style: none; } + .subnav li a { + text-decoration: none; } + +.sublia { + text-decoration: none; } + .sublia li:before { + list-style: none; + content: "" !important; } + .sublia:hover li { + background-color: white; + color: black; } + +.subleft-lia { + float: left; } + .subleft-lia:after { + content: "█▓▒░"; } + +.subright-lia { + float: right; } + .subright-lia:after { + content: "░▒▓█"; } + +.sublia-border { + border: 1px solid #fff; } + .sublia-border ul { + padding: 0px; + margin: 0; } + .sublia-border hr { + background-color: #fff; + margin: 0; + padding: 0; } + .sublia-border pre code ul, .sublia-border pre code, .sublia-border pre { + width: 100% !important; + margin: 0 !important; + padding: 0 !important; + font-family: monospace,monospace !important; + font-size: 12px !important; + white-space: normal; } + +/* situations design */ +.situation1nav, .situation2nav { + position: fixed; + right: 2.5%; + margin-top: 100px; + height: 150px; + width: 200px; + text-align: center; } + .situation1nav li, .situation2nav li { + list-style: none; } + .situation1nav li a, .situation2nav li a { + text-decoration: none; } + +.situation1lia, .situation2lia { + text-decoration: none; } + .situation1lia li:hover, .situation2lia li:hover { + background-color: white; + color: black; } + .situation1lia li:before, .situation2lia li:before { + list-style: none; + content: "" !important; } + +.situation1left-lia, .situation2left-lia { + float: left; } + .situation1left-lia:after, .situation2left-lia:after { + content: "█▓▒░"; } + +.situation1right-lia, .situation2right-lia { + float: right; } + .situation1right-lia:after, .situation2right-lia:after { + content: "░▒▓█"; } + +.situation1lia-border, .situation2lia-border { + border: 1px solid white; } + .situation1lia-border ul, .situation2lia-border ul { + padding: 0px; + margin: 0; } + .situation1lia-border hr, .situation2lia-border hr { + background-color: white; + margin: 0; + padding: 0; } + .situation1lia-border pre code ul, .situation1lia-border pre code, .situation1lia-border pre, .situation1lia-border pre code ul, .situation1lia-border pre code, .situation1lia-border pre, .situation2lia-border pre code ul, .situation2lia-border pre code, .situation2lia-border pre, .situation2lia-border pre code ul, .situation2lia-border pre code, .situation2lia-border pre { + width: 100% !important; + margin: 0 !important; + padding: 0 !important; + font-family: monospace,monospace !important; + font-size: 12px !important; + white-space: normal; } + +/* end menus design */ +.content-separator, .footer { + width: 60%; + margin: 0 auto; } + +.content { + text-align: justify; } + .content pre, .content ul, .content p { + width: 60%; + margin: 0 auto; } + +.content .sourceCode { + margin: 0 auto; } + +.header { + width: 100%; } + +hr { + border: 0; + height: 1px; + background: #888; } + +.content-separator { + margin: 15px auto 3px auto; } + +h1 { + text-align: center; + font-size: 160%; + font-weight: bold; + width: 100%; } + +.h1 { + text-align: center; } + +h2 { + text-align: center; + font-size: 125%; + font-weight: bold; } + +h3, h4 { + text-align: center; + font-weight: bold; } + +h3:before { + content: "· "; } +h3:after { + content: " ·"; } + +.article-metadata { + text-align: center; + font-size: 100%; + font-weight: normal; + margin: 1em 0; } + +a { + color: #fff; + word-wrap: break-word; } + +a .active { + color: #fff; } + +/*p, h2, ul { + padding-left: 10vw; + padding-right: 10vw; +}*/ +code { + font-size: 90%; + color: #000; + font-family: Courier, monospace; + white-space: pre-wrap; + word-wrap: break-word; + background-color: #fff; + border-radius: 2px; + padding-left: 1px; + padding-right: 1px; } + +h1 code, h2 code { + font-size: 95%; + color: #000; } + +pre { + padding: 1em; + background: #000; } + +/* Pandoc wraps pre[class*=sourceCode] in a div tag, so it is necessary to +eliminate the margins of such pre tags to avoid too much spacing.*/ +pre[class*=sourceCode] { + margin: 0; + border: 1px solid; + overflow: auto; } + +pre code { + font-size: 85%; + color: #fff; + white-space: pre; + word-wrap: normal; + background-color: black; + border-radius: 0; + padding: 0; } + +ol { + padding-left: 20px; } + +ul { + padding-left: 16px; } + +p { + padding: 7px 0 7px 0; } + +blockquote { + margin: 0; + padding: 0 1em; + font-style: italic; + border-left: 0.4em solid #ddd; } + +img { + display: block; + max-width: 100%; + margin: 5px auto; } + +.figure { + text-align: center; + margin: 0 auto; + width: 60%; } + +.figure img { + display: inline; + margin: 0 0 5px 0; } + +.figure .caption { + width: 80%; + margin: auto; + font-size: 90%; } + +sup { + font-size: 11px; + margin: 0 0 0 1px; } + +noscript { + color: #999; } + +noscript a { + color: #999; } + +.footnotes { + font-size: 90%; } + .footnotes ol { + padding-left: 1.4em; } + .footnotes p { + margin: 0.6em 0; } + +.footnotes-backlink { + margin-left: 0.2em; + vertical-align: -0.2em; + color: #bbb; + text-decoration: none; } + .footnotes-backlink:hover { + background-color: #bbb; + color: #fff; } + +.lfooter { + float: left; } + +.lfooter .updated:before { + content: "Last updated: "; } + +.rfooter { + float: right; } + +.rss-icon, .atom-icon, .cc-icon { + text-decoration: none; + position: relative; + top: 1px; } + +.rss-icon, .atom-icon { + margin: 0 3px; } + +.cc-icon { + margin: 0 1px; } + +.rss-icon:before, .atom-icon:before { + content: "\e800"; + font-family: "monospace","helvetica"; + font-size: 105%; } + +.rss-icon:before { + display: inline-block; + transform: scale(-1, 1); + -webkit-transform: scale(-1, 1); } + +.cc-icon:before { + content: "\e801"; + font-family: "monospace","helvetica"; + font-size: 95%; } + +.title-header { + display: table; + margin: 0 auto; } + +.link-header { + text-decoration: none; } + +table { + text-align: center; + width: 100% !important; } + +.skill-table { + text-align: left; + text-decoration: none; + list-style: none; } + +.skill-table tr td ul li { + list-style: none; } + +.skill-table tr td ul li::before { + content: ""; } + +.odd { + background-color: #131313; + border: 1px solid white; } + +.ouer { + display: block; } + +.code-outer { + margin-left: 1vw; + width: 65%; + margin-left: 10vw; + margin-bottom: 1vw; + border: 1px solid #fff; + overflow: auto; + font-family: "monospace","helvetica"; } + +.left-h1 { + float: left; + font-weight: bold; + font-size: 24.4px; } + +.right-h1 { + float: right; + font-weight: bold; + font-size: 24.4px; } + +.title-h1 { + display: inline-block; + font-size: 24.4px; + font-weight: bold; } + +.footer { + text-align: center; } + +/*** tag cloud ***/ +#cloudtag { + width: 50%; + margin: 0 auto; + border: 1px solid white; + padding: 10px; } + #cloudtag a { + text-decoration: none; + font-weight: bold; } + #cloudtag span { + font-weight: lighter; } + +/*** Wide screen ***/ +@media screen and (min-width: 1441px) { + .content pre, .content ul, .content p, .content-separator, .footer { + width: 50%; } + + .header { + width: 100%; } } +/*** Narrow screen ***/ +@media screen and (max-width: 1023px) { + body { + margin: 0 0 100px 0; } + + .nav { + position: static; + width: 100%; + height: 150px; + margin: 20px 0 80px 0; } + + .nav-icon { + width: 150px; + height: 150px; + line-height: 150px; } + + .nav-icon:before { + font-size: 54px; } + + .nav-title, .nav-author { + height: 0; + width: 0; + visibility: hidden; + pointer-events: none; } + + p, .content-separator, .footer { + width: 80%; } + + .header { + width: 100%; } } +/*** Ultranarrow screen ***/ +@media screen and (max-width: 500px) { + .outer { + display: none; } + + .content pre, .content ul, .content p, .content-separator, .footer { + width: 90%; } + + .header { + width: 100%; } + + .blog-index-yearly-index { + margin-left: 0; } + + .blog-index-post-date { + width: 4em; } } +/*** Print ***/ +@media print { + body { + margin: 5% 0; + font-size: 12px; } + + sup { + font-size: 0.5em; + top: -1em; } + + pre { + -webkit-print-color-adjust: exact; } + + .content pre, .content ul, .content p, .content-separator, .footer { + width: 90%; } + + .header { + width: 100%; } + + .nav, .rss-icon, .atom-icon, .cc-icon, #archival-notice { + display: none; } } + +/*# sourceMappingURL=out.css.map */ diff --git a/source/css/out.css.map b/source/css/out.css.map new file mode 100644 index 00000000..0bc6cf0a --- /dev/null +++ b/source/css/out.css.map @@ -0,0 +1,7 @@ +{ +"version": 3, +"mappings": ";AAAA,kBAAkB;AAElB,6BAA6B;AAC7B,UASC;EARC,WAAW,EAAE,UAAU;EACvB,GAAG,EAAE,4BAA4B;EACjC,GAAG,EAAE,mNAGmD;EACxD,WAAW,EAAE,MAAM;EACnB,UAAU,EAAE,MAAM;AAGpB,UASC;EARC,WAAW,EAAE,SAAS;EACtB,GAAG,EAAE,wDAAwD;EAC7D,GAAG,EAAE,0QAGyE;EAC9E,WAAW,EAAE,MAAM;EACnB,UAAU,EAAE,MAAM;AAQpB,oBAAoB;AAEpB,IAAK;EACH,gBAAgB,EAPV,IAAI;EAQV,KAAK,EAPC,IAAI;EAQV,WAAW,EAVA,+BAA+B;EAW1C,SAAS,EAAE,IAAI;EACf,sBAAsB,EAAE,WAAW;EACnC,MAAM,EAAE,WAAW;;AAGrB,MAAO;EACL,MAAM,EAAE,cAAgB;EACxB,WAAW,EAAE,IAAI;EACjB,YAAY,EAAE,IAAI;;AAIpB,mMAI4C;EACxC,sBAAsB,EAAE,oBAAoB;AAGhD,gBAAiB;EACb,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,IAAI;EACT,IAAI,EAAE,CAAC;EACP,KAAK,EAAE,CAAC;EACR,MAAM,EAAE,MAAM;EACd,UAAU,EAAE,MAAM;EAClB,KAAK,EAnCH,GAAG;;AAsCT,EAAG;EACD,UAAU,EAAE,IAAI;;AAGlB,YAAa;EACT,OAAO,EAAE,aAAa;;AAG1B,iBAAiB;AACjB,IAAK;EACH,QAA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;EAGf,kEAAmE;IAC/D,KAAK,EAAE,GAAG;;EAOd,OAAQ;IACN,KAAK,EAAE,IAAI;;EAGb,wBAAyB;IACrB,WAAW,EAAE,CAAC;;EAGlB,qBAAsB;IAClB,KAAK,EAAE,GAAG;AAIlB,eAAe;AAEf,YAAa;EACT,IAAK;IACD,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;;EAGnB,GAAI;IACA,SAAS,EAAE,KAAK;IAChB,GAAG,EAAE,IAAI;;EAGb,GAAI;IACA,0BAA0B,EAAE,KAAK;;EAGrC,kEAAmE;IAC/D,KAAK,EAAE,GAAG;;EAOd,OAAQ;IACN,KAAK,EAAE,IAAI;;EAGb,uDAAwD;IACpD,OAAO,EAAE,IAAI", +"sources": ["theme.scss"], +"names": [], +"file": "out.css" +} diff --git a/source/css/theme.css b/source/css/theme.css index a57ced98..15810dfa 100644 --- a/source/css/theme.css +++ b/source/css/theme.css @@ -322,7 +322,7 @@ h2 { font-weight: bold; } -h3 { +h3, h4 { text-align: center; font-weight: bold; } diff --git a/source/notes/2016-05-03-tinycorelinux.md b/source/notes/2016-05-03-tinycorelinux.md new file mode 100644 index 00000000..d43044b2 --- /dev/null +++ b/source/notes/2016-05-03-tinycorelinux.md @@ -0,0 +1,83 @@ +--- +title: "tinycorelinux" +date: 2016-05-03T09:14:00 +date_display: May 03, 2016 +--- + +# Paramétrage + +Pour faire propre, toute les extensions téléchargées se trouvent dans un dossier `.ext` et tous les scripts sont dans un dossier `.scripts` + +# Activation de la persistance + +## Commande de sauvegarde + +Script `save.sh` + +```sh +#!/bin/sh +filetool.sh -b +``` + +Ajout d'un alias dans le fichier `~/.ashrc` : + +```sh +alias save='sh ~/.scripts/save.sh' +``` + +## Lors d'un arrêt ou d'un reboot + +### Arrêt + +Script `off.sh` +```sh +#!/bin/sh +sh ~/.scripts/save.sh +sudo poweroff +``` + +Ajout d'un alias dans le fichier `~/.ashrc` : + +```sh +alias off='sh ~/.scripts/off.sh' +``` + +### Reboot + +Script `reboot.sh` + +```sh +#!/bin/sh +sh ~/.scripts/save.sh +sudo reboot +``` + +Ajout d'un alias dans le fichier `~/.ashrc` : + +```sh +alias reboot='sh ~/.scripts/reboot.sh' +``` + +# Clavier en français + + +Installation de l'extension kmaps.tcz, pas dispo dans les dépos pour armv7, la télécharger dans le dépot pour la version x86: +```sh +$ http://tinycorelinux.net/7.x/x86/tcz/kmaps.tcz +``` +/!\ Vérifier le numéro de version ! + +Activation du script et paramétrage du clavier en français : + +```sh +$ tce-load -i kmaps +# loadkmap < /usr/share/kmap/azerty/fr-pc.kmap +``` + +# Paramétrage automatique au démarrage + +Modificiation du fichier `/opt/bootlocal.sh` en ajoutant les commandes suivante à la fin : +```sh +su -c "tce-load -i ~/.ext/kmaps.tcz" +loadkmap < /usr/share/kmap/azerty/fr-pc.kmap +``` diff --git a/source/notes/2016-09-08-gpg.md b/source/notes/2016-09-08-gpg.md new file mode 100644 index 00000000..edeeec14 --- /dev/null +++ b/source/notes/2016-09-08-gpg.md @@ -0,0 +1,45 @@ +--- +title: "gpg" +date: 2016-09-08T09:14:00 +date_display: Sep 08, 2016 +--- + +Commande de base : `gpg2` + +# Création d'une pair de clé + +Génération de la clé : `gpg2 --full-gen-key` ou simplement `gpg --gen-key` si la première n'est pas disponible sur le système + +Pour aider la génération de nombres aléatoire : `find ~/ -type f | xargs grep randomstring &> /dev/null` + +Export des clés, privées puis publiques : `gpg2 --export-secret-keys --armor <figerprint> > private.asc` puis `gpg2 --export <figerprint> > public.asc` + +Importation des clés, privées puis publiques : `gpg2 --allow-secret-key-import --import privkey.asc` puis `gpg2 --import pubkey.asc` + +Et pour finir on trust la clé privée : `gpg2 --edit-key <fingerprint>` + +Pour la partager sur un serveur, dans ce cas il s'agit de sks.srv.dumain.com:11371 : `gpg2 --keyserver sks.srv.dumain.com:11371 --send-key <figerprint>` + +Pour choisir un serveur => [https://sks-keyservers.net/status/](https://sks-keyservers.net/status) + +Chercher une clé sur le net : `gpg --keyserver sks.srv.dumain.com:11371 --search-keys <figerprint>` + +Importer une clé depuis internet : `gpg2 --recv-keys <figerprint>` + +Rafraichir la liste de clé (Pourquoi ? => [https://futureboy.us/pgp.html#UpdatingKeys](https://futureboy.us/pgp.html#UpdatingKeys)) : `gpg --refresh-keys` + +Some documention : + +- [https://futureboy.us/pgp.html](https://futureboy.us/pgp.html) + +# Signer un fichier + +Signer un fichier : `gpg2 --sign --detach-sign,<file>` + +Vérifier la signature : `gpg2 --verify <file>.sig <file>` + +## Chiffrer un fichier + +Chiffrer un fichier : `gpg2 --encrypt --recipient <key_ID> <file>` (--recipient est le destinataire, il possible de mettre plusieurs destinataire) + +Déchiffrer : `gpg2 --decrypt <file>.gpg` diff --git a/source/notes/2016-09-27-win_usb.md b/source/notes/2016-09-27-win_usb.md new file mode 100644 index 00000000..251937e1 --- /dev/null +++ b/source/notes/2016-09-27-win_usb.md @@ -0,0 +1,16 @@ +--- +title: "win_usb" +date: 2016-09-27T09:14:00 +date_display: Sep 27, 2016 +--- + +Faire une clé usb bootable de windaube + +```sh +# mkfs.ntfs -f /dev/sdb1 +# ms-sys -7 /dev/sdb +# mount -o loop win7.iso /mnt/iso +# mount /dev/sdb1 /mnt/usb +# cp -r /mnt/iso/* /mnt/usb +sync +``` diff --git a/source/notes/2016-10-20-photoascii.md b/source/notes/2016-10-20-photoascii.md new file mode 100644 index 00000000..668a1978 --- /dev/null +++ b/source/notes/2016-10-20-photoascii.md @@ -0,0 +1,41 @@ +--- +title: "photoascii" +date: 2016-10-20T09:14:00 +date_display: Oct 20, 2016 +--- + +Ici on explique la procédure pour créer une image ASCII à partir d'une photo. + +Dépendances : + + * imagemagick + * netpbm + +Modifier la taille de l'image, supprimer les couleurs et mettre son format en pbm : + +```sh +$ mogrify -resize 50% -monochrome -format pbm me.jpg +``` + +Pour remplacer le noir par le blanc et vise-versa (Optionnel - A utiliser la plupart du temps) : + +```sh +$ mogrify -negate me.pbm +``` + +Générer le fichier texte ASCII : + +```sh +$ pbmtoascii me.pbm > me.ascii +``` + +On peut par la suite imager simplement ce fichier en l'affichant sur un terminal (de préférence blanc sur noir) : +pro tip : Il faut souvent réduire la police (cela dépend de la résolution de votre photo) + +```sh +cat me.ascii +``` + +Ensuite on vient "screener" (par exemple avec l'outil scrot | see more : [screenshots](https://wiki.archlinux.org/index.php/taking_a_screenshot) l'affichage pour l'enregistrer en fichier binaire image. + +Et hop ! on a une belle image imagée en ASCII :) diff --git a/source/notes/2016-11-07-dm-crypt.md b/source/notes/2016-11-07-dm-crypt.md new file mode 100644 index 00000000..1676b49a --- /dev/null +++ b/source/notes/2016-11-07-dm-crypt.md @@ -0,0 +1,72 @@ +--- +title: "dm-crypt" +date: 2016-11-07T09:14:00 +date_display: Nov 07, 2016 +--- + +# Chiffrer une partition + +Voir [Dm-crypt/Encrypting a non-root file system](https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_a_non-root_file_syste) pour crypter un périphérique qui n'est pas utilisé pour démarrer un système, comme une partition. + +Voir [Dm-crypt/Device encryption](https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption) pour des détails sur l'utilisation de cryptsetup. + +Création de la partition crypter sur une partition déjà existante : +```sh +λ neodarz [~] → +sudo cryptsetup -v --cipher aes-xts-plain64 --key-size 512 --hash sha512 --use-urandom --verify-passphrase luksFormat /dev/sdc3 +``` + +Montage de la partition LUKS, via crypsetup afin de saisir la passphrase : +```sh +λ neodarz [~] → +sudo crypsetup open /dev/mapper/data +``` + +Formattage de la partition dans le format souhaité (Efface une clé PGP par la même occasion, mais ne semble pas poser de problème par la suite) : +```sh +λ neodarz [~] → +sudo mkfs.ext4 /dev/mapper/data +``` + +Démontage de la partition LUKS: +```sh +λ neodarz [~] → +sudo cryptsetup close data +``` + +//Note à moi même: Mais peut on la laisser monter ? A tester...// + +Montage de la partition LUKS : +```sh +λ neodarz [~] → +sudo cryptsetup --type luks open /dev/sdc3 data +``` + +Montage de la partition "déchiffrer" : +```sh +λ neodarz [~] → +sudo mount -t ext4 /dev/mapper/data /mnt/USB2 +``` + +Apperçu rapide: +```sh +λ neodarz [~] → +lsblk +NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT +sdc 8:32 0 931,5G 0 disk +├─sdc1 8:33 0 100G 0 part +├─sdc2 8:34 0 100G 0 part +└─sdc3 8:35 0 731,5G 0 part + └─data 254:4 0 731,5G 0 crypt /mnt/USB2 +``` + +Avant de tout démonter, prendre soin de démonter en premier lieu le point de montage puis de fermer via cryspetup : +```sh +λ neodarz [~] → +sudo umount /mnt/USB2 +``` + +```sh +λ neodarz [~] → +sudo cryptsetup close data +``` diff --git a/source/notes/2016-12-12-dns.md b/source/notes/2016-12-12-dns.md new file mode 100644 index 00000000..5e496b84 --- /dev/null +++ b/source/notes/2016-12-12-dns.md @@ -0,0 +1,17 @@ +--- +title: "dns" +date: 2016-12-12T09:14:00 +date_display: Dec 12, 2016 +--- + +Désactiver la reconfiguration auto du fichier de conf de netcl `/etc/NetworkManager/NetworkManager.conf` : + +```sh +dhcp=none +``` + +PS : d'autres option disponible sur le [Wiki d'archlinux](https://wiki.archlinux.org/index.php/resolv.conf). +Puis reboot. + +Changer le DNS, edit `/etc/resolv.conf` par ceux de [fdn](https://www.fdn.fr/actions/dns/) (par exemple). + diff --git a/source/notes/2016-12-13-nat.md b/source/notes/2016-12-13-nat.md new file mode 100644 index 00000000..005320cf --- /dev/null +++ b/source/notes/2016-12-13-nat.md @@ -0,0 +1,30 @@ +--- +title: "nat" +date: 2016-12-13T09:14:00 +date_display: Dec 13, 2016 +--- + +Mise en place du NAT sur archlinux : + + +```sh +# ip link set up dev net0 +# ip addr add 192.168.123.100/24 dev net0 +# sysctl net.ipv4.ip_forward=1 +# iptables -t nat -A POSTROUTING -o internet0 -j MASQUERADE +# iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT +# iptables -A FORWARD -i net0 -o internet0 -j ACCEPT +``` + +Mise en place d'une ip fixe sur debian : +```sh +# ifconfig eth0 192.168.123.101 netmask 255.255.255.0 +# route add default gw 192.168.123.100 eth0 +``` + +Sources : + +- [https://wiki.archlinux.org/index.php/Internet_sharing](https://wiki.archlinux.org/index.php/Internet_sharing) + +- [http://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/](http://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/) + diff --git a/source/notes/2017-01-14-gtavserver.md b/source/notes/2017-01-14-gtavserver.md new file mode 100644 index 00000000..d8471252 --- /dev/null +++ b/source/notes/2017-01-14-gtavserver.md @@ -0,0 +1,56 @@ +--- +title: "gtavserver" +date: 2017-01-14T09:14:00 +date_display: Jan 14, 2017 +--- + +Liste des plugins installé ainsi que de leurs commandes si il y en a : + +# playerlist-pro +Playerlist resource for GTA Network servers that gives a good-looking playerlist synchronized with the server. Also gives players the big map like in GTAO. + +Just press 'Z' + +https://github.com/MissyMelissa/playerlist-pro + +# Object Spawner + +Just press 'F2' + +https://github.com/Rene-Sackers/gta-network-spawner + +# keybinds + +Keybindings resource for GTA Network that provides a /bind command to bind keys to chat commands. + +https://github.com/MissyMelissa/keybinds + +# profiles + +Resource for GTA Network servers that provides a way for other resources to save and load player profile data on the fly. + +Admins have a few commands they can use: + + /listprofile lists all variables stored in your own profile. + /saveprofile saves your own user profile to disk. + /loadprofile loads your own user profile from disk. + /clearprofile clears your own user profile. + + +https://github.com/MissyMelissa/profiles + +# Empty mod + +https://github.com/MissyMelissa/empty + +# Plugins plutot interresant + +Admin and Moderator chat resource for GTA Network servers. => https://github.com/MissyMelissa/adminchat + +Freeroam teleport resource for GTA Network servers. => https://github.com/MissyMelissa/freeroam-tp + +Gives players randomly colored names in GTA Network servers. => https://github.com/MissyMelissa/colorednames + +Visual indicator above player heads when they are typing in chat for GTA Network servers. => https://github.com/MissyMelissa/chatindicator + +Automatically normalizes player names on GTA Network servers when they join. => https://github.com/MissyMelissa/namenormalizer diff --git a/source/notes/2017-01-16-adb.md b/source/notes/2017-01-16-adb.md new file mode 100644 index 00000000..ee072bec --- /dev/null +++ b/source/notes/2017-01-16-adb.md @@ -0,0 +1,15 @@ +--- +title: "adb" +date: 2017-01-16T09:14:00 +date_display: Jan 16, 2017 +--- + +Changement de clavier via adb via la commande ''ime'' + +```sh +ime list // list les clavier installé +ime enable <mID> // active le clavier +ime set <mID> // utilisation de ce clavier +``` + +Pour changer de DNS : [https://github.com/ukanth/afwall/wiki/DNS#changing-default-dns](https://github.com/ukanth/afwall/wiki/DNS#changing-default-dns) diff --git a/source/notes/2017-01-17-kvm.md b/source/notes/2017-01-17-kvm.md new file mode 100644 index 00000000..b1c09279 --- /dev/null +++ b/source/notes/2017-01-17-kvm.md @@ -0,0 +1,40 @@ +--- +title: "kvm" +date: 2017-01-17T09:14:00 +date_display: Jan 17, 2017 +--- + +Création de l'image disque où serait installer Windows : + +```sh +$ qemu-img create -f qcow2 disk.qcow2 40G +``` + +Utiliser le script suivant : + +```sh +#!/bin/sh +export QEMU_AUDIO_DRV=alsa +DISKIMG=~/win7.img +WIN7IMG=~/Downloads/X15-65804.iso +VIRTIMG=~/Downloads/virtio-win-0.1-74.iso +qemu-system-x86_64 --enable-kvm -drive file=${DISKIMG},if=virtio -m 2048 \ +-net nic,model=virtio -net user -cdrom ${WIN7IMG} \ +-drive file=${VIRTIMG},index=3,media=cdrom \ +-rtc base=localtime,clock=host -smp cores=2,threads=4 \ +-usbdevice tablet -soundhw ac97 -cpu host -vga vmware +``` + +Lors de l'installation pensez à installer les drivers suivant : + +- vioscsi : Driver pour détecter les disques + +- NetKVM : Driver pour internet + +Drivers : [https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/) + +Sources : + +- [https://www.reddit.com/r/archlinux/comments/1fg3y9/guide_to_running_windows_7_in_qemu/](https://www.reddit.com/r/archlinux/comments/1fg3y9/guide_to_running_windows_7_in_qemu/) + +- [http://www.funtoo.org/Windows_7_Virtualization_with_KVM](http://www.funtoo.org/Windows_7_Virtualization_with_KVM) diff --git a/source/notes/2017-01-17-network.md b/source/notes/2017-01-17-network.md new file mode 100644 index 00000000..ba7fe88d --- /dev/null +++ b/source/notes/2017-01-17-network.md @@ -0,0 +1,28 @@ +--- +title: "network" +date: 2017-01-17T09:14:00 +date_display: Jan 17, 2017 +--- + +# Créer une interface WIFI + +## Récupérer le nom de l'interface + +```sh +# rfkill list +``` + +## Créer une interface + +```sh +//phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>] +# iw phy phy0 interface add wlp3s0 type managed addr 12:34:56:78:ab:cd +``` + +# NAT + +Voir la note sur le [nat](/notes/2017-03-23-nat.html) + +# Bridge + +Voir l'exemple de [Creation and configuration of the bridge interface with archlinux](/notes/2017-03-23-rc_khaganat_project.html) diff --git a/source/notes/2017-02-03-cmus.md b/source/notes/2017-02-03-cmus.md new file mode 100644 index 00000000..01276ee7 --- /dev/null +++ b/source/notes/2017-02-03-cmus.md @@ -0,0 +1,52 @@ +--- +title: "cmus" +date: 2017-02-03T09:14:00 +date_display: Feb 02, 2017 +--- + +RTFM : [https://github.com/cmus/cmus/wiki/status-display-programs#usage--installation +](https://github.com/cmus/cmus/wiki/status-display-programs#usage--installation +) + +Mettre les droit correct : +```sh +chmod a+x script.sh +``` + +Le code : + +```sh +echo $@ >> script.log +``` + + +Configuration de cmus : + +```sh + :set status_display_program=script.sh +``` + +## cmus-sender + +For use this script you must set the variable `status_display_program` in cmus, for example : + +```sh +:set status_display_program=/home/user/.cmus/status_display_program.sh +``` + +```sh +#!/bin/bash +#echo $@ >> /home/neodarz/test.log +echo "$2ø$6ø$8ø"${10}"ø"${12}"ø"${14}"ø"${16}"ø×" >> /home/neodarz/test.log +#echo "Status: $2" >> /home/neodarz/test.log +#echo "Paths: $4" >> /home/neodarz/test.log +#echo "Artist: $6" >> /home/neodarz/test.log +#echo "Album: $8" >> /home/neodarz/test.log +#echo "Track Number: "${10} >> /home/neodarz/test.log +#echo "Title: "${12} >> /home/neodarz/test.log +#echo "Date:"${14} >> /home/neodarz/test.log +#echo "Duration: "${16} >> /home/neodarz/test.log +PID=$(pidof node server.js) +kill -USR2 $PID +``` + diff --git a/source/notes/2017-02-16-rc_khaganat_project.md b/source/notes/2017-02-16-rc_khaganat_project.md new file mode 100644 index 00000000..2bf6ae50 --- /dev/null +++ b/source/notes/2017-02-16-rc_khaganat_project.md @@ -0,0 +1,84 @@ +--- +title: "rc_khaganat_project" +date: 2017-02-16T09:14:00 +date_display: Feb 16, 2017 +--- + +# Creation and configuration of the bridge interface with archlinux + +Debian based system ? no problem => [http://lesaventuresdeyannigdanslemondeit.blogspot.fr/2013/03/mise-en-place-dun-bridge-sous.html](http://lesaventuresdeyannigdanslemondeit.blogspot.fr/2013/03/mise-en-place-dun-bridge-sous.html) + +RTFM : [https://wiki.archlinux.org/index.php/Systemd-networkd#Bridge_interface](https://wiki.archlinux.org/index.php/Systemd-networkd#Bridge_interface) + +## Bridge interface + +Create a virtual bridge interface `/etc/systemd/network/MyBridge.netdev` + +```sh +[NetDev] +Name=br0 +Kind=bridge +``` + + +## Bind ethernet to bridge + +Modify the `/etc/systemd/network/enp3s0.network` to remove the DHCP, as the bridge requires an interface to bind to with no IP, and add a key to bind this device to br0. Let us change its name to a more relevant one. + +```sh +[Match] +Name=en* + +[Network] +Bridge=br0 +``` + +## Bridge network + +Create a network profile for the Bridge `/etc/systemd/network/MyBridge.network` + +```sh +[Match] +Name=br0 + +[Network] +DHCP=ipv4 +``` + + +Finnaly restart `systemd-networkd.service` + +# Qemu config for use bridge + +RTFM : [https://wiki.archlinux.org/index.php/QEMU#Bridged_networking_using_qemu-bridge-helper](https://wiki.archlinux.org/index.php/QEMU#Bridged_networking_using_qemu-bridge-helper) + +Edit file (if folder not exist, create it) : `/etc/qemu/bridge.conf` + +```sh +allow bridge0 +``` + +# Start qemu + +RTFM : [https://khaganat.net/wikhan/fr:vm_server](https://khaganat.net/wikhan/fr:vm_server) & [https://khaganat.net/wikhan/fr:readonly:download](https://khaganat.net/wikhan/fr:readonly:download) + +My magic command : + +```sh +/usr/bin/qemu-system-x86_64 \ + -monitor stdio \ + -soundhw ac97 \ + -machine accel=kvm \ + -m 256 \ + -cdrom /home/neodarz/Téléchargements/VMdeKhanat/khanat-161115/khanat-161115.vmdk \ + -hda /home/neodarz/Téléchargements/VMdeKhanat/khanat-161115/khanat-161115.vmdk \ + -boot once=d,menu=off \ + -net nic,vlan=0 \ + -net user,vlan=0 \ + -net nic,vlan=1 \ + -net bridge,vlan=1,br=br0 \ + -rtc base=localtime \ + -name "ryzom core" +``` + +Some other docs : [https://khaganat.net/wikhan/fr:installer_vm_basique?s\[#documentation_sur_qemu](https://khaganat.net/wikhan/fr:installer_vm_basique?s\[#documentation_sur_qemu) diff --git a/source/notes/2017-03-22-htmly.md b/source/notes/2017-03-22-htmly.md new file mode 100644 index 00000000..a1e3e78f --- /dev/null +++ b/source/notes/2017-03-22-htmly.md @@ -0,0 +1,15 @@ +--- +title: "htmly" +date: 2017-03-22T09:14:00 +date_display: Mar 22, 2017 +--- + +# Installation d'un site htmly déjà existant + +Mettre à jour les urls des pages web : + +```sh +find . -type f -print0 | xargs -0 sed -i 's/tilima.neodarz.net/tilima.dom/g' +``` + +Penser à re-cloner le thème si celui vient d'un autre repo git. diff --git a/source/notes/2017-04-10-qutebrowser.md b/source/notes/2017-04-10-qutebrowser.md new file mode 100644 index 00000000..506e2681 --- /dev/null +++ b/source/notes/2017-04-10-qutebrowser.md @@ -0,0 +1,19 @@ +--- +title: "qutebrowser" +date: 2017-04-10T09:14:00 +date_display: Apr 10, 2017 +--- + +# Troubleshooting + +## Javascript broken + +If website like mastodon instances or google seems had javascript code broken, you must install an other version of QtWebKit or use an other webengine. + +## QtWebKit engine + +Just install `qt5-webkit-ng` instead of `qt5-webkit` + +## WebEngin + +Just install `qt5-webengine` and start qutebrowser with the option `--backend webengine` diff --git a/source/notes/2017-04-14-k10000-root.md b/source/notes/2017-04-14-k10000-root.md new file mode 100644 index 00000000..8f4639e2 --- /dev/null +++ b/source/notes/2017-04-14-k10000-root.md @@ -0,0 +1,87 @@ +--- +title: "K1000 root" +date: 2017-04-14T09:14:00 +date_display: Apr 14, 2017 +--- + +Il y a quelque temps j'ai décidé de rooter mon téléphone afin d'être plus libre et vu que j'ai eu du mal je note la procédure ici. + +# Instalation + +Vérifier si le téléphone est bien détécté par l'ordinateur : + +```sh +adb devices +``` + +Redémarage en mode fastboot : + +```sh +adb reboot bootloader +``` + +Déblocage oem (Attention efface tout !) : + +```sh +fastboot oem unlock +``` + +Flashache du recovery et du système : + +```sh +fastboot flash recovery recovery.img +fastboot flash system system.img +``` + +Redémarrage de l'apareil : + +```sh +fastboot reboot +``` + +Naviger dans les menus afin de faire un wipe : + +```sh +Wipe > Advanced Wipe > Dalvik Cache (case cochée) > Cache (case cochée) > Swipe to Wipe +``` + +Puis + +```sh +Mount > System (case cochée) +``` + +Retouner sur la console où la commande fastboot à été lancé et écrire les commandes suivantes dans l'ordre + +```sh +adb push busybox /system/xbin +adb push supersu.zip /sdcard +adb shell +chmod 04755 /system/xbin/busybox +/system/xbin/busybox --install /system/xbin/ +exit +``` + +Une fois ceci fais, démonter le système, flaser supersu et rédemarer le téléphone + +```sh +Mount > System (case décochée) +Install > supersu.zip > Swipe to Confirm Flash +Reboot > System +``` + +Actuellement à la recherche du firmware pour le K10000 afin de downgrade pour pouvoir utilisé android 5.x +Ou alors attendre CM13 pour le K10000. EDIT : Rom en 6.0 trouvé, je compte bientôt compléter les infos ici... + +# Téléchargement + + +[CWM-SuperSU-v0.98.zip](https://share.neodarz.net/K10000/CWM-SuperSU-v0.98.zip) + + +[busybox_1.21.0.7z](https://share.neodarz.net/K10000/busybox_1.21.0.7z) + +[Recovery](https://www.needrom.com/download/oukitel-k10000-4/) [[Mirror](https://share.neodarz.net/K10000/TWRP_3.0.2_K10000_v.8.0.rar)] + +[Rom](https://share.neodarz.net/K10000/rom_stock_k10000_6.0_20-07-2016.img) + diff --git a/source/notes/2017-04-17-elm_installation.md b/source/notes/2017-04-17-elm_installation.md new file mode 100644 index 00000000..4c412ee3 --- /dev/null +++ b/source/notes/2017-04-17-elm_installation.md @@ -0,0 +1,18 @@ +--- +title: "elm_installation" +date: 2017-04-17T09:26:00 +date_display: Apr 17, 2017 +--- + +# ELM installation on archlinux + +Error when elm-repl started : +```sh +/usr/lib/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm-repl: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory +``` + +Solution: +```sh +sudo ln -s /usr/lib/libncurses++w.so.6.0 /usr/lib/libtinfo.so.5 +``` + diff --git a/source/notes/2017-04-22-espeak-ng.md b/source/notes/2017-04-22-espeak-ng.md new file mode 100644 index 00000000..c7c10dfe --- /dev/null +++ b/source/notes/2017-04-22-espeak-ng.md @@ -0,0 +1,33 @@ +--- +title: "espeak-ng" +date: 2017-04-22T09:14:00 +date_display: Apr 22, 2017 +--- + +Site web où trouver des voix: [http://www.tcts.fpms.ac.be/synthesis/mbrola/mbrcopybin.html](http://www.tcts.fpms.ac.be/synthesis/mbrola/mbrcopybin.html) + +# Installation de mbrola +```sh +http://www.tcts.fpms.ac.be/synthesis/mbrola/bin/pclinux/mbr301h.zip +``` + +# Installatin d'une voix +```sh +cd Downloads +unzip mbr301h.zip +sudo cp mbrola-linux-i386 /usr/bin/mbrola +http://www.tcts.fpms.ac.be/synthesis/mbrola/dba/en1/en1-980910.zip +unzip en1-980910.zip +cp en1/en1 /usr/share/mbrola/en1 +``` + +# Création d'une règle pour l'ajout d'une voix + +Faire un fichier comme /usr/share/espeak-data/voices/mb/mb-fr1 + +# Utilisation +```sh +espeak -v mb-en1 "Hello world" +``` + + diff --git a/source/notes/2017-05-02-rss_bridge.md b/source/notes/2017-05-02-rss_bridge.md index 16973e13..75ddd2ee 100644 --- a/source/notes/2017-05-02-rss_bridge.md +++ b/source/notes/2017-05-02-rss_bridge.md @@ -4,5 +4,7 @@ date: 2017-05-02T14:18:36 date_display: May 02, 2017 --- -Liste de site à intégrer au flux rss via https://github.com/RSS-Bridge/rss-bridge : +Liste de site à intégrer au flux rss via +[rss_bridge](https://github.com/RSS-Bridge/rss-bridge) : + - [cryptome.org](https://cryptome.org/) (bridge déja présent) diff --git a/source/notes/2017-06-19-cli-weather.md b/source/notes/2017-06-19-cli-weather.md new file mode 100644 index 00000000..ebf5962b --- /dev/null +++ b/source/notes/2017-06-19-cli-weather.md @@ -0,0 +1,20 @@ +--- +title: "cli-weather" +date: 2017-06-19T22:15:00 +date_display: Jun 19, 2017 +--- + +Patch pour supprimer la pub à propos de DarkSky.net dans [cli-weather](https://github.com/apizzimenti/cli-weather) : + +```sh +lib/weather/Output.js 2017-06-19 16:55:36.784344203 +0200 +@@ -352,7 +352,7 @@ + console.log(table.toString()); + this.warnings(); + // credit to DarkSky.net; if I hadn't seen a reddit thread with this api in it last year, this project wouldn't exist +- //console.log(chalk.dim("Powered by DarkSky.net")); => fuck-it ! I dont like this pub in my terminal :p ++ console.log(chalk.dim("Powered by DarkSky.net")); + console.log(); + + process.exit(0); +``` diff --git a/source/notes/2017-06-19-pulseaudio.md b/source/notes/2017-06-19-pulseaudio.md new file mode 100644 index 00000000..296705ec --- /dev/null +++ b/source/notes/2017-06-19-pulseaudio.md @@ -0,0 +1,77 @@ +--- +title: "pulseaudio" +date: 2017-06-19T22:15:00 +date_display: Jun 19, 2017 +--- + + +Sources : + +- [https://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Profiles/](https://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Profiles/) + +- [https://wiki.archlinux.org/index.php/PulseAudio/Examples#Having_both_speakers_and_headphones_plugged_in_and_switching_in_software_on-the-fly](https://wiki.archlinux.org/index.php/PulseAudio/Examples#Having_both_speakers_and_headphones_plugged_in_and_switching_in_software_on-the-fly) + +Connaître le nom de chaque entrées et sorties son du pc : + +```sh +-> ls /proc/asound/card*/codec* | xargs grep "\[\(Jack\|Fixed\|Both\)" + +/proc/asound/card0/codec#0: Pin Default 0x99430130: [Fixed] SPDIF Out at Int ATAPI +/proc/asound/card0/codec#0: Pin Default 0x01014010: [Jack] Line Out at Ext Rear +/proc/asound/card0/codec#0: Pin Default 0x01a19040: [Jack] Mic at Ext Rear +/proc/asound/card0/codec#0: Pin Default 0x02a19050: [Jack] Mic at Ext Front +/proc/asound/card0/codec#0: Pin Default 0x0181304f: [Jack] Line In at Ext Rear +/proc/asound/card0/codec#0: Pin Default 0x02214020: [Jack] HP Out at Ext Front +/proc/asound/card1/codec#0: Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI +/proc/asound/card1/codec#0: Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI +/proc/asound/card1/codec#0: Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI +/proc/asound/card1/codec#0: Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI +/proc/asound/card1/codec#0: Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI +/proc/asound/card1/codec#0: Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI +``` + +Une fois ceci fait, on modifie les fichiers (dans mon cas) /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf et /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf. + +Pour information j'ai une configuration un peu atypique car mon casque est branché à l'arrière alors que meshHaut parleurs à l'avant. Pourquoi ? Tout simplement que les appareils USB, type clé USB, branché à l'avant de ma tour ne sont pas bien détéctés alors qu'alors à l'arrière suelement un peu mieu... oui un peu (c'est un autre mystère à élucider et ca serait pour une prochaine fois ;) ) + +Du coup dans mon fichier analog-output-lineout.conf j'ai rajouter, avant l'include la ligne suivante: + +```sh +[Element Front] +switch = off +volume = off +``` + +Et dans le fichier analog-output-headphones.conf j'ai modifier selon les paramètres suivant : + +```sh +[Jack Line Out Phantom] +state.plugged = yes // j'ai juste remplacé no par yes ici ! +state.unplugged = unknow +required-any = any +``` + +Au passage on peut remarquer Line Out Phantom n'est pas dans la liste de nom des sorties du PC, c'est parcque j'ai jouée avec hdajackretask avant et ducoup des truc ont été modifié dans mon système... Encore un autre mystère à résoudre ! + +Et en bonus voici ma commande perso que je parramètre pour changer de sortie sur i3 (C'est la commande brut à copier coller dans votre terminal) : + +```sh +if [[ $(echo $(pacmd list | grep "active port") | cut -d" " -f3 | cut -d"<" -f2 | cut -d">" -f1) == "analog-output-lineout" ]]; then pacmd set-sink-port 0 analog-output-headphones; elif [[ $(echo $(pacmd list | grep "active port") | cut -d" " -f3 | cut -d"<" -f2 | cut -d">" -f1) == "analog-output-headphones" ]]; then pacmd set-sink-port 0 analog-output-lineout; fi +``` + +Ou en format lisible, avec variables en bonus : + +```sh +#/bin/sh + +headphones="analog-output-headphones" +lineout="analog-output-lineout" + +if [[ $(echo $(pacmd list | grep "active port") | cut -d" " -f3 | cut -d"<" -f2 | cut -d">" -f1) == $lineout ]] +then + pacmd set-sink-port 0 $headphones +elif [[ $(echo $(pacmd list | grep "active port") | cut -d" " -f3 | cut -d"<" -f2 | cut -d">" -f1) == $headphones ]] +then + pacmd set-sink-port 0 $lineout +fi +``` diff --git a/source/notes/index.md b/source/notes/index.md index b79e2122..69b23011 100644 --- a/source/notes/index.md +++ b/source/notes/index.md @@ -4,6 +4,5 @@ title: notes Je stocke ici tout un tas de note sur different truc, généralement ce sont des astuces qui, soit ne valent pas le coup, soit je n'ai pas encore pus prendre le temps, de rédiger un article à leurs propos. -Noté que les notes sont totalement variables, il est déconseillé de les mettre en bookmarks. -- generate notes_list here -- |