IMG="./nps-2008-jean.E01"
WINPARTS=""
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Base image | |
FROM debian:bullseye-slim | |
# Install make | |
RUN apt-get update && \ | |
apt-get install --yes make && \ | |
apt-get install --yes wget && \ | |
apt-get install --yes patch | |
# TeX environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJ="paper-724_" | |
INDIR="final/" | |
OUTDIR="$(date +%Y-%m-%d)_${PROJ}" | |
CWD="$(pwd)" | |
ARCH=".zip" # or .tar.gz | |
# Create tmp directory | |
TMP=$(mktemp -d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@article{SchmitzG17, | |
doi = {10.1155/2017/5879257}, | |
url = {https://doi.org/10.1155%2F2017%2F5879257}, | |
year = {2017}, | |
publisher = {Hindawi Limited}, | |
volume = {2017}, | |
pages = {1--10}, | |
author = {Roland Schmitz and Jan Gruber}, | |
title = {Commutative Watermarking-Encryption of Audio Data with Minimum Knowledge Verification}, | |
journal = {Advances in Multimedia} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
from enum import Enum | |
class AuditAction(str, Enum): | |
always = "always" | |
never = "never" | |
def __str__(self): | |
return str.__str__(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clean_debian() { | |
[ "$MNT_DIR" != "" ] && chroot $MNT_DIR umount /proc/ /sys/ /dev/ | |
sleep 1s | |
[ "$MNT_DIR" != "" ] && umount -l $MNT_DIR | |
sleep 1s | |
[ "$DISK" != "" ] && qemu-nbd -d $DISK | |
sleep 1s | |
[ "$MNT_DIR" != "" ] && rm -r $MNT_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: | |
# jgru | |
# Copyright: | |
# Copyright (c) 2022 jgru | |
# Define document to build | |
MAINFILE = draft | |
# Include sources in subdirectories eventually | |
TEX_SOURCES := $(MAINFILE).tex $(wildcard */*.tex) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Perform a multipart upload to Amazon S3 of data read from stdin. | |
# | |
# Example usage: | |
# tar -C / -cpjO /home | toS3 -k aws.key -b com-example-backup -o home.tar.bz2 | |
# | |
# Originally authored from | |
# https://www.vennedey.net/blog/1-Pipe-data-from-STDIN-to-Amazon-S3 | |
# Adapted to python3 |
NewerOlder