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 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