aboutsummaryrefslogtreecommitdiff
path: root/wiki/scripts.md
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-05-31 14:53:12 -0400
committerBradley Taunt <bt@btxx.org>2024-05-31 14:53:12 -0400
commite85eb98480d0c7af950859e95819901a20923fe7 (patch)
tree5fc5ab9dd9608cfc676a475297e84bfb1de3f114 /wiki/scripts.md
parent8f28fc58d5fe68775fbe552eb172cbb4ad8614b1 (diff)
Begin porting over wiki pages
Diffstat (limited to 'wiki/scripts.md')
-rw-r--r--wiki/scripts.md78
1 files changed, 78 insertions, 0 deletions
diff --git a/wiki/scripts.md b/wiki/scripts.md
new file mode 100644
index 0000000..cabd288
--- /dev/null
+++ b/wiki/scripts.md
@@ -0,0 +1,78 @@
+---
+layout: page
+title: Scripts
+permalink: /wiki/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';
+