Skip to content

Instantly share code, notes, and snippets.

@i3v
i3v / subcaptionphantom_macros.tex
Last active Jan 7, 2019
subcaptionphantom side_by_side comparison (for rev3) https://tex.stackexchange.com/a/468902/143086
View subcaptionphantom_macros.tex
% =============== 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}{%
View subcaptionphantom_macros.tex
% =============== 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}{%
View vcnserver_log.txt
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 Jul 27, 2020
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
View cdm_fio.sh
#!/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 Aug 22, 2018 — forked from rbnvrw/LaTeXScaleBars.md
Adding scalebars to images in LaTeX
View LaTeXScaleBars.md

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}
You can’t perform that action at this time.