Skip to content

Instantly share code, notes, and snippets.

@JurrianFahner
JurrianFahner / jsonInspectDocker.py
Last active August 29, 2015 14:23
Python inspect on all containers
#!/usr/bin/python
from subprocess import *
#get all numeric IDs of active containers
allActiveContainers = Popen(["docker", "ps", "-q"], stdout=PIPE).communicate()[0]
#run the inspect on all active containers to produce one json file
check_call(["docker", "inspect"] + allActiveContainers.strip().split('\n'))
@rain1024
rain1024 / tut.md
Last active July 23, 2024 12:15
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
@anildigital
anildigital / gist:862675ec1b7bccabc311
Created July 26, 2014 18:27
Remove dangling docker images
docker rmi $(docker images -q -f dangling=true)
@xuanlongma
xuanlongma / pandoc_multi_input.md
Last active May 1, 2024 19:18
Combine multiple input files when using Pandoc

If multiple input files are given, pandoc will concatenate them all (with blank lines between them) before parsing. -- from Pandoc website

Pandoc command: pandoc -s input1.md input2.md input3.md -o output.html