Skip to content

Instantly share code, notes, and snippets.

Avatar

Philipp Speck typomedia

View GitHub Profile
@typomedia
typomedia / FontCatalog.jsx
Created Apr 5, 2016
Adobe InDesign Script for Font Catalog
View FontCatalog.jsx
/*
Adobe InDesign Script - FontCatalog.jsx
Erstellt einen Schriftartenkatalog
Designstudio, Philipp Speck - www.destio.de
Copyright (c) 2012 Designstudio, Philipp Speck
*/
var doc=app.documents.add();
var appFonts=app.fonts;
View init.syncthing.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: syncthing
# 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: Syncthing
# Description: Automatically sync files via secure, distributed technology
# Author: Typomedia Foundation
@typomedia
typomedia / neos.nginx.vhost
Last active Jan 24, 2018 — forked from iwyg/neos.dev.conf
NGINX Virtual Host for NEOS 2.0/FLOW3
View neos.nginx.vhost
server {
listen 80;
server_name domain.tld;
root /usr/share/nginx/domain.tld/Web;
autoindex off;
access_log /var/log/nginx/$host-access.log;
error_log /var/log/nginx/$host-error.log error;
@typomedia
typomedia / ca cert
Created Aug 24, 2017 — forked from avianey/ca cert
Self signed client / server certificat
View ca cert
openssl genrsa -out ca.key 2048
openssl req -new -key ./ca.key -out ./ca.csr
openssl x509 -req -days 365 -in ./ca.csr -out ./ca.crt -signkey ./ca.key
openssl x509 -in ca.crt -text
openssl rsa -in ca.key -passin pass:XXXX -pubout -out ca.public.key
@typomedia
typomedia / init.plex.sh
Last active Mar 24, 2017
Plex Media Server Init Script
View init.plex.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: plexmediaserver
# Required-Start: $remote_fs $syslog $all
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Plex Media Server
# Description: Plex is a smart Media Server application for playing Music, Movies and other media
# Author: Typomedia Foundation
@typomedia
typomedia / dropbox
Created Aug 24, 2016 — forked from migrs/dropbox
/etc/init.d/dropbox
View dropbox
# /etc/init.d/dropbox
### BEGIN INIT INFO
# Provides: dropbox
# Required-Start: $network $syslog $remote_fs
# Required-Stop: $network $syslog $remote_fs
# Should-Start: $named $time
# Should-Stop: $named $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the dropbox daemon for debian/ubuntu
@typomedia
typomedia / pkgin.update.repo.sh
Last active May 30, 2016 — forked from jperkin/gist:3436515
Pkgin Repository Update Script
View pkgin.update.repo.sh
#!/bin/sh
# Copyright 2014 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# Pkgin Repo Update Script v1.0alpha
# Update repositories.conf for pkgin, and set $PKG_PATH for pkg_add
export PKG_PATH=http://pkgsrc.joyent.com/packages/SmartOS/2014Q1/x86_64/All
echo $PKG_PATH > /opt/local/etc/pkgin/repositories.conf
@typomedia
typomedia / lightdm.conf
Created Apr 10, 2016
Ubuntu Guest Autologin
View lightdm.conf
#/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 Apr 6, 2016
Debian SysVinit Script for Mailpile
View init.mailpile.sh
#!/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 Mar 25, 2016
Extract ZIP archives automatically after download
View auto.extract.sh
#!/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
You can’t perform that action at this time.