$ git config --global merge.tool bc3
$ git config --global mergetool.bc3.path /bin/bcompare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Generate the up to date grub configuration | |
$ grub2-mkconfig -o /boot/grub2/grub.cfg | |
2. Get the boot sequence of the kernels in the grub configuration | |
$ grep '^menuentry' /boot/grub2/grub.cfg | |
This will show the sequence in which the kernels are displayed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------ | |
set echo off | |
set serveroutput on | |
set timing off | |
set pages 25 | |
column VAR_NAME format a50; | |
column VAR_TEXT_VALUE format a75; | |
column VAR_NUM_VALUE format 9999999999; | |
column TIMESTAMP format a33; |
- Generate a dircolors file
$ dircolors -p > ~/.dircolors
- Edit the ~/.dircolors to edit the OTHERS_WRITABLE entry. Switch the foreground and background colors. See colors here http://ascii-table.com/ansi-escape-sequences.php
OTHER_WRITABLE 32;40 # dir that is other-writable (o+w) and not sticky
Ref: https://unix.stackexchange.com/questions/94498/what-causes-this-green-background-in-ls-output
- Sign a file
input-file.txt
and base64 encode it for sharing.
$ openssl dgst -sha256 -sign ~/.ssh/id_rsa input-file.txt | base64 > signb64.txt
Alternatively
$ openssl dgst -sha256 -sign ~/.ssh/id_rsa -out sign.sha256 input-file.txt
$ openssl base64 -in sign.sha256 -out <signature>