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
FROM ffeldhaus/xpra-html5-minimal | |
RUN mv /etc/apt/sources.list.d/xpra.list /etc/apt/sources.list.d/xpra.list.bak && \ | |
apt-get update -y && \ | |
apt-get install -y --no-install-recommends curl dirmngr gnupg2 ca-certificates gpg && \ | |
curl -s https://xpra.org/xpra.asc | gpg --dearmor | apt-key --keyring /etc/apt/trusted.gpg.d/xpra-apt-key.gpg add && \ | |
curl -s https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > /usr/share/keyrings/signal-desktop-keyring.gpg && \ | |
mv /etc/apt/sources.list.d/xpra.list.bak /etc/apt/sources.list.d/xpra.list && \ | |
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' > /etc/apt/sources.list.d/signal-xenial.list && \ | |
apt-get update -y && \ |
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
# extracted from vecan-dbus binary using | |
# od -i -w8 < ids | grep -m 1 65535 -B 1000 | while read -a REPLY ; do echo ${REPLY[1]} $(dd if=vecan-dbus bs=1 count=60 status=none skip=$((${REPLY[2]}-65536)) | cut -d '' -f1) ; done > products.txt | |
1 VPN | |
2 VBC | |
3 VVC | |
4 VCC | |
5 VCM | |
6 VGM | |
7 VRS | |
8 Free Technics software |
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
#!/usr/bin/env python3 | |
from vosk import Model, KaldiRecognizer, SetLogLevel | |
import sys | |
import os | |
import wave | |
import subprocess | |
import json | |
SetLogLevel(0) |
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
#!/usr/bin/awk -E | |
BEGIN { | |
while ((getline <"/proc/meminfo") > 0 ) { | |
gsub(/:/,""); | |
gsub(/\(/,"_"); | |
gsub(/\)/,""); | |
a[$1]=$2; | |
u[$1]=toupper($3); | |
} | |
swapfactor=(ENVIRON["swapfactor"]~/^[0-9]+$/)?ENVIRON["swapfactor"]:0.5; |
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
#!/opt/puppetlabs/puppet/bin/ruby | |
require 'yaml' | |
require 'puppet' | |
require 'optparse' | |
options = { | |
:lastrun_warn => 3600, | |
:lastrun_crit => 36000, | |
:runtime_warn => 25, |
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 | |
export LANG=C | |
export LC_ALL=C | |
R=3 | |
WC=0 | |
CC=0 | |
IGN=$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
class mymod::proxmox { | |
$loc = downcase(hiera('hostgroup')) | |
tag "hostgroup-$loc" | |
@@sshkey { "$hostname": | |
ensure => present, | |
host_aliases => [ $fqdn, $facts['networking']['ip'] ], | |
type => "rsa", | |
key => $sshrsakey, | |
} |
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
class mybase::jenkins::master { | |
Sshkey <<| tag == 'jenkinsslave' |>> | |
} |
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
#!/usr/bin/env perl | |
my $currentkernel = `uname -r`; | |
chomp($currentkernel); | |
`ls -t1 /boot/vmlinuz-* | head -1` =~ q!^/boot/vmlinuz-(.+)$!; | |
my $latestkernel = $1; | |
chomp($latestkernel); | |
if ($currentkernel eq '' || $latestkernel eq '') { | |
print "UNKNOWN, could not determine kernel version, current=\"$currentkernel\", latest=\"$latestkernel.\"\n"; |
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 | |
n=0; for i in * ; do mv $i $(printf '%04d\n' $n).jpg ; ((n++)); done | |
ffmpeg -y -f image2 -r ${1:-3} -i "%04d.jpg" -vf scale=-1:720 -c:v libx264 -crf 20 -preset slow -r 24 out.mp4 |
NewerOlder