Skip to content

Instantly share code, notes, and snippets.

---
- openssl_privatekey:
path: "/srv/{{ app_name }}/ssl/{{ trusted_domains[0] }}.key"
tags: letsencrypt
- name: Creating CSR for
debug: msg=
tags: letsencrypt
@hatsch
hatsch / distribute.sh
Last active March 14, 2023 18:19
output dorftv to the raspberrry pi hdmi port
#!/bin/sh
## play the dorfstream to the HDMI output
## To enable add the following to /etc/rc.local
## sleep 10
## echo localhost > /etc/ansible/hosts
## su - pi -c "git clone https://gist.github.com/46c6f53362aeadf8747b40111c371e47.git bin > /dev/null 2>&1 || echo Already Exists"
## su - pi -c "cd /home/pi/bin ; git pull || echo Error checkout"
## su - pi -c "/bin/sh /home/pi/bin/distribute.sh &"
## su - pi -c "/cd /home/pi/bin ; ansible-playbook playbook.yml"
##
Completed 200 OK in 152.6ms (Views: 147.5ms | ActiveRecord: 4.0ms)
Started GET "/jobs" for 10.10.10.148 at 2014-06-12 16:03:22 +0200
Processing by JobsController#index as HTML
Rendered shared/_history.html.erb (21.1ms)
Rendered jobs/_job.html.erb (105.6ms)
Rendered jobs/_jobs.html.erb (124.8ms)
Rendered jobs/index.html.erb within layouts/application (147.4ms)
Rendered layouts/_menu.html.erb (3.2ms)
Rendered layouts/_help.html.erb (0.1ms)
Completed 200 OK in 155.5ms (Views: 150.6ms | ActiveRecord: 4.0ms)
{
"port": 8080,
"access_log": "access_log",
"database": "jobs.db",
"slots": 1,
"interface": "0.0.0.0",
"encoder": "ffmpeg",
"scratch_dir": "/tmp",
"use_scratch_dir": false,
"ffprobe": "ffprobe",
@hatsch
hatsch / install_ffmpeg.sh
Last active December 31, 2015 17:19
make ffmpeg debian packages for 12.04
#!/bin/bash
sudo apt-get remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
sudo apt-get autoremove
sudo apt-get update
sudo apt-get -y install autoconf build-essential checkinstall git libgpac-dev \
libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \
librtmp-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev \
libx11-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev gawk
@hatsch
hatsch / SassMeister-input.scss
Created November 21, 2013 13:07
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@import "compass";
$base-font-size: 12px;
@function em($value, $relative-font-size: $base-font-size) {
@return $value / $relative-font-size * 1em;
@hatsch
hatsch / melt_example.sh
Created November 29, 2012 14:19
melt example
#this command analyses the audio of the video and writes it down to the MLT XML
melt video1.mov -filter sox:analysis -consumer xml:video1.mlt video_off=1 all=1
#this renders the video to looseless x264 with aac audio and the audio normalisation filter applied
melt video1.mlt -consumer avformat:video1.m4v properties=H.264 strict=experimental progressive=1