Skip to content

Instantly share code, notes, and snippets.

View typomedia's full-sized avatar

Philipp Speck typomedia

View GitHub Profile
@typomedia
typomedia / lightdm.conf
Created April 10, 2016 18:53
Ubuntu Guest Autologin
#/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[SeatDefaults]
user-session=ubuntu
greeter-hide-users=true
greeter-show-manual-login=true
autologin-guest=true
autologin-user-timeout=0
autologin-session=lightdm-autologin
@typomedia
typomedia / init.mailpile.sh
Last active April 6, 2016 14:48
Debian SysVinit Script for Mailpile
#!/bin/sh
### BEGIN INIT INFO
# Provides: mailpile
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Mailpile
# Description: e-mail that protects your privacy
# Author: Typomedia Foundation
@typomedia
typomedia / auto.extract.sh
Last active March 25, 2016 21:01
Extract ZIP archives automatically after download
#!/bin/bash
# Copyright 2016 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# Inotify Auto Extract v1.0
watchdir=$HOME/Downloads
# run on specific events and return the filename only
inotifywait -q -m -e modify -e moved_to -e create --format '%f' $watchdir | while read FILE
#!/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 December 31, 2015 22:09
Simple FTP Backup Batch
@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 December 20, 2013 08:37
FFMPEG Transcoder Batch
@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 December 7, 2013 19:03 — forked from mattconnolly/openvpn.xml
OpenVPN SMF Manifest
<?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 December 29, 2015 14:19
MySQL Auto Restart Script
#!/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 December 27, 2015 20:49
OpenLDAP Object Class for Roundcube
# 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 December 23, 2015 06:19
This Visual Basic script sends an email if it finds files in a specific folder or subfolder which are newer than x minutes.
' 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")