Skip to content

Instantly share code, notes, and snippets.

View dArignac's full-sized avatar

Alexander Herrmann dArignac

  • Symbiolab GmbH
  • Dresden, Germany
View GitHub Profile
@dArignac
dArignac / cookie.ts
Created September 23, 2023 11:57
Encrypt Cookie in Svelte
@dArignac
dArignac / jira-board.css
Created April 13, 2022 14:09
Stylish Extension
.subnav-container { display: none !important; }
#ghx-header { padding-bottom: 0; }
.ghx-issue .ghx-card-footer .ghx-avatar { display:none; }
.ghx-card-footer .ghx-type { display:none; }
.ghx-issue .ghx-card-footer {
margin-top: 0;
position: relative;
}
.ghx-card-footer .ghx-flags {
position: absolute;
@startuml config-general
skinparam BackgroundColor FFFFFE
skinparam arrow {
Color Black
FontColor Black
}
skinparam package {
BackgroundColor #E0E0E0
// ==UserScript==
// @name JIRA Remaining time in percent
// @namespace http://github.com/darignac
// @version 0.6
// @description Shows the remaining time in percent. Does not work in filter views (does not get triggered).
// @author Alexander Herrmann
// @match https://jira.t-systems-mms.eu/*
// @grant none
// ==/UserScript==
@dArignac
dArignac / stream.sh
Created September 9, 2015 11:57
RTMP streaming with ffmpeg
#!/bin/bash
# USAGE for video.mp4 with video bitrates 100, 200 and 300 kbit/s and audio bitrate 64kbit/s
# ./stream.sh /path/to/video/video.mp4 rtmp://thepubpoint/live 100,200,300 64 "stream1?key&adbe-live-event=theevent;stream2?key&adbe-live-event=theevent;stream3?key&adbe-live-event=theevent;"
VIDEO_FILE=$1
PUBLISHING_POINT=$2
VIDEO_BITRATES=$3
AUDIO_BITRATE=$4
STREAM_INFO=$5
@dArignac
dArignac / check_yum_updatzes.sh
Last active August 29, 2015 14:15
YUM update check and mail notify
#!/bin/bash
SEND_TO=$1
UPDATES=`yum check-update -q | awk '{print $1}'`
UPDATE_COUNT=`printf "%s\n" "$UPDATES" | grep -v "^$" | wc -l`
UPDATE_TEXT=$(printf "%s\n" "${UPDATES}")
if [ "${UPDATE_COUNT}" -gt "0" ]; then
echo "${UPDATE_TEXT}" | mail -s "${UPDATE_COUNT} Yum-Updates are available" "${SEND_TO}"
fi
@dArignac
dArignac / External Tools.xml
Created February 16, 2015 20:05
PyCharm flake8 (~/PyCharm40/config/tools)
<toolSet name="External Tools">
<tool name="flake8 File" showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="/usr/bin/flake8" />
<option name="PARAMETERS" value="--max-line-length=160 --ignore=E501,E128 --exclude=migrations $FileDir$/$FileName$" />
<option name="WORKING_DIRECTORY" value="$FileDir$" />
</exec>
<filter>
<option name="NAME" value="Flake8 Output Filter" />
<option name="DESCRIPTION" />