Skip to content

Instantly share code, notes, and snippets.

View CouldBeThis's full-sized avatar

CouldBeThis CouldBeThis

  • lol nope
View GitHub Profile
@CouldBeThis
CouldBeThis / archive-extraction-bulk.md
Last active November 8, 2021 10:53
bulk extraction of archives

bulk extraction of archives

extract every .zip in current working directory

unzip "*.zip"

extract every .tar.gz in current working directory

@CouldBeThis
CouldBeThis / linux-font-install.md
Created October 27, 2021 06:50
install fonts in linux

rebuild cache after installing

sudo fc-cache -f -v
@CouldBeThis
CouldBeThis / opening-x-sessions.md
Last active May 18, 2023 22:05
opening x sessions

open a tiny awesome session

Xephyr :5 & sleep 1 ; DISPLAY=:5 awesome

open a tiny LXDE session (sudo)

@CouldBeThis
CouldBeThis / tools-linux-terminal-themes.md
Last active October 30, 2021 22:15
🐌 🧰 🎨 [tools] terminal theming
@CouldBeThis
CouldBeThis / linux-keys-0.md
Last active November 2, 2021 05:11
⌨️ keybindings, key mappings, keyboard shortcut, accelerators etc

⌨️ keybindings, key mappings, keyboard shortcut, accelerators etc

arch linux wiki: Xorg/Keyboard configuration (not read)

see how computer is interpreting keys

In XFCE4 add "Indicator Plugin" to panel, there is a keyboard icon.

files

@CouldBeThis
CouldBeThis / linux-compositors.md
Last active October 30, 2021 20:07
🥽 compositing - information of uncertain utility

🥽 compositing - information of uncertain utility

added to startup:

xfwm4 --daemon --compositor=on

to execute from terminal, may need to add --replace

to produce ??? error codes,

@CouldBeThis
CouldBeThis / linux-file-search.md
Last active October 31, 2021 08:55
🐌 file search

🐌 file search

interactive regex of file(s) contents

could use fzf to similar effect; I do not have it installed.

open interactive regex file contents search in current directory:

rg . | sk --regex
@CouldBeThis
CouldBeThis / linux-trackpad-troublshooting.md
Last active October 31, 2021 09:49
trackpad troubleshooting (stuck mouse on laptop touchpad)

trackpad troubleshooting (stuck mouse on laptop touchpad)

how to ficx when trackpad stop working all of a sudden but USB mouse and rest of system OK.

source with explanations and various other solutions

find out device's info:

$ grep -iA2 touchpad /proc/bus/input/devices
@CouldBeThis
CouldBeThis / linux-misc.md
Created October 31, 2021 10:12
linux shell terminal misc.md

linux shell terminal misc

be able to use the terminal after opening an application which is still open

put & after the command.

kate file.txt &
@CouldBeThis
CouldBeThis / grab-commons-images-sh
Created November 4, 2021 20:55 — forked from loleg/grab-commons-images-sh
Download images and metadata from a Wikimedia Commons category or results page
#!/bin/bash
#
# Download images from a Wikimedia Commons category
#
# Highest preview resolution and metadata in XML format will be saved in subfolders.
# Usage: execute this script on a Linux command line, providing the full URL to the category page.
#
# Shell tools required for this script: wget sed grep
#