Skip to content

Instantly share code, notes, and snippets.

View tlnagy's full-sized avatar

Tamas Nagy tlnagy

View GitHub Profile
@tlnagy
tlnagy / resilio-bindfs.md
Last active January 10, 2020 21:56
resilio-sync-ubuntu-bindfs.md

Why? ACLs permissions are fragile in my hands and this works a lot better, IMO. Despite caveats.

Install resilio sync and run it as its own user

sudo apt install bindfs
echo "Setup fresh PopOS install"
# check if root
if [[ $(id -u) -ne 0 ]]
then echo "Please run as root"
exit 1
fi
# rename computer
echo "eureka" > '/etc/hostname'
@tlnagy
tlnagy / scaling.md
Created December 7, 2019 20:25
Fix UI scaling in Snap apps

On Kubuntu 19.10, snap apps install here:

/var/lib/snapd/desktop/applications

To fix UI scaling, I just add the following flag to each of the .desktop files for Electron apps in that folder

--force-device-scale-factor=1.2
@tlnagy
tlnagy / filescan.sh
Created June 19, 2022 00:07
Took me awhile to figure out how to run Nextcloud's file scan option inside of my Nextcloud instance which was hosted inside of a docker container
su -s /bin/bash www-data -c "php occ files:scan --all"