Wednesday, September 25, 2019

download google drive files in bash

https://www.matthuisman.nz/2019/01/download-google-drive-files-wget-curl.html

https://github.com/matthuisman/files.matthuisman.nz/blob/master/gdrivedl

Thursday, August 15, 2019

KDE disable super_L (windows key) key shortcut as menu luncher Ask

https://superuser.com/questions/1156130/kde-disable-super-l-windows-key-key-shortcut-as-menu-luncher

In kde plasma 5.8 the super/win key is also used to trigger the launcher, when pressed and released without combining it with another key. To disable the feature, put
[ModifierOnlyShortcuts]
Meta=
in ~/.config/kwinrc.
Taken from: https://blog.martin-graesslin.com/blog/2016/08/modifier-only-shortcuts-available-in-plasma-5-8/ https://www.reddit.com/r/kde/comments/55udc1/how_do_i_stop_the_meta_key_from_opening_the/d8epzzj/

Friday, July 19, 2019

Monday, June 10, 2019

MiKTeX add custom bibtex style sty

SEE ALSO https://win-dmatenine.blogspot.com/search?q=bibtex

You should create a LocalTeXMF root directory, say in your personal directory. Whatever the exact name you give it, you have to declare it via MiKTeX OptionsRoots tab, Add button. Everything you'll put in this directory must respect the TeX Directory Structure (TDS).
In this root, copy the .bst file as \LocalTeXMF\bibtex\bst\elsarticle\elsarticle-num-ident.bst, then refresh the FNDB. That's all.

to refresh the FNDB
in DOS prompt (--admin only if system-wide effect needed):
EDIT: "--admin" option was necessary for bibtex4word to acknowledge new style
> initexmf --admin --update-fndb

Thursday, May 9, 2019

git diff difftool

Git does allow you to configure suppression of the confirmation per-diffed file:

git config --global --add difftool.prompt false

The caveat is that a large number of diffed files will result in a long sequence of closing the , reopening , etc for each (this assumes that the above is significantly worse than having to hit n repeatedly during default behaviour — you can always interrupt the process by hitting Ctrl+C on the terminal, regardless).

All in all, this config change is still useful for single file diffs. For broad diffs I will stick to Aaron's suggestion of performing diff by folder and opening that:

git difftool --dir-diff



https://www.scootersoftware.com/vbulletin/forum/beyond-compare-4-discussion/version-control-aa/12475-usability-skip-git-difftool-confirmation-prompt-and-or-enable-multi-tab-opening

Wednesday, April 17, 2019

grub change default option

sudo nano /etc/default/grub

the line

GRUB_DEFAULT=0

must be changed with the desired value, indexing starts with 0. Then save, exit and execute:

sudo update-grub

reboot to test...

triple boot 2x Ubuntu and Windows?

https://askubuntu.com/questions/228890/how-can-i-triple-boot-xubuntu-ubuntu-and-windows

Start your installation using the Ubuntu 12.04 LTS CD.
  • When you reach the Installation Type Page, select Something Else.
  • Now, you will get a page listing your partitions.
  • Select /dev/sda2 and select Modify
  • Now, give the Use as as ext4 and mount point as /
  • You can just reuse your existing swap partition.
  • Continue with the installation.
After the installation, you should be having a system that you desired.