Skip to content

Instantly share code, notes, and snippets.

🐙
🎛️ 🔊

Moritz »mo.« Sauer Phlow

🐙
🎛️ 🔊
Block or report user

Report or block Phlow

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
@Phlow
Phlow / _phlow.yml
Last active Sep 15, 2019
Three templates for asciidoctor-pdf #asciidoctor #style #template
View _phlow.yml
font:
catalog:
# Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols
Open Sans:
normal: OpenSans-Regular.ttf
bold: OpenSans-Bold.ttf
italic: OpenSans-Italic.ttf
bold_italic: OpenSans-BoldItalic.ttf
Open Sans Condensed:
normal: OpenSansCondensed-Light.ttf
@Phlow
Phlow / gist:0acb94cb8f4fa0956701f83426bbd62c
Created Nov 9, 2018
Bookmarklet Translate Übersetzen Leo Dict Browser
View gist:0acb94cb8f4fa0956701f83426bbd62c
javascript:s%3D(window.getSelection%3Fwindow.getSelection():document.getSelection())%3Bif(s%3D%3D%27%27)%7Bif(window.getSelection)%7Bif(frames.length!%3D1)%7Bfor(i%3D0%3Bi<frames.length%3Bi%2B%2B)%7Bs%3Dframes%5Bi%5D.document.getSelection()%3Bif(s)break%3B%7D%7D%7D%7Dif(s%3D%3D%27%27)void(s%3Dprompt(%27Enter a search term or select the text you want to translate before clicking on LEOdict.%27,%27%27))%3Bif(s)%7Bleow%3Dopen(%27http://dict.leo.org/ende%3Fsearch%3D%27%2Bescape(s),%27LEODict%27,%27width%3D780,height%3D550,scrollbars%3Dyes,resizeable%3Dyes%27)%3Bleow.focus()%3B%7D
@Phlow
Phlow / guetzli-optimizer.sh
Created Feb 14, 2018
Guetzli JPG/JPEG Optimizer – This little script compresses JPG-files and shows you how many bytes Guetzli saved.
View guetzli-optimizer.sh
#!/bin/bash
#
# Guetzli JPG/JPEG Optimizer
# This little script compresses JPG-files and shows you how
# many bytes Guetzli saved you in the progress. Change the
# variable QUALITY to change the quality of the compression.
#
clear
QUALITY=85
@Phlow
Phlow / loop-category.liquid
Last active Feb 5, 2018
This Liquid loop for Jekyll loops through a defined category of your choice. Use this code-snippet as an include
View loop-category.liquid
{% comment %}
*
* This loop loops through a category of your choice and lists
* all entries. To address the category of your linking use the
* include like this:
*
* {% include loop-category category='webdesign' %}
*
{% endcomment %}
@Phlow
Phlow / schrifteninstallieren.sh
Last active Mar 10, 2017
Fonts Schriften Linux Installation installieren
View schrifteninstallieren.sh
#!/bin/bash
# Get script › wget https://gist.githubusercontent.com/Phlow/94ebb77a6b6cc6dccd3451436be43096/raw/2fee13d632dec696483d42f84c734e37fe17577a/schrifteninstallieren.sh
# Google Fonts
cd && wget https://raw.githubusercontent.com/hotice/webupd8/master/install-google-fonts
chmod +x install-google-fonts
./install-google-fonts
# Linux Libertine und EB Garamond
sudo apt-get install ttf-linux-libertine
sudo apt-get install fonts-ebgaramond fonts-ebgaramond-extra
sudo apt-get install ttf-mscorefonts-installer
@Phlow
Phlow / template.adoc
Created Mar 6, 2017
Asciidoc Asciidoctor Starter Template for Articles
@Phlow
Phlow / posting.sh
Last active Jan 23, 2018
Ask for a title and create a post for Jekyll in _posts and open in in your favorite editor
View posting.sh
#!/bin/bash
#
# Create a post for Jekyll
# Configuration
EDITOR='Atom'
DATE=`date +%Y-%m-%d`
DOCFORMAT='md' # Without Point (!)
DIRECTORY='./_posts/'
@Phlow
Phlow / resize-rename-sips-information.sh
Last active Dec 6, 2017
This script makes a copy of images, resizes the copied images and renames the copied images with the correct width and height. The information gets the script from sips.
View resize-rename-sips-information.sh
#!/bin/bash
#
# 1. This script copies all *.jpg-files to a new folder
# 2. Jumps into folder and resizes all files with sips
# 3. Renames all files and uses information from sips
#
folder="processed"
height="320"
width="160" # not used
@Phlow
Phlow / favicon.sh
Last active Sep 11, 2019
Favicon Generator: Generate favicons on Mac OSX via bash/shell with the help of sips command. Than optimize the images with ImageOptim (App)
View favicon.sh
#!/bin/sh
#
# Dieses Script fragt nach einer Bildatei, die dann in die
# verschiedenen Favicon-Größen mittels sips-Kommandos
# umgewandelt werden. Ist auf dem Rechner das Programm
# ImageOptim installiert, dann werden die Bilddateien
# anschließend verlustlos optimiert.
# Farben in Variablen schreiben (schönerer Output)
reset='\x1B[0m'
@Phlow
Phlow / renamedate.sh
Last active Jan 12, 2017
Bash Script um Dateien mit eigenem Entstehungsdatum und einer gewünschten Zeichenfolge umzubenennen.
View renamedate.sh
#!/bin/bash
# Rename Files with Date from File plus Extra Characters
clear;
# Farben zurücksetzen
printf '\e[0m'
echo " ____ ____ ____ ____ ____ ____ ____ "
echo " ||R |||e |||n |||a |||m |||e |||r ||"
echo " ||__|||__|||__|||__|||__|||__|||__||"
echo " |/__\|/__\|/__\|/__\|/__\|/__\|/__\|"
echo
You can’t perform that action at this time.