Skip to content

Instantly share code, notes, and snippets.

@ovichiro
ovichiro / kde-nvidia-screentearing.md
Last active August 27, 2018 15:48
Avoid screen tearing with KDE and Nvidia proprietary drivers

Avoid screen tearing with KDE and Nvidia proprietary drivers

Create the file /etc/modprobe.d/nvidia-modeset.conf.
Add setting options nvidia_drm modeset=1 inside the file.
Then sudo update-initramfs -u in the terminal.
Restart.

This generates some input lag, but seems comparable to the default Intel setting with the integrated graphics.
Games play fine (e.g. FPS games).

@ovichiro
ovichiro / tomcat-linux.service.md
Last active February 2, 2024 03:20
Tomcat as a service on Linux

Install Tomcat as a service on Linux

Download Tomcat from the Apache website.
Unpack in /opt/apache-tomcat-x.y.z. E.g. /opt/apache-tomcat-8.5.6.
You'll need a terminal and root access.

Create Tomcat user with restricted permissions

@ovichiro
ovichiro / oracle.md
Created August 14, 2018 13:50
Oracle 12c create tablespace, schema, expdp, impdp

Oracle ops for dev use

Create tablespace, schemas, export, import etc.

Oracle 11g

Create tablespace and schema. Adjust params as needed:

Oracle 12c Docker install

This is a short tutorial on silently installing Oracle 12c in a Docker container with Oracle Linux.
Go with the Docker Hub version if you find the way it's configured works for you. It's the first link in the list of sources below.
This tutorial will use Ubuntu as a host system.

The main steps are:

  • Install Docker and the Oracle Linux image
@ovichiro
ovichiro / mongodb-install.md
Created August 10, 2018 12:45
MongoDB quick install guide on Ubuntu with auth and a sample db