This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html class="no-js" lang="de"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Index</title> | |
<style type="text/css"> | |
body,html { | |
margin: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# When renaming files in terminal, you can use their time stamp. This bash/shell script helps you. | |
# | |
# One liner: for f in *.jpg; do D=$(date -r $(stat -f %B $f) +%Y-%m-%d-%H-%M-%S); mv -vi "$f" "$D-$f"; done | |
for datei in *.jpg | |
do VARIABLE_WITH_FORMATTED_DATE=$(date -r $(stat -f %B $datei) +%Y-%m-%d-%H-%M-%S) | |
mv -vi "$datei" "$VARIABLE_WITH_FORMATTED_DATE-$file" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Create a post for Jekyll | |
# Configuration | |
EDITOR='Atom' | |
DATE=`date +%Y-%m-%d` | |
DOCFORMAT='md' # Without Point (!) | |
DIRECTORY='./_posts/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
* | |
* Counter: This include counts your jekyll posts | |
* | |
{% endcomment %}{% assign counter = 0 %}{% for item in site.posts %}{% unless item.published == false %}{% assign counter=counter | plus:1 %}{% endunless %}{% endfor %}{{ counter }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for c in site.collections %} | |
{% assign docs=c[1].docs %} | |
{% for doc in docs %} | |
// do something | |
{% endfor %} | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box-shadow { box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), | |
0 1px 5px 0 rgba(0,0,0,0.12), | |
0 3px 1px -2px rgba(0,0,0,0.2); | |
} |