This is a (hopefully exhaustive) machine-readable list of all arXiv categories (archive + subject class, as per the docs). Data taken from the category taxonomy page.
# Use an official Android SDK image as the base image. | |
FROM openjdk:17-bullseye | |
# Set environment variables for Android SDK | |
ENV ANDROID_HOME /opt/android-sdk | |
ENV PATH $PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools | |
# Needed for the `sdkmanager` package as it's not available in bullseye | |
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main contrib non-free' >> /etc/apt/sources.list |
#!/usr/bin/env python3 | |
""" | |
Method for obtaining the exchange rate from the ECB. | |
""" | |
from __future__ import annotations | |
import xml.etree.ElementTree as ET |
#!/usr/bin/env sh | |
# script for bumping the version of a Python package (major, minor, or patch) | |
# to keep both poetry and the file containing the version number in sync | |
# requirements: | |
# - Python 3 with venv and Poetry | |
# - any POSIX-compatible shell | |
# - awk |
#!/usr/bin/env sh | |
# simple script for checking that a LaTeX project builds after a commit | |
# USAGE: save this as `.git/hooks/post-commit` in your project, and make it executable using `chmod +x .git/hooks/post-commit`. | |
# The script will then run after each `git commit` to the repository. | |
# NOTE: to turn off the check, run `git commit --no-verify` instead. | |
# REQUIREMENTS: git, latexmk, notify-send (optional) | |
# notify-send settings |
Simple Perl scripts which use regex search and replace to in-place convert Latex markdown files (which use $[MATH]$
and $$[MATH]$$
) to Gitlab markdown (which uses $`[MATH]`$
and ```math [MATH]```
and vice versa.
One caveat: the $$[MATH]$$
style should have the math environment delimiters on separate newlines, so this works:
$$
[MATH]
$$
#!/usr/bin/env bash | |
# a POSIX-compatible shell script that builds cadmus the easy way | |
# requirements: | |
# - git | |
# - python3 (with pip and venv) | |
# - make | |
# - cmake | |
# - a C++ compiler (g++ will do) |
This is a small shell script which can be used to backup edited Joplin resources, since this is, as of time of writing, still an open issue. Should work on any GNU/Linux or MacOS machine since it just uses POSIX utils.
Note that you should manually set the env variables JOPLIN_CURRENT_DIR
(where Joplin currently saves everything) and JOPLIN_BACKUP_DIR
(where the backup directory is); usually the former is ${HOME}/.config/joplin-desktop
(the default value), and the latter is determined by the user (default value is ${HOME}/.joplin-backup
).
Usage:
sh editable-resources.sh
#!/usr/bin/env sh | |
# the main command to send | |
comm="xfconf-query -c xfce4-notifyd -p /do-not-disturb" | |
# query for status | |
status="$(${comm})" | |
# if 'Do not disturb' is off, we send a notification, and then turn it on | |
if [ "${status}" = "false" ] | |
then | |
notify-send 'NOTICE' 'Notifications have been disabled!' |
Since tmux is not available by default on Piz Daint, here's a short guide on how to install and use it there (as of 2020-01-16).
Load the necessary modules:
module load daint-gpu EasyBuild-custom/cscs
Now you can build tmux
using:
eb tmux-2.9.eb -r