From b810d9a0b47dd49a90cc8ec7bf1b05f59ff945b3 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Sat, 20 Jul 2024 12:13:49 -0400 Subject: Crude testing with blogrb --- pages/wiki/scripts.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 pages/wiki/scripts.md (limited to 'pages/wiki/scripts.md') diff --git a/pages/wiki/scripts.md b/pages/wiki/scripts.md new file mode 100644 index 0000000..78bf537 --- /dev/null +++ b/pages/wiki/scripts.md @@ -0,0 +1,74 @@ +# Scripts + +This page contains helpful scripts and useful terminal commands. + +## Docker + +Installing `ghost` + + + docker pull ghost + docker run -d \ + --name ghost-name \ + -e NODE_ENV=development \ + -p 2368:2368 \ + -v $HOME/path/to/ghost/blog:/var/lib/ghost/content \ + ghost:alpine + + +## `ffmpeg` to MP4 + + + ffmpeg -i input_filename.avi -c:v copy -c:a copy -y output_filename.mp4 + + +## Mount USB HDD via CLI + + + mkdir /media/usb-drive + mount /dev/sdX /media/usb-drive/ + + +## Fix screen tearing + + + sudo vim /etc/X11/xorg.conf.d/20-intel.conf + + +Add the following contents to `20-intel.conf`: + + + Section "OutputClass" + Identifier "Intel Graphics" + MatchDriver "i915" + Driver "intel" + Option "DRI" "3" + Option "TearFree" "1" + EndSection + + +## Enabling "tap to click" + + + sudo micro /etc/X11/xorg.conf.d/30-touchpad.conf + + +Add the following contents to `30-touchpad.conf`: + + + Section "InputClass" + Identifier "touchpad" + Driver "libinput" + MatchIsTouchpad "on" + Option "Tapping" "on" + Option "TappingButtonMap" "lmr" + EndSection + + +## Woocommerce + +**Reset all product menu_order to `0`** + + + UPDATE wp_posts SET menu_order = 0 WHERE post_type = 'product'; + -- cgit v1.2.3-54-g00ecf