- https://www.linuxfromscratch.org/blfs/view/svn/postlfs/emacs.html
- https://practical.li/blog/posts/build-emacs-28-on-ubuntu/
- https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list
- https://github.com/plexus/chemacs2
- Note taken on [2023-03-07 mar. 14:59]
in progress
sudo apt build-dep emacs sudo apt install gcc-10 sudo apt install libgccjit0 libgccjit-10-dev libjansson4 libjansson-dev gnutls-bin export CC=/usr/bin/gcc-10 && export CXX=/usr/bin/gcc-10 ./autogen.sh ./configure –with-native-compilation
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install ripgrep
cargo install fd-find
xterm-24bit|xterm with 24-bit direct color mode,
use=xterm-256color,
sitm=\E[3m,
ritm=\E[23m,
setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
sudo apt-get install xterm
tic -x -o ~/.terminfo ~/xterm-24bit.terminfo
sudo apt install tmux
cd
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
sudo apt install zsh curl
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Host *
ControlMaster yes
python3 -m pip install --upgrade pip
python3 -m pip install -U 'python-lsp-server[all]' pytest nose virtualenv virtualenvwrapper jupyter
sudo apt-get install libssl-dev
mkdir ~/src
cd ~/src
git clone --depth=1 https://github.com/Kitware/CMake.git
cd CMake
./bootstrap && make && sudo make install
if hash apt 2>/dev/null; then
sudo apt mlocate
fi
sudo updatedb
mkdir ~/src
cd ~/src
git clone --depth=1 https://github.com/llvm/llvm-project.git
cd llvm-project
mkdir build
cd build
cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
make
make check-clang
mkdir ~/src
cd ~/src
git clone --recursive https://github.com/Andersbakken/rtags.git
cd rtags
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 .
make
sudo snap install ccls --classic
- follow Installation
How do I hide the top horizontal tab bar so only the tree-styled Sidebery side tab bar remains? : firefox
[2023-01-17 mar. 15:54]
- Find your profile folder (hence referred to as
${PROFILE}
): go toabout:support
and look at the line that says “Profile folder”. - Toggle the relevant
about:config
flags. - Close Firefox.
- Put this in
${PROFILE}/chrome/userChrome.css
(create the file if it doesn’t already exist): = #TabsToolbar { visibility: collapse; } = - Start up Firefox again.
For the second bit, I think if you check the “Title bar” box when you go to “Customize” (Menu -> More Tools -> Customize Toolbar), it’ll display your OS’s title bar.
cd ~/.local/bin
wget https://github.com/erebe/greenclip/releases/download/v4.2/greenclip
chmon 700 greenclip
download from here and move to
cd tmp
wget https://openaccess.thecvf.com/content_ICCV_2017_workshops/papers/w5/Kordopatis-Zilos_Near-Duplicate_Video_Retrieval_ICCV_2017_paper.pdf
k2pdfopt Kordopatis-Zilos_Near-Duplicate_Video_Retrieval_ICCV_2017_paper.pdf
k2pdfopt doc see k2pdfopt
-mode <mode> Shortcut for setting multiple options at once which
determine the basic way in which k2pdfopt will behave.
Available modes are:
copy "Copy" mode. This isn't really intended for
use with an e-reader. It just creates a
bitmapped copy of your source document at the
exact same dimensions. This can be useful in
order to eliminate any font compatibility
issues or if you want to eliminate selectable
text (follow with -mode copy with -ocr-).
The equivalent settings are -n- -wrap- -col 1
-vb -2 -w 1s -h 1s -dpi 150 -rt 0 -c -t- -f2p
-2 -m 0 -om 0 -pl 0 -pr 0 -pt 0 -pb 0 -mc-.
Use -odpi to select the bitmap resolution.
Note 1: Use -mode copy -n if you want an exact
copy (output in native mode).
Note 2: The default gamma and contrast settings
are not reset by -mode copy. If you
want a perfect copy, do this:
-mode copy -gamma 1 -s- -cmax 1
fp "Fit Page" mode. Also can use -mode fitpage.
Fits the entire contents of each source page
onto the reader display. Same as -n -wrap- -col 1
-vb -2 -f2p -2 -t.
fw "Fit Width" mode. Fits the text to the width
of the reader in landscape mode without doing any
text re-flow. This is the best way to preserve
the original layout of the source document.
To fit to the reader width in portrait mode, add
-ls- after -mode fw to turn off landscape.
The -mode fw option is equivalent to -n -wrap-
-col 1 -vb -2 -t -ls. It was inspired by SoPDF's
"fit width" option. Can also use -mode sopdf
or -mode fitwidth
2col "Two-column" mode. Same as -n -wrap- -col 2
-vb -2 -t. Optimizes for a 2-column scientific
article with native PDF output.
tm "Trim margins" mode. Same as -mode copy, but
sets the output to be trimmed to the margins and
the width and height of the output to match the
trimmed source pages. Also uses native mode.
Equivalent to -n -wrap- -col 1 -vb -2 -f2p -2 -t
-w 1t -h 1t -rt 0 -c -m 0 -om 0 -pl 0 -pr 0 -pt 0
-pb 0 -mc-. Can also use -mode trim.
crop "Crop" mode. Used with the -cbox option, this
puts each cropped area on a separate page,
untrimmed, and sizes the page to the cropped
region. Same as -wrap- -col 1 -vb -2 -w 1t -h 1t
-t- -rt 0 -c -f2p -2 -m 0 -om 0 -pad 0 -mc- -n
concat "Concatenation" mode. Similar to -mode crop,
but keeps the output pages the same size as the
source pages and fits as many crop-boxed regions
onto each new output page as possible without
breaking them across pages. Equivalent to: -n
-wrap- -col 1 -vb -2 -t- -f2p -3 -fc- -w 1s -h 1s
-ocr-
def "Default" mode. This is the mode you get if you
run k2pdfopt with no customized options. It is
equivalent to -wrap -n- -col 2 -ocr m -vb 1.75
-dev k2 -rt auto -c- -t -f2p 0 -m 0 -om 0.02 -ls-