Skip to content

Instantly share code, notes, and snippets.

@i3v
i3v / subcaptionphantom_macros.tex
Last active January 7, 2019 21:47
subcaptionphantom side_by_side comparison (for rev3) https://tex.stackexchange.com/a/468902/143086
% =============== defining the \subcaptionphantom ===================================
\makeatletter
% \begin{macro}{\subcaptionphantom}
% \cs{subcaptionphantom}\oarg{list-entry}\marg{caption} is a hidden
% non-printed subcaption. Designed for the case if "(a)", "(b)" are
% already embedded in the figure itself.
% Roughtly equivalent to \cs{phantomsubcaption} from the \Lpack{subcaption} package.
%
% \begin{macrocode}
\newcommand{\subcaptionphantom}{%
@i3v
i3v / subcaptionphantom_macros.tex
Created January 6, 2019 23:50
subcaptionphantom
% =============== defining the \subcaptionphantom ===================================
\makeatletter
% \begin{macro}{\subcaptionphantom}
% \cs{subcaptionphantom}\oarg{list-entry}\marg{caption} is a hidden
% non-printed subcaption. Designed for the case if "(a)", "(b)" are
% already embedded in the figure itself.
% Roughtly equivalent to \cs{phantomsubcaption} from the \Lpack{subcaption} package.
%
% \begin{macrocode}
\newcommand{\subcaptionphantom}{%
TurboVNC Server (Xvnc) 64-bit v2.2 (build 20180927)
Copyright (C) 1999-2018 The VirtualGL Project and many others (see README.txt)
Visit http://www.TurboVNC.org for more information on TurboVNC
02/01/2019 16:34:48 Using auth configuration file /etc/turbovncserver-security.conf
02/01/2019 16:34:48 Enabled authentication method 'tlsvnc'
02/01/2019 16:34:48 Enabled authentication method 'tlsotp'
02/01/2019 16:34:48 Enabled authentication method 'tlsplain'
02/01/2019 16:34:48 Enabled authentication method 'x509vnc'
02/01/2019 16:34:48 Enabled authentication method 'x509otp'
@i3v
i3v / cdm_fio.sh
Last active May 15, 2024 13:10
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
#!/bin/bash
# This script is based on https://unix.stackexchange.com/revisions/480191/9 .
# The following changes proved to be necessary to make it work on CentOS 7:
# * removed disk info (model, size) - not very useful, might not work in many cases.
# * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base)
# * escaping exclamation mark in sed command
# * the ".fiomark.txt" is not auto-removed
LOOPS=5 #How many times to run each test
@i3v
i3v / LaTeXScaleBars.md
Last active August 22, 2018 22:33 — forked from rbnvrw/LaTeXScaleBars.md
Adding scalebars to images in LaTeX

Scalebar with background - a demonstration of a little issue with two pics next to each other

Here's an MWE:

\documentclass{article}

\usepackage{graphicx}
\usepackage{subcaption}

\usepackage{tikz}