Skip to content

Instantly share code, notes, and snippets.

@benzntech
benzntech / hacktext.txt
Last active July 1, 2020 23:47
elementaryOS Open Terminal Here | File Manager UX Hack
To open a command line shell in the pantheon File Browser in elementary OS, you need to create a text file and paste code into it.
The location of the file which needs to be created is:
/usr/share/contractor/openinterminal.contract
One command you can use to edit it is:
sudo nano /usr/share/contractor/openinterminal.contract
@nileshsimaria
nileshsimaria / docker-default-directory
Last active April 4, 2024 09:13
Change docker's default /var/lib/docker to different directory on Ubuntu
1. Take a backup of docker.service file.
$ cp /lib/systemd/system/docker.service /lib/systemd/system/docker.service.orig
2. Modify /lib/systemd/system/docker.service to tell docker to use our own directory
instead of default /var/lib/docker. In this example, I am using /p/var/lib/docker
Apply below patch.
$ diff -uP -N /lib/systemd/system/docker.service.orig /lib/systemd/system/docker.service
--- /lib/systemd/system/docker.service.orig 2018-12-05 21:24:20.544852391 -0800