Skip to content

Instantly share code, notes, and snippets.

View jelovac's full-sized avatar

Vladimir Jelovac jelovac

  • Xcentric IT
  • Serbia
View GitHub Profile
@jelovac
jelovac / README.md
Last active April 10, 2024 05:58
Ubuntu Mate 20.04 XRDP setup

Ubuntu Mate 20.04 XRDP setup

Documenting XRDP setup which worked for me on Ubuntu Mate 20.04.

Some parts are taken from: http://c-nergy.be/blog/?p=14093.

Install xrdp

sudo apt install xrdp
@jelovac
jelovac / keycloak-docker-compose.yml
Created February 9, 2020 14:16
Keycloak docker mysql fails to start
version: "3"
volumes:
data_keycloak_db:
driver: local
services:
keycloak-db:
@jelovac
jelovac / gist:9afce7c74e50e254d1b870b4d4be9766
Created June 13, 2018 09:51
Set default root password on Ubuntu MySQL >=5.7
/* The new MySQL version on Ubuntu uses socket type authentification, in order to revert to password based use the following */
USE mysql;
UPDATE user SET authentication_string = PASSWORD(‘YourPassword’), plugin = ‘mysql_native_password’ WHERE User = ‘root’;
FLUSH PRIVILEGES;
@jelovac
jelovac / yiic.php
Created November 21, 2017 08:15
Include composer autoloaded classes in Yii 1 class map
// Include composer in Yii class map
$composerAutoloader = require_once "components/composer/vendor/autoload.php";
$composerClassMap = $composerAutoloader->getClassMap();
Yii::$classMap = array_merge(Yii::$classMap, $composerClassMap);
@jelovac
jelovac / gist:a24fe4cc7e1a15a1e045
Last active August 29, 2015 14:18
Homestead issue on Windows 7
# For some reason homestead cli tool is looking for .homestead directory in the wrong place.
C:\Users\Silmarilion\.homestead>homestead up
C:/Users/Silmarilion/AppData/Roaming/Composer/vendor/laravel/homestead/Vagrantfile:17
:in `read': No such file or directory - C:/Users/Silmarilion/AppData/Roaming/Composer
/vendor/laravel/homestead/Users/Silmarilion/.homestead/Homestead.yaml (Errno::ENOENT)
from C:/Users/Silmarilion/AppData/Roaming/Composer/vendor/laravel/homestead/V
agrantfile:17:in `block in <top (required)>'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/c
@jelovac
jelovac / browser-tools-list.md
Last active August 21, 2016 10:56
List browser tools for front end web development

Firefox

Chrome