I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
This file contains hidden or 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
FROM mono:latest | |
RUN apt-get update | |
RUN apt-get -y -q install git | |
RUN apt-get -y -q install libcurl4-openssl-dev | |
RUN git clone https://github.com/zone117x/Jackett.git | |
RUN apt-get remove -y --auto-remove git | |
WORKDIR /Jackett/src | |
RUN mkdir packages | |
WORKDIR /Jackett/src/packages |
This file contains hidden or 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 python | |
# encoding: utf-8 | |
import os | |
import shlex | |
import subprocess | |
import optparse | |
GNP_TEMPLATE=""" | |
set term png size 800,600 |
Generate and email report on SLURM jobs that exist in database.
- needs C executable from https://github.com/cathcart/Cool-code-scraps/tree/master/slurm
- compile the C program according to the instructions in the above repo, put on $PATH and edit
cmd
variable in__get_jobs()
- change the email address in the
send_report()
call
Bonus tip: ssh cluster "python slurm_report.py"
- no need to log in!
All credit to cathcart