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
version: "3" | |
services: | |
uptime-kuma: | |
image: louislam/uptime-kuma:latest | |
container_name: uptime-kuma | |
environment: | |
- TZ=Europe/Berlin | |
ports: | |
- 3001:3001 | |
network_mode: bridge |
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 | |
import argparse | |
import re | |
def correct_timestamp(timestamp): # will return a timestamp with HH:MM:SS.sss | |
print("subroutine for " + timestamp) | |
timestamp_split = timestamp.split(":") | |
if len(timestamp_split) == 2: | |
timestamp_split.insert(0, "00") |
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 | |
# Rødecaster Pro Extraction Tool | |
# This script assumes all recording files for a podcast episode to be in the same directory as the script | |
# It then extracts all 14 single channels from the wav file and concatenates them | |
# Regardless of how many (split) recording wav files you have it will always produce 14 flac files | |
# sox must be available on the system http://sox.sourceforge.net | |
# Rødecaster Pro channel config | |
# adjust this if you have a different channel setup for your polywav files |
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
<dataConfig> | |
<dataSource name="fds" encoding="ISO-8859-1" type="FileDataSource"/> | |
<document> | |
<entity name="files" | |
dataSource="null" | |
rootEntity="false" | |
processor="FileListEntityProcessor" | |
baseDir="/tmp/provision/import" | |
fileName=".*\.xml" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# It's a wheezy box with 64bit 7.3 Debian | |
# full lamp stack, yii framework 1.1.14 and all required PHP/Pear modules for devs |
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
# Codeception Test Suite Configuration | |
# suite for acceptance tests. | |
# perform tests in browser using the Selenium-like tools. | |
# powered by Mink (http://mink.behat.org). | |
# (tip: that's what your customer will see). | |
# (tip: test your ajax and javascript by one of Mink drivers). | |
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. |
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
--- | |
# file: group_vars/all | |
bootstrap_user: stephan # change this to your user account that manages the server | |
use_sudo: True | |
admin_email: mail@example.org | |
--- | |
# file: hardening.yml | |
- hosts: all | |
sudo: "{{ use_sudo }}" |
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
- name: PEAR installing modules | |
command: pear install {{ item }} | |
register: pear_result | |
with_items: | |
- pear.netpirates.net/phpDox | |
- pear.symfony.com/Yaml | |
- pear.phpmd.org/PHP_PMD | |
changed_when: pear_result.stdout.find("already installed") == -1 | |
results in errors like this: |
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
sub HMLAN_Initialize($) { # sub takes only one argument | |
my ($hash) = @_; # takes all arguments provided during the sub routine call and shoves them into $hash | |
require "$attr{global}{modpath}/FHEM/DevIo.pm"; # gets another perl module involved (need to check this for function definitions as well) | |
# Provider | |
$hash->{ReadFn} = "HMLAN_Read"; # basically assigns values to the attributes provided to the sub routine call | |
$hash->{WriteFn} = "HMLAN_Write"; | |
$hash->{ReadyFn} = "HMLAN_Ready"; | |
$hash->{SetFn} = "HMLAN_Set"; |
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 | |
# update-commit-setting.sh | |
# Usage: `update-commit-setting.sh [branch] [settings-file]` | |
BRANCH=${1:-'master'} | |
SETTINGS=${2:-'app/settings.json'} | |
BUILDNUMBER=$(expr $(git rev-list $BRANCH --count) - $(git rev-list HEAD..$BRANCH --count)) | |
echo "Updating build number in $SETTINGS to $BUILDNUMBER using branch '$BRANCH'." | |
sed "s/\"git-commit-count\": [0-9]*/\"git-commit-count\": $BUILDNUMBER/g" $SETTINGS > tmp.json |
NewerOlder