Skip to content

Instantly share code, notes, and snippets.

View danielroedl's full-sized avatar

Daniel Rödl danielroedl

  • elbbits GmbH
  • Dresden, Germany
View GitHub Profile
@danielroedl
danielroedl / check.ps1
Last active September 28, 2023 13:11
Simple Windows PowerShell web crawler
# Run once with a PowerShell as Admin to allow execution of script:
# set-executionpolicy remotesigned
# CONFIG
$URL = https://badlands.cc
$SEARCH_FOR = "BADLANDS 2024 INFORMATION COMING SOON3"
$WAIT_SECONDS = 10
# CONFIG-END
Add-Type -AssemblyName PresentationCore,presentationFramework
@danielroedl
danielroedl / _01_how_to_run.sh
Last active December 19, 2024 09:58
Template for code presentation with vim and tmux
#!/bin/bash
#
# - install tmux and vim (e.g. for ubuntu run `apt install tmux vim`)
# - Create the showroom.presentation.sh
# - add executable flag with `chmod +x showroom.presentation.sh`
# - To run the presentation
# - Open a terminal and run `./showroom.presentation.sh`
# - Open a second terminal on presentation screen and run `tmux a -t showroom`
# - Go back to the first terminal and hit [Space] to send next line
# - To stop the presentation hit ':q' in vim
@danielroedl
danielroedl / Dockerfile
Created October 18, 2022 13:54
Docker Ubuntu - For openframeworks
FROM ubuntu:22.04
# add missing dependencies needed by openframeworks
RUN apt-get update -y \
&& \
# tzdata is installed later in install_dependencies script
# but with interactive choices, so we configure it here correct
DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin apt-get -y install \
tzdata \
# and also some other depedencies are missing
@danielroedl
danielroedl / Dockerfile
Last active October 18, 2022 15:27
Docker Ubuntu - Use Display (X) and Audio (pulse audio)
FROM ubuntu:22.04
RUN apt-get update -y \
# needed for sound
libpulse0 libasound2 libasound2-plugins \
# to test sound with e. g. aplay <sound-file>
alsa-base \
# to test display with xterm
xterm \
&& \