From e9103c40d672c3a8c9a268400e28251cebbe8bf7 Mon Sep 17 00:00:00 2001 From: Macleod Sawyer Date: Wed, 22 Dec 2021 11:56:13 -0600 Subject: [PATCH] Renamed repo, made this standalone for FirefoxSidebar files --- README.md | 11 -- ....mp4 => Screencast 2021-03-03 14:28:07.mp4 | Bin android.md | 11 -- android_development.md | 9 -- bluetooth.md | 11 -- firefox/README.md | 3 + gnome-config.md | 10 -- hibernation.md | 134 ------------------ libreoffice-macros.md | 96 ------------- onedrive.md | 7 - firefox/readme.md => readme.md | 0 .../sidebery-data.json => sidebery-data.json | 0 trackball.md | 12 -- ... => treestyletabs-config-v12021.06.09.json | 0 .../treestyletabs.css => treestyletabs.css | 0 ubuntu.md | 15 -- firefox/userChrome.css => userChrome.css | 0 17 files changed, 3 insertions(+), 316 deletions(-) delete mode 100644 README.md rename firefox/Screencast 2021-03-03 14:28:07.mp4 => Screencast 2021-03-03 14:28:07.mp4 (100%) delete mode 100644 android.md delete mode 100644 android_development.md delete mode 100644 bluetooth.md create mode 100644 firefox/README.md delete mode 100644 gnome-config.md delete mode 100644 hibernation.md delete mode 100644 libreoffice-macros.md delete mode 100644 onedrive.md rename firefox/readme.md => readme.md (100%) rename firefox/sidebery-data.json => sidebery-data.json (100%) delete mode 100644 trackball.md rename firefox/treestyletabs-config-v12021.06.09.json => treestyletabs-config-v12021.06.09.json (100%) rename firefox/treestyletabs.css => treestyletabs.css (100%) delete mode 100644 ubuntu.md rename firefox/userChrome.css => userChrome.css (100%) diff --git a/README.md b/README.md deleted file mode 100644 index 068a76f..0000000 --- a/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Linux Utilities* - -Various linux utility scripts I often have to rewrite a thousand times until I decide they need to just be saved somewhere. - -This includes my custom Firefox Dynamic Tab library, which will work on OSX/Windows platforms. - ------ - -I also have a [/rust-utils/](https://github.com/drannex42/rust-utils) repo that should be merged here, but I haven't done that yet for some unknown reason. - -*ᴍᴏsᴛ ᴡᴏʀᴋ ᴡɪᴛʜ Wɪɴᴅᴏᴡs ᴀɴᴅ OSX ᴀs ᴡᴇʟʟ diff --git a/firefox/Screencast 2021-03-03 14:28:07.mp4 b/Screencast 2021-03-03 14:28:07.mp4 similarity index 100% rename from firefox/Screencast 2021-03-03 14:28:07.mp4 rename to Screencast 2021-03-03 14:28:07.mp4 diff --git a/android.md b/android.md deleted file mode 100644 index f6fe56b..0000000 --- a/android.md +++ /dev/null @@ -1,11 +0,0 @@ -# Android Utils - -## Remove empty gesture space below keyboards -Requires ADB and USB - -``` adb shell wm overscan 0,0,0,-75``` - -## Fullscreen apps -This will turn any specific package into a fullscreen app, this eample uses firefox. - -```adb shell settings put global policy_control immersive.full=org.mozilla.fenix``` diff --git a/android_development.md b/android_development.md deleted file mode 100644 index 9ab18a5..0000000 --- a/android_development.md +++ /dev/null @@ -1,9 +0,0 @@ -# Android Development Utils - -## Gradle Sync failed - -This was a nightmare to figure out, especially because all the error message said was ``Grade sync failed: reason unknown``, so whoever got to write that error message, I am coming for you. - -To fix this was a lot of trial-and-error, (and uninstalling and reinstalling Android Studio and removing my .gradle folder in my home directory) and reading and trying a lot of responses on basically all stackoverflow questions answer with "Do this thing that worked eight years ago, or this that worked five years ago, three years ago, and two years ago" and none of those work for now. - -**Here is what works in 12021:** Go to ```Tools => SDK Manager => SDK Tools``` Then check the `Google Play Licensing Library` item, and click apply (this installs it - all 73kb to make up for an hour of headaches....). Click on the 'elephant icon' in the top right of Android Studio and your gradle build should be working properly. diff --git a/bluetooth.md b/bluetooth.md deleted file mode 100644 index a54a508..0000000 --- a/bluetooth.md +++ /dev/null @@ -1,11 +0,0 @@ -# Bluetooth -```bash -hcitool scan # to get the MAC address of your device -bluetoothctl -agent on -scan on # wait for your device's address to show up here -scan off -trust MAC_ADDRESS -pair MAC_ADDRRESS -connect MAC_ADDRESS -``` diff --git a/firefox/README.md b/firefox/README.md new file mode 100644 index 0000000..9e03bbd --- /dev/null +++ b/firefox/README.md @@ -0,0 +1,3 @@ + # This repo has been renamed to FirefoxSidebar + + Redirect should be automatic, and all files can bve found at the root of this repo. diff --git a/gnome-config.md b/gnome-config.md deleted file mode 100644 index 81b0b98..0000000 --- a/gnome-config.md +++ /dev/null @@ -1,10 +0,0 @@ -# Gnome Config - -Yes, I know I am incredibly lame by using Ubuntu and Gnome (Ubuntu flavor) as my default DE and OS - but after trying them all, distro jumping every few months (or days...), and dealing with all the security issues and misplaced configs - Ubuntu really just works for what I need, and the same goes for gnome (with a tonne of extensions and mods added, of course). - -## Proper Dock - -### Cycle Windows on Dock Click -``` -gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'cycle-windows' -``` diff --git a/hibernation.md b/hibernation.md deleted file mode 100644 index f5a6db4..0000000 --- a/hibernation.md +++ /dev/null @@ -1,134 +0,0 @@ -# Hibernation -A few things I've discovered for hibernation, mainly in Ubuntu 20.04/10+(?). - -## Enable hibernation, swap to disk (not partition) - -Here is what I did to make it work with Ubuntu 18.04. - -- Make your `/swapfile` have at least the size of your RAM - -``` -sudo swapoff /swapfile -sudo dd if=/dev/zero of=/swapfile bs=$(cat /proc/meminfo | awk '/MemTotal/ {print $2}') count=1024 conv=notrunc -sudo mkswap /swapfile -sudo swapon /swapfile -``` - -- Note the UUID of the partition containing your `/swapfile`: - -``` -$ sudo findmnt -no UUID -T /swapfile -20562a02-cfa6-42e0-bb9f-5e936ea763d0 -``` - -- Reconfigure the package `uswsusp` in order to correctly use the swapfile: - -``` -sudo dpkg-reconfigure -pmedium uswsusp -# Answer "Yes" to continue without swap space -# Select "/dev/disk/by-uuid/20562a02-cfa6-42e0-bb9f-5e936ea763d0" replace the UUID with the result from the previous findmnt command -# Encrypt: "No" -``` - -- Edit the SystemD hibernate service using `sudo systemctl edit systemd-hibernate.service` and fill it with the following content: - -``` -[Service] -ExecStart= -ExecStartPre=-/bin/run-parts -v -a pre /lib/systemd/system-sleep -ExecStart=/usr/sbin/s2disk -ExecStartPost=-/bin/run-parts -v --reverse -a post /lib/systemd/system-sleep -``` - -- Note the resume offset of your `/swapfile`: - -``` -$ sudo swap-offset /swapfile -resume offset = 34818 -``` - -- Configure Grub to resume from the swapfile by editing `/etc/default/grub` and modify the following line: - -``` -GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=20562a02-cfa6-42e0-bb9f-5e936ea763d0 resume_offset=34818 quiet splash" -``` - -- Update Grub: - -``` -sudo update-grub -``` - -- Create the following `/etc/initramfs-tools/conf.d/resume`: - -``` -RESUME=UUID=20562a02-cfa6-42e0-bb9e-5e936ea763d0 resume_offset=34816 - # Resume from /swapfile - -``` - -- Update initramfs: - -``` -sudo update-initramfs -u -k all -``` - -Now you can hibernate with `sudo systemctl hibernate`. - -One can also create those scripts: - -``` -sudo tee /usr/local/bin/gotosleep <&1 1>/dev/null | sed -ne 's/.*NO_PUBKEY //p' | while read key; do if ! [[ ${keys[*]} =~ "$key" ]]; then sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys "$key"; keys+=("$key"); fi; done -``` diff --git a/firefox/userChrome.css b/userChrome.css similarity index 100% rename from firefox/userChrome.css rename to userChrome.css