Compare commits

..

No commits in common. "d00a33ad43315d3d074eab42cfec5d9a5d5e80f3" and "a5d4852d2d2b573620f4e25ee9eaa9de76f4b603" have entirely different histories.

7 changed files with 171 additions and 182 deletions

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-11-03 mer. 10:59 --> <!-- 2021-10-25 lun. 14:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Bash Configuration</title> <title>Bash Configuration</title>
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
@ -563,7 +563,7 @@ Enable the keyring for applications run through the terminal
<h4 id="org2895615">Linkding</h4> <h4 id="org2895615">Linkding</h4>
<div class="outline-text-4" id="text-org2895615"> <div class="outline-text-4" id="text-org2895615">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">LINKDING_URL</span>=<span class="org-sh-quoted-exec">`pass nas/linkding_url`</span> <pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">LINKDING_URL</span>=<span class="org-string">"localhost:9090"</span>
<span class="org-builtin">export</span> <span class="org-variable-name">LINKDING_TOKEN</span>=<span class="org-sh-quoted-exec">`pass nas/linkding_token`</span> <span class="org-builtin">export</span> <span class="org-variable-name">LINKDING_TOKEN</span>=<span class="org-sh-quoted-exec">`pass nas/linkding_token`</span>
</pre> </pre>
</div> </div>
@ -678,7 +678,7 @@ Don&rsquo;t echo <code>^C</code> after <code>Ctrl+C</code> is pressed.
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-11-03 mer. 10:59</p> <p class="date">Created: 2021-10-25 lun. 14:33</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-11-03 mer. 10:59 --> <!-- 2021-10-25 lun. 14:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>My own specific binaries</title> <title>My own specific binaries</title>
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
@ -23,12 +23,13 @@
<div id="text-table-of-contents" role="doc-toc"> <div id="text-table-of-contents" role="doc-toc">
<ul> <ul>
<li><a href="#remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</a></li> <li><a href="#remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</a></li>
<li><a href="#orgd5ee6e7"><code>mount-dir</code> - Mount/Unmout directories</a></li>
<li><a href="#screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</a></li>
<li><a href="#print-rnice"><code>print-rnice</code> - Print on Rnice</a></li> <li><a href="#print-rnice"><code>print-rnice</code> - Print on Rnice</a></li>
<li><a href="#tmp14"><code>tmp14</code> - Mount/Umount tmp_14_days folder</a></li>
<li><a href="#nas"><code>nas</code> - Interact with the NAS</a></li>
<li><a href="#torrent-add"><code>torrent-add</code> - Download Torrent</a></li> <li><a href="#torrent-add"><code>torrent-add</code> - Download Torrent</a></li>
<li><a href="#dl-add"><code>dl-add</code> - Direct Download with Aria2</a></li> <li><a href="#dl-add"><code>dl-add</code> - Direct Download with Aria2</a></li>
<li><a href="#note-extract-fig"><code>note-extract-fig</code> - Extract Figure from note file</a></li> <li><a href="#note-extract-fig"><code>note-extract-fig</code> - Extract Figure from note file</a></li>
<li><a href="#screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</a></li>
<li><a href="#color-picker"><code>color-picker</code> - Pick color and copy to clipboard</a></li> <li><a href="#color-picker"><code>color-picker</code> - Pick color and copy to clipboard</a></li>
<li><a href="#readbib"><code>readbib</code> - Open Bibliography File</a></li> <li><a href="#readbib"><code>readbib</code> - Open Bibliography File</a></li>
<li><a href="#readnotes"><code>readnotes</code> - Open Note</a></li> <li><a href="#readnotes"><code>readnotes</code> - Open Note</a></li>
@ -40,19 +41,22 @@
<h2 id="remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</h2> <h2 id="remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</h2>
<div class="outline-text-2" id="text-remote-desktop"> <div class="outline-text-2" id="text-remote-desktop">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">computer</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'RNICE\nPCDEHAEZE\nPCNASS1'</span> | rofi -dmenu -no-custom -p <span class="org-string">'Computer:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>; <pre class="src src-bash"><span class="org-variable-name">computer</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'RNICE\nPCMEL1\nPCNASS1\nPCMEG01'</span> | dmenu -p <span class="org-string">'Computer:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
dunstify --replace=<span class="org-highlight-numbers-number">89891</span> <span class="org-string">'Rdesktop'</span> <span class="org-string">"Connection to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{computer}</span></span><span class="org-string">..."</span> dunstify --replace=<span class="org-highlight-numbers-number">89891</span> <span class="org-string">'Rdesktop'</span> <span class="org-string">"Connection to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{computer}</span></span><span class="org-string">..."</span>
<span class="org-keyword">case</span> $<span class="org-variable-name">computer</span><span class="org-keyword"> in</span> <span class="org-keyword">case</span> $<span class="org-variable-name">computer</span><span class="org-keyword"> in</span>
PCDEHAEZE) PCMEL1)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:PCDEHAEZE.esrf.fr &gt; /tmp/freerdp_pcdehaeze.log <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp; xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:PCMEL1.esrf.fr;
;;
PCMEG01)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:PCMEG01.esrf.fr;
;; ;;
PCNASS1) PCNASS1)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:PCNASS1.esrf.fr &gt; /tmp/freerdp_pcnass1.log <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp; xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:PCNASS1.esrf.fr;
;; ;;
RNICE) RNICE)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:rnice.esrf.fr &gt; /tmp/freerdp_rnice.log <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp; xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:rnice.esrf.fr;
;; ;;
*) *)
<span class="org-type">echo</span> <span class="org-string">"Not existing"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> <span class="org-type">echo</span> <span class="org-string">"Not existing"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
@ -64,91 +68,13 @@ dunstify --replace=<span class="org-highlight-numbers-number">89891</span> <span
</div> </div>
</div> </div>
<div id="outline-container-orgd5ee6e7" class="outline-2">
<h2 id="orgd5ee6e7"><code>mount-dir</code> - Mount/Unmout directories</h2>
<div class="outline-text-2" id="text-orgd5ee6e7">
<div class="org-src-container">
<pre class="src src-text"># &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt;
homelab:/srv/storage/ /home/thomas/mnt/NAS fuse.sshfs noauto,allow_other,default_permissions 0 0
</pre>
</div>
<div class="org-src-container">
<pre class="src src-text"># &lt;file system&gt; &lt;mount point&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt;
dehaeze@rnice:/tmp_14_days/ /home/thomas/mnt/ESRF fuse.sshfs noauto,allow_other,default_permissions 0 0
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">drive</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'ESRF\nNAS'</span> | rofi -dmenu -no-custom -p <span class="org-string">'Drive:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-keyword">if</span> <span class="org-type">grep</span> -qs <span class="org-string">"/home/thomas/mnt/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">drive</span></span><span class="org-string">"</span> /proc/mounts; <span class="org-keyword">then</span>
umount <span class="org-string">"/home/thomas/mnt/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">drive</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">drive</span></span><span class="org-string"> &#62003;"</span> <span class="org-string">'Successfully unmounted'</span> || <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">drive</span></span><span class="org-string"> &#62003;"</span> <span class="org-string">'Error while unmounted'</span>
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"It's not mounted."</span>
mount <span class="org-string">"/home/thomas/mnt/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">drive</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">drive</span></span><span class="org-string"> &#62003;"</span> <span class="org-string">'Successfully mounted'</span> || <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">drive</span></span><span class="org-string"> &#62003;"</span> <span class="org-string">'Error while mounted'</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-screen-select" class="outline-2">
<h2 id="screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</h2>
<div class="outline-text-2" id="text-screen-select">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">option</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Work\nXPS\nHome"</span> | rofi -i -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-function-name">after_screen_change</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Fix background if screen size/arangement has changed.</span>
setbg
<span class="org-comment-delimiter"># </span><span class="org-comment">Kill polybar</span>
killall -q polybar
<span class="org-comment-delimiter"># </span><span class="org-comment">Wait until the processes have been shut down</span>
<span class="org-keyword">while</span> <span class="org-type">pgrep</span> -u $<span class="org-variable-name">UID</span> -x polybar &gt;/dev/null; <span class="org-keyword">do</span> <span class="org-type">sleep</span> <span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">done</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Launch bars</span>
polybar top &amp;
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">option</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
<span class="org-string">"Work"</span>)
xrandr --output eDP1 --off --output DP1 --off --output DP2 --off --output DP2-1 --off --output VIRTUAL1 --off --output DP2-2 --primary --mode 2560x1440 --pos 0x0 --rotate normal &amp;&amp; <span class="org-sh-escaped-newline">\</span>
after_screen_change
;;
<span class="org-string">"XPS"</span>)
xrandr --output DP1 --off --output DP2 --off --output DP2-1 --off --output VIRTUAL1 --off --output DP2-2 --off --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal &amp;&amp; <span class="org-sh-escaped-newline">\</span>
after_screen_change
;;
<span class="org-string">"Home"</span>)
xrandr --output eDP1 --off --output DP1 --off --output DP2 --off --output DP2-2 --off --output VIRTUAL1 --off --output DP2-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal &amp;&amp; <span class="org-sh-escaped-newline">\</span>
after_screen_change
;;
*)
<span class="org-type">echo</span> <span class="org-string">"== ! missing or invalid argument ! =="</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">2</span>
<span class="org-keyword">esac</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-print-rnice" class="outline-2"> <div id="outline-container-print-rnice" class="outline-2">
<h2 id="print-rnice"><code>print-rnice</code> - Print on Rnice</h2> <h2 id="print-rnice"><code>print-rnice</code> - Print on Rnice</h2>
<div class="outline-text-2" id="text-print-rnice"> <div class="outline-text-2" id="text-print-rnice">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">nbpage</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'1\n2\n4'</span> | rofi -dmenu -no-custom -p <span class="org-string">'Number of pages per sheet'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>; <pre class="src src-bash"><span class="org-variable-name">nbpage</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'1\n2\n4'</span> | dmenu -p <span class="org-string">'Number of pages per sheet'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-variable-name">sides</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'one-sided\ntwo-sided-long-edge\ntwo-sided-short-edge'</span> | rofi -dmenu -no-custom -p <span class="org-string">'Two Sided:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>; <span class="org-variable-name">sides</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'one-sided\ntwo-sided-long-edge\ntwo-sided-short-edge'</span> | dmenu -p <span class="org-string">'Two Sided:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-variable-name">media</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'A4\nA3'</span> | rofi -dmenu -no-custom -p <span class="org-string">'Size:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>; <span class="org-variable-name">media</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'A4\nA3'</span> | dmenu -p <span class="org-string">'Size:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-comment-delimiter"># </span><span class="org-comment">First copy the file to Rnice</span> <span class="org-comment-delimiter"># </span><span class="org-comment">First copy the file to Rnice</span>
<span class="org-keyword">if</span> sshpass -p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> esrf.fr/dehaeze | sed -n 1p)</span></span><span class="org-string">"</span> scp $<span class="org-highlight-numbers-number">1</span> dehaeze@rnice:/home/esrf/dehaeze/Downloads/; <span class="org-keyword">then</span> <span class="org-keyword">if</span> sshpass -p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> esrf.fr/dehaeze | sed -n 1p)</span></span><span class="org-string">"</span> scp $<span class="org-highlight-numbers-number">1</span> dehaeze@rnice:/home/esrf/dehaeze/Downloads/; <span class="org-keyword">then</span>
@ -163,6 +89,59 @@ dehaeze@rnice:/tmp_14_days/ /home/thomas/mnt/ESRF fuse.sshfs noauto,allow_ot
</div> </div>
</div> </div>
<div id="outline-container-tmp14" class="outline-2">
<h2 id="tmp14"><code>tmp14</code> - Mount/Umount tmp_14_days folder</h2>
<div class="outline-text-2" id="text-tmp14">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"mount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> sshfs -o allow_other,default_permissions -p <span class="org-highlight-numbers-number">5022</span> dehaeze@firewall.esrf.fr:/tmp_14_days/ ~/mnt/ESRF; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'ESRF TMP &#62003;'</span> <span class="org-string">'Successfully mounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'ESRF TMP &#62003;'</span> <span class="org-string">'Error while mounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"umount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> umount /home/thomas/mnt/ESRF/; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'ESRF TMP &#62003;'</span> <span class="org-string">'Successfully unmounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'ESRF TMP &#62003;'</span> <span class="org-string">'Error while unmounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-nas" class="outline-2">
<h2 id="nas"><code>nas</code> - Interact with the NAS</h2>
<div class="outline-text-2" id="text-nas">
<p>
As an alternative, <code>sshfs</code> can be used:
</p>
<div class="org-src-container">
<pre class="src src-bash">sshfs -o allow_other,default_permissions nas:/Data ~/mnt/NAS
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"mount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> sshfs -o allow_other,default_permissions homelab:/srv/storage/ ~/mnt/NAS; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS &#62003;'</span> <span class="org-string">'Successfully mounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'NAS &#62003;'</span> <span class="org-string">'Error while mounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"umount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> umount ~/mnt/NAS/; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS &#62003;'</span> <span class="org-string">'Successfully unmounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'NAS &#62003;'</span> <span class="org-string">'Error while unmounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-torrent-add" class="outline-2"> <div id="outline-container-torrent-add" class="outline-2">
<h2 id="torrent-add"><code>torrent-add</code> - Download Torrent</h2> <h2 id="torrent-add"><code>torrent-add</code> - Download Torrent</h2>
<div class="outline-text-2" id="text-torrent-add"> <div class="outline-text-2" id="text-torrent-add">
@ -205,6 +184,50 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
</div> </div>
</div> </div>
<div id="outline-container-screen-select" class="outline-2">
<h2 id="screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</h2>
<div class="outline-text-2" id="text-screen-select">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">option</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Work\nXPS\nHome"</span> | rofi -i -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-function-name">after_screen_change</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Fix background if screen size/arangement has changed.</span>
setbg
<span class="org-comment-delimiter"># </span><span class="org-comment">Kill polybar</span>
killall -q polybar
<span class="org-comment-delimiter"># </span><span class="org-comment">Wait until the processes have been shut down</span>
<span class="org-keyword">while</span> <span class="org-type">pgrep</span> -u $<span class="org-variable-name">UID</span> -x polybar &gt;/dev/null; <span class="org-keyword">do</span> <span class="org-type">sleep</span> <span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">done</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Launch bars</span>
polybar top &amp;
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">option</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
<span class="org-string">"Work"</span>)
xrandr --output eDP1 --off --output DP1 --off --output DP2 --off --output DP2-1 --off --output VIRTUAL1 --off --output DP2-2 --primary --mode 2560x1440 --pos 0x0 --rotate normal &amp;&amp; <span class="org-sh-escaped-newline">\</span>
after_screen_change
;;
<span class="org-string">"XPS"</span>)
xrandr --output DP1 --off --output DP2 --off --output DP2-1 --off --output VIRTUAL1 --off --output DP2-2 --off --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal &amp;&amp; <span class="org-sh-escaped-newline">\</span>
after_screen_change
;;
<span class="org-string">"Home"</span>)
xrandr --output eDP1 --off --output DP1 --off --output DP2 --off --output DP2-2 --off --output VIRTUAL1 --off --output DP2-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal &amp;&amp; <span class="org-sh-escaped-newline">\</span>
after_screen_change
;;
*)
<span class="org-type">echo</span> <span class="org-string">"== ! missing or invalid argument ! =="</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">2</span>
<span class="org-keyword">esac</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-color-picker" class="outline-2"> <div id="outline-container-color-picker" class="outline-2">
<h2 id="color-picker"><code>color-picker</code> - Pick color and copy to clipboard</h2> <h2 id="color-picker"><code>color-picker</code> - Pick color and copy to clipboard</h2>
<div class="outline-text-2" id="text-color-picker"> <div class="outline-text-2" id="text-color-picker">
@ -245,7 +268,7 @@ List all <code>pdf</code> files and open selected one with zathura.
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-11-03 mer. 10:59</p> <p class="date">Created: 2021-10-25 lun. 14:33</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-11-03 mer. 10:59 --> <!-- 2021-10-25 lun. 14:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Home Server</title> <title>Home Server</title>
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
@ -84,7 +84,6 @@
<li><a href="#orgcdbaa2f"><code>config.yml</code></a></li> <li><a href="#orgcdbaa2f"><code>config.yml</code></a></li>
</ul> </ul>
</li> </li>
<li><a href="#org09bd284"><code>linkding</code> - Bookmark manager (link)</a></li>
<li><a href="#org69410ad"><code>snapraid</code> - Manage local backup with parity disk (link)</a> <li><a href="#org69410ad"><code>snapraid</code> - Manage local backup with parity disk (link)</a>
<ul> <ul>
<li><a href="#org268eb95"><code>snapraid.conf</code></a></li> <li><a href="#org268eb95"><code>snapraid.conf</code></a></li>
@ -99,12 +98,12 @@
<li><a href="#org1932d9e"><code>wikijs</code> - Wiki App (link)</a></li> <li><a href="#org1932d9e"><code>wikijs</code> - Wiki App (link)</a></li>
<li><a href="#org41419ce"><code>research</code> - Research Pages (link)</a> <li><a href="#org41419ce"><code>research</code> - Research Pages (link)</a>
<ul> <ul>
<li><a href="#orgfc0a576"><code>Caddyfile</code></a></li> <li><a href="#org842c7ec"><code>Caddyfile</code></a></li>
</ul> </ul>
</li> </li>
<li><a href="#org6319523"><code>dotfiles</code> - Dotfiles (link)</a> <li><a href="#org6319523"><code>dotfiles</code> - Dotfiles (link)</a>
<ul> <ul>
<li><a href="#org7233c2e"><code>Caddyfile</code></a></li> <li><a href="#orgfc0a576"><code>Caddyfile</code></a></li>
</ul> </ul>
</li> </li>
<li><a href="#org56db687"><code>hugo</code> - Wiki + Blog (link)</a></li> <li><a href="#org56db687"><code>hugo</code> - Wiki + Blog (link)</a></li>
@ -1321,35 +1320,6 @@ In order to have notifications on Linux desktop use <a href="https://github.com/
</div> </div>
</div> </div>
<div id="outline-container-org09bd284" class="outline-3">
<h3 id="org09bd284"><code>linkding</code> - Bookmark manager (<a href="https://github.com/sissbruecker/linkding">link</a>)</h3>
<div class="outline-text-3" id="text-org09bd284">
<div class="org-src-container">
<pre class="src src-yaml"> <span class="org-variable-name">linkding</span>:
<span class="org-variable-name">container_name</span>: linkding
<span class="org-variable-name">image</span>: sissbruecker/linkding:latest
<span class="org-variable-name">restart</span>: unless-stopped
<span class="org-variable-name">networks</span>:
- t2_proxy
<span class="org-variable-name">volumes</span>:
- $CONFIGDIR/linkding:/etc/linkding/data
<span class="org-variable-name">environment</span>:
- TZ=$TZ
- PUID=$PUID
- PGID=$PGID
<span class="org-variable-name">labels</span>:
- <span class="org-string">"traefik.enable=true"</span>
- <span class="org-string">"traefik.http.routers.linkding-rtr.entrypoints=https"</span>
- <span class="org-string">"traefik.http.routers.linkding-rtr.rule=Host(`bm.$DOMAINNAME`)"</span>
- <span class="org-string">"traefik.http.routers.linkding-rtr.tls=true"</span>
- <span class="org-string">"traefik.http.routers.linkding-rtr.service=linkding-svc"</span>
- <span class="org-string">"traefik.http.services.linkding-svc.loadbalancer.server.port=9090"</span>
<span class="org-variable-name">logging</span>: <span class="org-function-name">*default-logging</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org69410ad" class="outline-3"> <div id="outline-container-org69410ad" class="outline-3">
<h3 id="org69410ad"><code>snapraid</code> - Manage local backup with parity disk (<a href="https://github.com/amadvance/snapraid">link</a>)</h3> <h3 id="org69410ad"><code>snapraid</code> - Manage local backup with parity disk (<a href="https://github.com/amadvance/snapraid">link</a>)</h3>
<div class="outline-text-3" id="text-org69410ad"> <div class="outline-text-3" id="text-org69410ad">
@ -1718,9 +1688,9 @@ exclude .AppleDB
</div> </div>
</div> </div>
<div id="outline-container-orgfc0a576" class="outline-4"> <div id="outline-container-org842c7ec" class="outline-4">
<h4 id="orgfc0a576"><code>Caddyfile</code></h4> <h4 id="org842c7ec"><code>Caddyfile</code></h4>
<div class="outline-text-4" id="text-orgfc0a576"> <div class="outline-text-4" id="text-org842c7ec">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">0.0.0.0:<span class="org-highlight-numbers-number">2015</span> { <pre class="src src-conf">0.0.0.0:<span class="org-highlight-numbers-number">2015</span> {
root /srv/www/ root /srv/www/
@ -1769,9 +1739,9 @@ exclude .AppleDB
</div> </div>
</div> </div>
<div id="outline-container-org7233c2e" class="outline-4"> <div id="outline-container-orgfc0a576" class="outline-4">
<h4 id="org7233c2e"><code>Caddyfile</code></h4> <h4 id="orgfc0a576"><code>Caddyfile</code></h4>
<div class="outline-text-4" id="text-org7233c2e"> <div class="outline-text-4" id="text-orgfc0a576">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">0.0.0.0:<span class="org-highlight-numbers-number">2015</span> { <pre class="src src-conf">0.0.0.0:<span class="org-highlight-numbers-number">2015</span> {
root /srv/www/docs/ root /srv/www/docs/
@ -1966,12 +1936,12 @@ exclude .AppleDB
- PUID=$PUID - PUID=$PUID
- PGID=$PGID - PGID=$PGID
- TZ=$TZ - TZ=$TZ
<span class="org-comment-delimiter"># </span><span class="org-comment">group_add:</span> <span class="org-variable-name">group-add</span>:
<span class="org-comment-delimiter"># </span><span class="org-comment">- 122</span> - 109
<span class="org-comment-delimiter"># </span><span class="org-comment">devices:</span> <span class="org-variable-name">devices</span>:
<span class="org-comment-delimiter"># </span><span class="org-comment"># VAAPI Devices</span> <span class="org-comment-delimiter"># </span><span class="org-comment">VAAPI Devices</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- /dev/dri/renderD128:/dev/dri/renderD128</span> - /dev/dri/renderD128:/dev/dri/renderD128
<span class="org-comment-delimiter"># </span><span class="org-comment">- /dev/dri/card0:/dev/dri/card0</span> - /dev/dri/card0:/dev/dri/card0
<span class="org-variable-name">ports</span>: <span class="org-variable-name">ports</span>:
- 8096:8096 - 8096:8096
<span class="org-variable-name">labels</span>: <span class="org-variable-name">labels</span>:
@ -2582,7 +2552,7 @@ Type <code>crontab -e</code> and add this line:
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-11-03 mer. 10:59</p> <p class="date">Created: 2021-10-25 lun. 14:33</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-11-03 mer. 10:59 --> <!-- 2021-10-25 lun. 14:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Qutebrowser Configuration</title> <title>Qutebrowser Configuration</title>
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
@ -1044,7 +1044,7 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-11-03 mer. 10:59</p> <p class="date">Created: 2021-10-25 lun. 14:33</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-11-03 mer. 10:59 --> <!-- 2021-06-20 dim. 14:21 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Ranger</title> <title>Ranger</title>
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
@ -16,13 +16,13 @@
<a accesskey="h" href="./index.html"> UP </a> <a accesskey="h" href="./index.html"> UP </a>
| |
<a accesskey="H" href="./index.html"> HOME </a> <a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content" class="content"> </div><div id="content">
<h1 class="title">Ranger</h1> <h1 class="title">Ranger</h1>
<div id="table-of-contents" role="doc-toc"> <div id="table-of-contents">
<h2>Table of Contents</h2> <h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc"> <div id="text-table-of-contents">
<ul> <ul>
<li><a href="#org1462e63">Documentation</a></li> <li><a href="#org55987ce">Documentation</a></li>
<li><a href="#org986b109">Config</a> <li><a href="#org986b109">Config</a>
<ul> <ul>
<li><a href="#orgd97cb82">Options</a></li> <li><a href="#orgd97cb82">Options</a></li>
@ -39,7 +39,7 @@
</li> </li>
<li><a href="#orgd57ea4e">Define keys for the browser</a> <li><a href="#orgd57ea4e">Define keys for the browser</a>
<ul> <ul>
<li><a href="#orgef5af30">Basic</a></li> <li><a href="#orgf964ebf">Basic</a></li>
<li><a href="#org1c6f91a">Open Shell in current directory</a></li> <li><a href="#org1c6f91a">Open Shell in current directory</a></li>
<li><a href="#orgdf72b75">Open With</a></li> <li><a href="#orgdf72b75">Open With</a></li>
<li><a href="#org8e148cf">Filter</a></li> <li><a href="#org8e148cf">Filter</a></li>
@ -63,7 +63,7 @@
</li> </li>
<li><a href="#org7e7a4ec">Define keys for the console</a> <li><a href="#org7e7a4ec">Define keys for the console</a>
<ul> <ul>
<li><a href="#org253669c">Basic</a></li> <li><a href="#orgef5af30">Basic</a></li>
<li><a href="#orga9f3972">Move around</a></li> <li><a href="#orga9f3972">Move around</a></li>
<li><a href="#org6265874">Line Editing</a></li> <li><a href="#org6265874">Line Editing</a></li>
</ul> </ul>
@ -72,7 +72,7 @@
</li> </li>
<li><a href="#rifle">Rifle</a> <li><a href="#rifle">Rifle</a>
<ul> <ul>
<li><a href="#org10a01f1">Documentation</a></li> <li><a href="#org1462e63">Documentation</a></li>
<li><a href="#org64e62ab">Text Files</a></li> <li><a href="#org64e62ab">Text Files</a></li>
<li><a href="#org72831a4">PDF, Epub and jdvu</a></li> <li><a href="#org72831a4">PDF, Epub and jdvu</a></li>
<li><a href="#org2c35566">Archives</a></li> <li><a href="#org2c35566">Archives</a></li>
@ -94,9 +94,9 @@
</div> </div>
</div> </div>
<div id="outline-container-org1462e63" class="outline-2"> <div id="outline-container-org55987ce" class="outline-2">
<h2 id="org1462e63">Documentation</h2> <h2 id="org55987ce">Documentation</h2>
<div class="outline-text-2" id="text-org1462e63"> <div class="outline-text-2" id="text-org55987ce">
<blockquote> <blockquote>
<p> <p>
%f the highlighted file %f the highlighted file
@ -378,9 +378,9 @@ Backup to NAS:
<div class="outline-text-4" id="text-org7681c16"> <div class="outline-text-4" id="text-org7681c16">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">2</span> atool -x <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; tmux select-pane -U tmux split -v -l <span class="org-highlight-numbers-number">2</span> atool -x $<span class="org-highlight-numbers-number">1</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
atool -x <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> atool -x $<span class="org-highlight-numbers-number">1</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
@ -392,9 +392,9 @@ Backup to NAS:
<div class="outline-text-4" id="text-orgd110a48"> <div class="outline-text-4" id="text-orgd110a48">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">2</span> apack <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{1%.*}</span></span><span class="org-string">.zip"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; tmux select-pane -U tmux split -v -l <span class="org-highlight-numbers-number">2</span> apack $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">1</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>.zip $<span class="org-highlight-numbers-number">1</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
apack <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{1%.*}</span></span><span class="org-string">.zip"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> apack $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">1</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>.zip $<span class="org-highlight-numbers-number">1</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
@ -406,7 +406,7 @@ Backup to NAS:
<h4 id="org4e182ba">Copy File Content</h4> <h4 id="org4e182ba">Copy File Content</h4>
<div class="outline-text-4" id="text-org4e182ba"> <div class="outline-text-4" id="text-org4e182ba">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash">xclip -sel c &lt; <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; dunstify <span class="org-string">"Ranger"</span> <span class="org-string">"Copied to clipboard"</span> <pre class="src src-bash">xclip -sel c &lt; $<span class="org-highlight-numbers-number">1</span> &amp;&amp; dunstify <span class="org-string">"Ranger"</span> <span class="org-string">"Copied to clipboard"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -455,9 +455,9 @@ Backup to NAS:
<h3 id="orgd57ea4e">Define keys for the browser</h3> <h3 id="orgd57ea4e">Define keys for the browser</h3>
<div class="outline-text-3" id="text-orgd57ea4e"> <div class="outline-text-3" id="text-orgd57ea4e">
</div> </div>
<div id="outline-container-orgef5af30" class="outline-4"> <div id="outline-container-orgf964ebf" class="outline-4">
<h4 id="orgef5af30">Basic</h4> <h4 id="orgf964ebf">Basic</h4>
<div class="outline-text-4" id="text-orgef5af30"> <div class="outline-text-4" id="text-orgf964ebf">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map Q quit! <pre class="src src-conf">map Q quit!
map q eval fm.execute_console(<span class="org-string">"shell tmux detach"</span>) if <span class="org-string">'TMUX'</span> in os.environ.keys() else fm.execute_console(<span class="org-string">"quit"</span>) map q eval fm.execute_console(<span class="org-string">"shell tmux detach"</span>) if <span class="org-string">'TMUX'</span> in os.environ.keys() else fm.execute_console(<span class="org-string">"quit"</span>)
@ -770,9 +770,9 @@ map <span class="org-string">'&lt;any&gt; enter_bookmark %any</span>
<h3 id="org7e7a4ec">Define keys for the console</h3> <h3 id="org7e7a4ec">Define keys for the console</h3>
<div class="outline-text-3" id="text-org7e7a4ec"> <div class="outline-text-3" id="text-org7e7a4ec">
</div> </div>
<div id="outline-container-org253669c" class="outline-4"> <div id="outline-container-orgef5af30" class="outline-4">
<h4 id="org253669c">Basic</h4> <h4 id="orgef5af30">Basic</h4>
<div class="outline-text-4" id="text-org253669c"> <div class="outline-text-4" id="text-orgef5af30">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">cmap &lt;tab&gt; eval fm.ui.console.tab() <pre class="src src-conf">cmap &lt;tab&gt; eval fm.ui.console.tab()
cmap &lt;s-tab&gt; eval fm.ui.console.tab(-1) cmap &lt;s-tab&gt; eval fm.ui.console.tab(-1)
@ -825,9 +825,9 @@ copycmap &lt;end&gt; &lt;C-e&gt;
<div class="outline-text-2" id="text-rifle"> <div class="outline-text-2" id="text-rifle">
</div> </div>
<div id="outline-container-org10a01f1" class="outline-3"> <div id="outline-container-org1462e63" class="outline-3">
<h3 id="org10a01f1">Documentation</h3> <h3 id="org1462e63">Documentation</h3>
<div class="outline-text-3" id="text-org10a01f1"> <div class="outline-text-3" id="text-org1462e63">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">This is the configuration file of "rifle", ranger's file executor/opener.</span> <pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">This is the configuration file of "rifle", ranger's file executor/opener.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Each line consists of conditions and a command. For each line the conditions</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Each line consists of conditions and a command. For each line the conditions</span>
@ -1134,7 +1134,7 @@ Org mode files
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-11-03 mer. 10:59</p> <p class="date">Created: 2021-06-20 dim. 14:21</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-11-03 mer. 10:59 --> <!-- 2021-10-25 lun. 14:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Windows Config and Install</title> <title>Windows Config and Install</title>
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
@ -26,10 +26,10 @@
<li><a href="#org0143940">Install Windows10 PRO</a></li> <li><a href="#org0143940">Install Windows10 PRO</a></li>
<li><a href="#org0cc05f7">Install Software using Chocolatey</a></li> <li><a href="#org0cc05f7">Install Software using Chocolatey</a></li>
<li><a href="#org0a94edb">Debloat windows10</a></li> <li><a href="#org0a94edb">Debloat windows10</a></li>
<li><a href="#org1c09272">SSHFS</a> <li><a href="#org9192414">SSHFS</a>
<ul> <ul>
<li><a href="#org46e6091">SSH Setup</a></li> <li><a href="#org46e6091">SSH Setup</a></li>
<li><a href="#org9192414">SSHFS</a></li> <li><a href="#org432cd75">SSHFS</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orgb8446e0">Software Setup</a> <li><a href="#orgb8446e0">Software Setup</a>
@ -80,7 +80,7 @@ First install Chocolatey using a PowerShell as administrator:
Then, install all required software using one command: Then, install all required software using one command:
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash">choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim imageglass <pre class="src src-bash">choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim
</pre> </pre>
</div> </div>
</div> </div>
@ -103,9 +103,9 @@ Run a PowerShell with administrative rights and run:
</div> </div>
</div> </div>
<div id="outline-container-org1c09272" class="outline-2"> <div id="outline-container-org9192414" class="outline-2">
<h2 id="org1c09272">SSHFS</h2> <h2 id="org9192414">SSHFS</h2>
<div class="outline-text-2" id="text-org1c09272"> <div class="outline-text-2" id="text-org9192414">
</div> </div>
<div id="outline-container-org46e6091" class="outline-3"> <div id="outline-container-org46e6091" class="outline-3">
<h3 id="org46e6091">SSH Setup</h3> <h3 id="org46e6091">SSH Setup</h3>
@ -159,9 +159,9 @@ Finally, it should be possible to ssh to the server.
</div> </div>
</div> </div>
<div id="outline-container-org9192414" class="outline-3"> <div id="outline-container-org432cd75" class="outline-3">
<h3 id="org9192414">SSHFS</h3> <h3 id="org432cd75">SSHFS</h3>
<div class="outline-text-3" id="text-org9192414"> <div class="outline-text-3" id="text-org432cd75">
<p> <p>
Install <a href="https://github.com/billziss-gh/sshfs-win">sshfs-win</a>. Install <a href="https://github.com/billziss-gh/sshfs-win">sshfs-win</a>.
</p> </p>
@ -226,7 +226,7 @@ Then, Syncthing can be accessed with: <a href="http://localhost:8384/">http://lo
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-11-03 mer. 10:59</p> <p class="date">Created: 2021-10-25 lun. 14:33</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -542,10 +542,6 @@ access_control:
- ["group:admins"] - ["group:admins"]
- ["group:friends"] - ["group:friends"]
- ["group:family"] - ["group:family"]
- domain: qobuz.tdehaeze.xyz
policy: bypass
resources:
- "^/download([/?].*)?$"
- domain: qobuz.tdehaeze.xyz - domain: qobuz.tdehaeze.xyz
policy: one_factor policy: one_factor
subject: subject: