петък, 18 януари 2019 г.

To fix cvn wrong certificate problem

I was getting the following error while trying to update a code trough cvn
svn: E170013: Unable to connect to a repository at URL 'https://some.url' svn: E230001: Server SSL certificate verification failed:certificate expired
Since I'm not some pro with cvn I first checked the url - it works but indeed gives a security exception due to the expired certificate. I googled the solution, it is to add the option " --trust-server-cert"
 to the svn command, but that was impractical since the script for the svn command is 3000 lines long.
So a work-around which I found here (along with other solutions) was to delete ~/.subversion folder and then to do
#svn list https://url.you.need
and to press "p" to add a permanent exception. And it worked. Yay.

Create new keyboard shortcut

That's probably the dumbest keyboard shortcut one can create, but it's a fact. Since my touchpad is constantly freezing and I have to manually restart its drivers like every 30s at times, I decided to create a shortcut.
So after some digging, it turned out it's easy but not obvious. So on Sabayon, in order to reach the keyboards, you need to go to
SystemSettings->Shortcuts->Custom shortcuts (I'm translating this). Then New -> Name (Touch_Restart)  -> Keyboards (alt+.) -> Command in my case
#echo "sudo_pass" | sudo -S sh ~/scripts/touch_restart.sh
And f*ck you touchpad!
P.S. I don't know why the Custom shortcuts menu is not available form apps launcher. It's rather strange. But oh well.
P.S. For those who wonder, my touch_restart.sh looks like this:
#!/bin/bash
$sudo rmmod i2c_hid && $sudo modprobe i2c_hid