Tuesday, December 10, 2019

Fix dual boot time discrepancy

http://ubuntuhandbook.org/index.php/2016/05/time-differences-ubuntu-1604-windows-10/

1. Disable UTC and use Local Time in Ubuntu:
In previous Ubuntu editions, you can edit the config file /etc/default/rcS to disable UTC.
In Ubuntu 16.04, open terminal (Ctrl+Alt+T) and run the command below instead:
timedatectl set-local-rtc 1 --adjust-system-clock
To check out if your system uses Local time, just run:
timedatectl

Friday, November 8, 2019

svn export in git

To obtain a "clean" source at some revision, do:

git archive | tar -x -C

Source: https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export

Setting Up "Local" Git Server

Inspired by https://dev.to/erhankilic/setting-up-your-own-git-server--26h6

sudo mkdir /git/example.git
cd /git/example.git 
sudo git init --bare
cd /home/
sudo git clone /git/example.git # (bcoz the repo has root permission in this example)

To use:
git add ... whatever
git commit -a
sudo git push # (bcoz the repo has root permission in this example)

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 Options, Roots 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