CREATE ROLE "ro-user" WITH PASSWORD 'secret';
ALTER ROLE "ro-user" WITH LOGIN;
GRANT USAGE ON SCHEMA public TO "ro-user";
GRANT SELECT ON ALL TABLES IN SCHEMA public TO "ro-user";
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO "ro-user";
First, read this:
http://dashohoxha.fs.al/deduplicating-data-with-xfs-and-reflinks/
Then, some adds:
I recommand the use of fdupes
to really save space used by all duplicated files. duperemove
can miss some of them.
fdupes -r . | duperemove --fdupes
@_ip_serveur:/chemin/vers/partage /mnt/<nom_partage>/ nfs4 x-systemd.automount,x-systemd.idle-timeout=300,async 0 0
Note: This gist may be outdated, thanks to all contributors in comments.
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
gluster volume set nextcloud-data performance.cache-size 1GB
gluster volume set nextcloud-data performance.client-io-threads on
gluster volume set nextcloud-data performance.io-cache on
gluster volume set nextcloud-data performance.io-thread-count 16
gluster volume set nextcloud-data performance.readdir-ahead enable
gluster volume set nextcloud-data performance.read-ahead disable
gluster volume set nextcloud-data features.cache-invalidation on
gluster volume set nextcloud-data features.cache-invalidation-timeout 600
gluster volume set nextcloud-data performance.stat-prefetch on
$ cat /proc/spl/kstat/zfs/arcstats |grep c_
c_min 4 536870912
c_max 4 2147483648
cat /etc/modprobe.d/zfs.conf
# https://www.google.com/search?q=bit+calculator Bit > GigaBit
# Min 512MB / Max 2048 MB Limit
echo | openssl s_client -showcerts -servername doamin.ltd -connect domain.ltd:443 2>/dev/null | openssl x509 -inform pem -noout -text
Go to https://api.ovh.com/console/ and create a new API key with these rights (replace domain.ltd with your domain managed at OVH):
GET /domain/zone/
GET /domain/zone/domain.ltd/status
GET /domain/zone/domain.ltd/record
GET /domain/zone/domain.ltd/record/*
POST /domain/zone/domain.ltd/record
POST /domain/zone/domain.ltd/refresh
DELETE /domain/zone/domain.ltd/record/*