Skip to content

Instantly share code, notes, and snippets.

@kmindi
kmindi / experimentReportStructure.tex
Created May 14, 2019 18:52
LaTex Experiment Report Structure according to guidelines by A. Jedlitschka and D. Pfahl
% used within a section, just replace "\sub" with "\" and it can be used as sections
% the beginning and the end should be tailored according to the paper/document
%@InProceedings{Jedlitschka2005,
% author = {A. Jedlitschka and D. Pfahl},
% title = {Reporting guidelines for controlled experiments in software engineering},
% booktitle = {2005 International Symposium on Empirical Software Engineering, 2005.},
% year = {2005},
% month = {Nov},
% pages = {10 pp.-},
@kmindi
kmindi / single-event.php.diff
Last active March 12, 2018 13:59
fix for enfold changing additional meta data behavior for events tickets plus
--- a/wp-content/themes/enfold/config-events-calendar/views/single-event.php
+++ b/wp-content/themes/enfold/config-events-calendar/views/single-event.php
@@ -55,7 +55,7 @@ $event_id = get_the_ID();
<?php echo tribe_event_featured_image($event_id, 'entry_with_sidebar', false); ?>
<?php the_content(); ?>
</div><!-- .tribe-events-single-event-description -->
- <div class='av-single-event-meta-bar av-single-event-meta-bar-mobile'>
+ <div class='av-single-event-meta-bar'>
<div class='av-single-event-meta-bar-inner'>
<!-- Event meta -->
@kmindi
kmindi / style.css
Created February 26, 2018 07:33
fixed sticky header on smartphones small devices with enfold wordpress theme
/* https://kriesi.at/support/topic/sticky-header-for-smart-mobile-phone/ */
/* sticky header on smartphone */
.html_header_top.html_header_sticky #header {
position: fixed !important;
}
@media only screen and (max-width: 767px) {
.responsive #main {
padding-top: 0px !important;
margin-top:80px !important; /* fix for slide-show on start page, 80 px is max-height of header. */
}
@kmindi
kmindi / test_nested_virt_simple.sh
Created January 8, 2018 10:12 — forked from arges/test_nested_virt_simple.sh
Nested Virtualization Testcase for LP: #1682077
#!/bin/bash -x
#
# simple nested ubuntu vm testcase
#
# (c) 2014,2015 Chris J Arges <christopherarges@gmail.com>
L1_NAME="nested-L1"
L2_NAME="nested-L2"
L1_MEMORY="1024"
L2_MEMORY="768"
@kmindi
kmindi / ffmpeg-for-javafx-mediaplayer-mediaview
Created February 3, 2017 09:17
ffmpeg commandline/shell to convert a video to a playable format (h264, yuf420, <= 1920x180) in JavaFX MediaPlayer/MediaView
ffmpeg -i input.mp4 -vcodec h264 -vf scale=1920x1080 -an -pix_fmt yuv420p output.mp4
@kmindi
kmindi / .gitlab-ci.yml
Last active November 3, 2021 12:20
GitLab CI Configuration file for latex with building files in subdirectory with latex runner
compile_pdf:
image: kmindi/latex-docker
script:
- latexmk -C -cd -outdir="M2" -auxdir="M2" M2/M2.tex
- latexmk -lualatex -pdf -cd -outdir="M2" -auxdir="M2" M2/M2.tex
artifacts:
paths:
- "M2/M2.pdf"
expire_in: 1 week
except: