Skip to content

Instantly share code, notes, and snippets.

View typomedia's full-sized avatar

Philipp Speck typomedia

View GitHub Profile
@typomedia
typomedia / Sysinfo.nsh
Created November 6, 2023 21:04
NSIS script provides macros to retrieve system information
# Sysinfo.nsh
# Copyright 2023 Typomedia Foundation. All rights reserved.
# Released under MIT License.
#
# This script provides macros to retrieve system information.
# It uses the wmic command to retrieve the information.
!include LogicLib.nsh
!include StrFunc.nsh
@typomedia
typomedia / listmonk.sh
Last active March 11, 2024 09:38
Listmonk Installer & Updater
#!/bin/bash
# Copyright 2023 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# Listmonk Installer & Updater
json=$(curl -LsS 'https://api.github.com/repos/knadh/listmonk/releases/latest')
link=$(echo $json | jq -r '.assets[] | select(.name | contains("linux_amd64.tar.gz")).browser_download_url')
dest=/usr/local/bin
@typomedia
typomedia / phpstorm.sh
Last active February 6, 2021 07:29
JetBrains PhpStorm Updater
#!/bin/bash
# Copyright 2021 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# JetBrains PhpStorm Installer/Updater
url="https://download.jetbrains.com/product?code=PS&latest&distribution=linux"
dst="/opt/JetBrains/PhpStorm"
sudo rm -rf $dst && sudo mkdir -p $dst
@typomedia
typomedia / ca cert
Created August 24, 2017 09:31 — forked from avianey/ca cert
Self signed client / server certificat
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 / dropbox
Created August 24, 2016 18:42 — forked from migrs/dropbox
/etc/init.d/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 / 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 / FontCatalog.jsx
Created April 5, 2016 12:26
Adobe InDesign Script for Font Catalog
/*
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;
@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
@typomedia
typomedia / bash-cheatsheet.sh
Created November 1, 2015 09:51 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04