add screencast snippet

This commit is contained in:
Alexander Weinhold 2018-12-07 13:08:45 +01:00
parent d444921786
commit e4453bed0e
4 changed files with 12 additions and 99 deletions

View File

@ -1,33 +0,0 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Template für Projektdokumentation %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt, ngerman]{scrartcl}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage{uncial}
\usepackage[T1]{fontenc}
\usepackage{multido}
\newcommand\li[1]{{#1} \hrulefill \\ \\}
\newcommand{\Repeat}{\multido{\i=1+1}}
\newcommand\lines[1]{\Repeat{#1}{\\ \\\null\hrulefill}}
\setlength\parindent{0pt}
\pagestyle{empty}
\begin{document}
\unclfamily\huge\li{Projekt}\\
\li{Beginn}
\li{Ende}
\li{Erfolg \normalfont\textbf ?}
Beschreibung
\lines{6}
\clearpage
% je nach Bedarf mehrfach ausdrucken...
\li{Test am}
Kommentare
\lines{10}
\clearpage
Schlusswort
\lines{11}
\end{document}

View File

@ -1,33 +0,0 @@
#!/usr/bin/env python2
import requests
from bs4 import BeautifulSoup
FIRST_COMIC = 1
LAST_COMIC = 575
def download(img_url, i):
img = requests.get(img_url, stream=True)
file_name = "%04d_%s" %(i, img_url.split("/")[-1])
with open(file_name ,"wb") as f:
for chunk in img.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
print "Got %s" %file_name
def run():
for i in range(FIRST_COMIC, LAST_COMIC + 1):
p = requests.get("http://abstrusegoose.com/%d" %i)
soup = BeautifulSoup(p.text, "html.parser")
section = soup.find("section")
if section:
img = section.find("img")
if img:
src = img["src"]
if src:
download(src, i)
if __name__ == "__main__":
run()

View File

@ -1,33 +0,0 @@
#!/usr/bin/env python2
import requests
from bs4 import BeautifulSoup
FIRST_COMIC = 1
LAST_COMIC = 1633
def download(img_url, i):
img = requests.get(img_url, stream=True)
file_name = "%04d_%s" %(i, img_url.split("/")[-1])
with open(file_name ,"wb") as f:
for chunk in img.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
print "Got %s" %file_name
def run():
for i in range(FIRST_COMIC, LAST_COMIC + 1):
p = requests.get("http://xkcd.com/%d/" %i)
soup = BeautifulSoup(p.text, "html.parser")
div = soup.find("div", id="comic")
if div:
img = div.find("img")
if img:
src = img["src"]
if src.startswith("//"):
download("http:" + src, i)
if __name__ == "__main__":
run()

12
screencast.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
timestamp=`date "+%Y%m%d-%H%M%S"`
filename="screencast-$timestamp.mp4"
pavucontrol &
ffmpeg -f x11grab \
-s $(xdpyinfo | grep dimensions | awk '{print $2}') \
-i :0.0 \
-f pulse -i default \
$filename