Skip to content

Instantly share code, notes, and snippets.

Philipp Speck typomedia

Block or report user

Report or block typomedia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ffmpeg.h264.1080.sh
#!/bin/sh
# Copyright 2014 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# FFMPEG Transcoder Script v1.2
PATH=/opt/local/sbin:/opt/local/bin:$PATH
INPUT=/mnt/media/Movies
FTYPE=*.1080.rip.mkv
@typomedia
typomedia / wget.backup.cmd
Last active Dec 31, 2015
Simple FTP Backup Batch
View wget.backup.cmd
@ECHO OFF
ECHO Copyright 2013 Typomedia Foundation. All rights reserved.
ECHO Released under GPL version 3.
ECHO FTP Backup Batch 1.0
PAUSE
SET dest="//SERVER/Backup/Sites/%date%/"
REM Backup doamin.tld...
@typomedia
typomedia / ffmpeg.h264.cmd
Created Dec 20, 2013
FFMPEG Transcoder Batch
View ffmpeg.h264.cmd
@ECHO OFF
ECHO Copyright 2013 Typomedia Foundation. All rights reserved.
ECHO Released under GPL version 3.
ECHO FFMPEG Transcoder Script 1.0
PAUSE
SET input="\\SERVER\Movies"
SET ftype=*.rip.mkv
SET suffix="h264.mkv"
@typomedia
typomedia / openvpn.xml
Created Dec 7, 2013 — forked from mattconnolly/openvpn.xml
OpenVPN SMF Manifest
View openvpn.xml
<?xml version="1.0" ?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="export">
<service name="network/openvpn" type="service" version="0">
<create_default_instance enabled="true"/>
<single_instance/>
<dependency name="fs" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/local"/>
</dependency>
<dependency name="net" grouping="require_all" restart_on="none" type="service">
@typomedia
typomedia / restart.mysql.sh
Last active Dec 29, 2015
MySQL Auto Restart Script
View restart.mysql.sh
#!/bin/sh
# Copyright 2013 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# MySQL Auto Restart Script v1.0
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DBHOST=localhost
DBUSER=root
PASSWORD=********
@typomedia
typomedia / Roundcube.schema
Last active Dec 27, 2015
OpenLDAP Object Class for Roundcube
View Roundcube.schema
# Roundcube.schema is from <http://www.typomedia.org/>.
#
# Copyright 2013 Typomedia Foundation.
# All rights reserved.
#
# This schema is released under GPL version 3.
#
# OpenLDAP schema for Roundcube Webmail v1.4
objectIdentifier RoundcubeRoot 1.3.6.1.4.1.42766.4.2
@typomedia
typomedia / mail.newfiles.vbs
Last active Dec 23, 2015
This Visual Basic script sends an email if it finds files in a specific folder or subfolder which are newer than x minutes.
View mail.newfiles.vbs
' Copyright 2013 Typomedia Foundation. All rights reserved.
' Released under GPL version 3.
'
' VBS New Files Mailer v1.0
' Send a mail if files of a specific dir are newer than x minutes
Const strPath = "C:\foo\bar" 'or \\SERVER\foo\bar
Const intMin = 120 'Minutes
Set fso = CreateObject("Scripting.FileSystemObject")
@typomedia
typomedia / mail.zfs.status.sh
Last active Dec 22, 2015
ZFS Status Report Mailer
View mail.zfs.status.sh
#!/bin/sh
# Copyright 2013 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# ZFS Status Report Mailer v1.2
mailx -t \
<<EOF
MIME-Version: 1.0
FROM:Fileserver <server@domain.tld>
@typomedia
typomedia / rsync.exclude.list
Last active Dec 22, 2015
Rsync Exclude List Sample
View rsync.exclude.list
# /etc/default/rsync.exclude.list
# Copyright 2013 Typomedia Foundation. All rights reserved.
# Use is subject to license terms.
#
# Rsync Exclude List v1.0
#/boot
/cdrom
/dev
/lost+found
@typomedia
typomedia / rsync.backup.sh
Last active Dec 22, 2015
Rsync Remote Backup Script
View rsync.backup.sh
#!/bin/sh
# Copyright 2013 Typomedia Foundation. All rights reserved.
# Use is subject to license terms.
#
# Rsync Backup Script v1.3
EXEC=/usr/bin/rsync
SOURCEPATH=/mnt/dpool
DIRECTORIES=( media share works )
EXCLUDELIST=/etc/scripts/rsync.exclude.list
You can’t perform that action at this time.