diff --git a/cheatsheet/index.html b/cheatsheet/index.html index 99cdf59..537eec1 100644 --- a/cheatsheet/index.html +++ b/cheatsheet/index.html @@ -75,7 +75,7 @@

Linux

-

+

Tips and tricks for GNU/Linux and Unix

linux @@ -90,10 +90,12 @@

Python

-

+

Tips and useful libraries for python developers

python +programming +
@@ -103,8 +105,10 @@

Raspberry Pi

-

+

Tools, links and configuration for your Raspberry Pi

+rpi +
diff --git a/cheatsheet/index.xml b/cheatsheet/index.xml index 2612387..1b29eba 100644 --- a/cheatsheet/index.xml +++ b/cheatsheet/index.xml @@ -26,8 +26,8 @@ Mon, 01 Jan 0001 00:00:00 +0000 /cheatsheet/linux/ - Black screen and LightDM doesn’t unlock Add this to your /etc/lightdm/lightdm.conf file: -[LightDM] logind-check-graphical=true + Black screen and LightDM doesn’t unlock Add this to your /etc/lightdm/lightdm.conf file: +[LightDM] logind-check-graphical=true Edit previous commands fc is a shell builtin to list and edit previous commands in an editor. In addition to editing a single line (which you can also do with C-x C-e), it also allows you to edit and run several lines at the same time. diff --git a/cheatsheet/linux/index.html b/cheatsheet/linux/index.html index be7e439..fba391e 100644 --- a/cheatsheet/linux/index.html +++ b/cheatsheet/linux/index.html @@ -63,6 +63,52 @@ logind-check-graphical=true +

Edit previous commands

+ +

fc is a shell builtin to list and edit previous commands in an editor. +In addition to editing a single line (which you can also do with C-x C-e), it also allows you to edit and run several lines at the same time. +You use it like this:

+ +

List previous commands

+ +
$ fc -l
+10259  nvim deploy.sh
+10260* cd ..
+10261* nvim content/cheatsheet/linux.md
+10262  cd
+
+ +

List commands with date (in zsh)

+ +
$ fc -ld
+10260* 19:38  cd ..
+10261* 19:38  nvim content/cheatsheet/linux.md
+10262  19:40  cd
+10263  19:40  fc -l
+
+ +

You can add the date too:

+ +
$ fc -fld
+10262  1/10/2019 19:40  cd
+10263  1/10/2019 19:40  fc -l
+10264  1/10/2019 19:40  fc -ld
+
+ +

You can edit a range of commands

+ +
$ fc 10262 10264
+
+ +

The range can be relative to the current position, so the previous command is equivalent to:

+ +
$ fc -3 -1
+
+ +

If you save and exit, all commands are executed as a script, and it will be added to your history.

+ +

Source: https://shapeshed.com/unix-fc/

+ @@ -72,6 +118,7 @@ logind-check-graphical=true diff --git a/css/main.css b/css/main.css index b8d7d82..7c2afb6 100755 --- a/css/main.css +++ b/css/main.css @@ -74,7 +74,14 @@ body { @media (max-width: 700px) { #sidebar { - display: none; + display: inline-block; + float: left; + } + #sidebar > * { + display: none; + } + #sidebar > .toc { + display: block; } } @media (min-width: 700px) { @@ -236,8 +243,13 @@ body { } .toc { - position: fixed; - height: 100%; + padding: 1em; + position: fixed; + border-color: black; + border: 1px solid; + background-color: white; + height: max-content; + z-index: 1; } } diff --git a/index.xml b/index.xml index 7613aa3..b19897a 100644 --- a/index.xml +++ b/index.xml @@ -162,8 +162,8 @@ a WSGI application with the name <em>application</em>. Hence, wsgi:a Mon, 01 Jan 0001 00:00:00 +0000 /cheatsheet/linux/ - Black screen and LightDM doesn&rsquo;t unlock Add this to your /etc/lightdm/lightdm.conf file: -[LightDM] logind-check-graphical=true + Black screen and LightDM doesn&rsquo;t unlock Add this to your /etc/lightdm/lightdm.conf file: +[LightDM] logind-check-graphical=true Edit previous commands fc is a shell builtin to list and edit previous commands in an editor. In addition to editing a single line (which you can also do with C-x C-e), it also allows you to edit and run several lines at the same time.
diff --git a/sitemap.xml b/sitemap.xml index 7534acc..34e1b27 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -202,6 +202,11 @@ 0 + + /tags/programming/ + 0 + + /tags/proxy/ 2014-10-09T10:00:00+00:00 @@ -220,6 +225,11 @@ 0 + + /tags/rpi/ + 0 + + /tags/ruby/ 2013-08-22T14:14:22+00:00 diff --git a/tags/arch/index.html b/tags/arch/index.html index 324a471..3acad75 100644 --- a/tags/arch/index.html +++ b/tags/arch/index.html @@ -56,7 +56,7 @@

Linux

-

+

Tips and tricks for GNU/Linux and Unix

linux diff --git a/tags/arch/index.xml b/tags/arch/index.xml index 72560a1..c169a52 100644 --- a/tags/arch/index.xml +++ b/tags/arch/index.xml @@ -17,8 +17,8 @@ Mon, 01 Jan 0001 00:00:00 +0000 /cheatsheet/linux/ - Black screen and LightDM doesn&rsquo;t unlock Add this to your /etc/lightdm/lightdm.conf file: -[LightDM] logind-check-graphical=true + Black screen and LightDM doesn&rsquo;t unlock Add this to your /etc/lightdm/lightdm.conf file: +[LightDM] logind-check-graphical=true Edit previous commands fc is a shell builtin to list and edit previous commands in an editor. In addition to editing a single line (which you can also do with C-x C-e), it also allows you to edit and run several lines at the same time. diff --git a/tags/index.html b/tags/index.html index 701e81f..7375b2b 100644 --- a/tags/index.html +++ b/tags/index.html @@ -181,6 +181,13 @@ +programming (1) + + + + + + proxy (1) @@ -195,6 +202,13 @@ +rpi (1) + + + + + + ruby (1) diff --git a/tags/index.xml b/tags/index.xml index 35e80b9..3dc51b9 100644 --- a/tags/index.xml +++ b/tags/index.xml @@ -155,6 +155,15 @@ + + programming + /tags/programming/ + Mon, 01 Jan 0001 00:00:00 +0000 + + /tags/programming/ + + + proxy /tags/proxy/ @@ -182,6 +191,15 @@ + + rpi + /tags/rpi/ + Mon, 01 Jan 0001 00:00:00 +0000 + + /tags/rpi/ + + + ruby /tags/ruby/ diff --git a/tags/linux/index.html b/tags/linux/index.html index 59674d0..96c2255 100644 --- a/tags/linux/index.html +++ b/tags/linux/index.html @@ -56,7 +56,7 @@

Linux

-

+

Tips and tricks for GNU/Linux and Unix

linux diff --git a/tags/linux/index.xml b/tags/linux/index.xml index 5835f2b..cb931d2 100644 --- a/tags/linux/index.xml +++ b/tags/linux/index.xml @@ -17,8 +17,8 @@ Mon, 01 Jan 0001 00:00:00 +0000 /cheatsheet/linux/ - Black screen and LightDM doesn&rsquo;t unlock Add this to your /etc/lightdm/lightdm.conf file: -[LightDM] logind-check-graphical=true + Black screen and LightDM doesn&rsquo;t unlock Add this to your /etc/lightdm/lightdm.conf file: +[LightDM] logind-check-graphical=true Edit previous commands fc is a shell builtin to list and edit previous commands in an editor. In addition to editing a single line (which you can also do with C-x C-e), it also allows you to edit and run several lines at the same time. diff --git a/tags/programming/index.html b/tags/programming/index.html new file mode 100644 index 0000000..f061b35 --- /dev/null +++ b/tags/programming/index.html @@ -0,0 +1,200 @@ + + + + + + Balkian's site - programming + + + + + + + + + + + + + + +
+
+
+ + + + +
+
+ +

Python

+

Tips and useful libraries for python developers

+ +python + +programming + + +
+
+ + + + + + + +
+ + + + +
+
+
+
+

+ J. Fernando Sánchez Rada | balkian +

+
+
    +
  • +
  • +
  • +
  • +
  • +
+

+ Creative Commons A-SA-NC +

+
+
+ + + + diff --git a/tags/programming/index.xml b/tags/programming/index.xml new file mode 100644 index 0000000..cb4f556 --- /dev/null +++ b/tags/programming/index.xml @@ -0,0 +1,26 @@ + + + + programming on Balkian's site + /tags/programming/ + Recent content in programming on Balkian's site + Hugo -- gohugo.io + en-us + This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + + + + + + Python + /cheatsheet/python/ + Mon, 01 Jan 0001 00:00:00 +0000 + + /cheatsheet/python/ + Interesting libraries TQDM From tqdm&rsquo;s github repository: + tqdm means &ldquo;progress&rdquo; in Arabic (taqadum, تقدّم) and an abbreviation for &ldquo;I love you so much&rdquo; in Spanish (te quiero demasiado). + + + + + \ No newline at end of file diff --git a/tags/programming/page/1/index.html b/tags/programming/page/1/index.html new file mode 100644 index 0000000..425c13b --- /dev/null +++ b/tags/programming/page/1/index.html @@ -0,0 +1 @@ +/tags/programming/ \ No newline at end of file diff --git a/tags/python/index.html b/tags/python/index.html index 845f401..201253a 100644 --- a/tags/python/index.html +++ b/tags/python/index.html @@ -175,10 +175,12 @@ a WSGI application with the name application. Hence, wsgi:application.<

Python

-

+

Tips and useful libraries for python developers

python +programming +
diff --git a/tags/rpi/index.html b/tags/rpi/index.html new file mode 100644 index 0000000..292fd00 --- /dev/null +++ b/tags/rpi/index.html @@ -0,0 +1,198 @@ + + + + + + Balkian's site - rpi + + + + + + + + + + + + + + +
+
+
+ + + + +
+
+ +

Raspberry Pi

+

Tools, links and configuration for your Raspberry Pi

+ +rpi + + +
+
+ + + + + + + +
+ + + + +
+
+
+
+

+ J. Fernando Sánchez Rada | balkian +

+
+
    +
  • +
  • +
  • +
  • +
  • +
+

+ Creative Commons A-SA-NC +

+
+
+ + + + diff --git a/tags/rpi/index.xml b/tags/rpi/index.xml new file mode 100644 index 0000000..f0993db --- /dev/null +++ b/tags/rpi/index.xml @@ -0,0 +1,25 @@ + + + + rpi on Balkian's site + /tags/rpi/ + Recent content in rpi on Balkian's site + Hugo -- gohugo.io + en-us + This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + + + + + + Raspberry Pi + /cheatsheet/rpi/ + Mon, 01 Jan 0001 00:00:00 +0000 + + /cheatsheet/rpi/ + HDMI flickering Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor. +1 2 3 4 5 hdmi_drive=2 hdmi_group=2 hdmi_mode=42 disable_overscan=1 config_hdmi_boost=7 + + + + \ No newline at end of file diff --git a/tags/rpi/page/1/index.html b/tags/rpi/page/1/index.html new file mode 100644 index 0000000..91e06cd --- /dev/null +++ b/tags/rpi/page/1/index.html @@ -0,0 +1 @@ +/tags/rpi/ \ No newline at end of file