This file contains 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
#!/bin/bash | |
avcheck() | |
{ | |
avprobe "$1" -show_packets 2>/dev/null | | |
awk -F'=' -vN="$1" ' | |
/^\[/ { if (arm && k["codec_type"]=="video") { last=k["dts_time"]; # printf "%s", k["flags"]; | |
}; delete k; arm=1; next; } | |
arm { k[$1]=$2; } | |
$0=="codec_type=video" { frames++; } |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains 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
Copyright Less License | |
=== Licensing terms === | |
The Author is German or releasing under German law in the European | |
Union, therefor the German Urheberrecht applies to the Works (Source | |
Code, Text, Program, etc.). | |
Under German Urheberrecht the Author did not add any Copyright to the | |
Works and thereby placed the Works into the Public Domain (PD) as long |
This file contains 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
#!/bin/bash | |
PIDFILE=/tmp/kswapd-check.pids | |
scanpids() | |
{ | |
cat -s /proc/[1-9]*/stat 2>/dev/null | | |
awk 'BEGIN { | |
want["(kswapd0)"]=1; | |
want["(kswapd1)"]=1; |
This file contains 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
' Source https://gist.github.com/hilbix/5597981 | |
Public Sub CopySelectedMessagesHeadersToClipboard() | |
Dim sel As Outlook.Selection | |
Dim msg As Outlook.MailItem | |
Dim n As Integer | |
Dim all As String | |
Dim errcnt As Integer | |
Dim omsg As Object | |
Dim mmsg As MAPI.Message | |
Dim spid As String, seid As String |
This file contains 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
Section "InputDevice" | |
Identifier "Keyboard" | |
Driver "kbd" | |
# Option "XkbModel" "pc105" | |
Option "XkbLayout" "us,de" | |
Option "XKbOptions" "grp:alt_shift_toggle" | |
EndSection |
This file contains 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
<? | |
# Warning, do not keep this publicly reachable, it is dangerous. | |
header("Content-type: text/plain"); | |
$ch = curl_init($_SERVER["QUERY_STRING"]); | |
curl_exec($ch); | |
echo "-- errno: "; | |
echo curl_errno($ch); | |
curl_close($ch); |
This file contains 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
# see http://www.identityblog.com/?p=645 | |
dir = . | |
[ ca ] | |
default_ca = CA_default | |
[ CA_default ] | |
serial = $dir/serial | |
database = $dir/certindex.txt |
This file contains 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
git config --global --replace-all alias.relate '!f(){ git for-each-ref --format="%(refname:short) %(upstream:short)" refs | while read -r l r; do printf "%24s %s\\n" "$(git rev-list --cherry-mark --dense --left-right --boundary --oneline "${r:-${1:-HEAD}}...$l" -- | sed "s/^\\(.\\).*/\\1/" | sort | uniq -c | tr -d " " | tr "\\n" " ")" "$l"; done; }; f' | |
git config --global --replace-all alias.graph '!f(){ case "$#:$1" in 0:) r="HEAD...HEAD@{u}";; 1:*...*) r="$1";; 1:*) r="HEAD...$1";; *) r="$1...$2";; esac; git rev-list --cherry-mark --dense --left-right --boundary --pretty --graph "$r" -- | less -XFp "$(git rev-parse "${r%...*}")"; }; f' | |
git config --global --replace-all alias.graph1 '!f(){ case "$#:$1" in 0:) r="HEAD...HEAD@{u}";; 1:*...*) r="$1";; 1:*) r="HEAD...$1";; *) r="$1...$2";; esac; git rev-list --cherry-mark --dense --left-right --boundary --oneline --graph "$r" -- | less -XFp "$(git rev-parse "${r%...*}")"; }; f' | |
# THIS IS PUBLIC DOMAIN. | |
# Thanks to the makers of GIT for the extremely impressiv |
This file contains 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
#!/bin/bash | |
OOPS() { { printf 'OOPS:'; printf ' %q' "$@"; printf '\n'; } >&2; exit 23; } | |
x() { "$@"; } | |
o() { x "$@" || OOPS failed "$?:" "$@"; } | |
case "$#:$1" in | |
0:'') cat <<EOF | |
Usage: $0 ...tar.gz | |
Fixes following problem when an Import onto GitLab fails with following error: |
OlderNewer