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 file in *; do mv $file `basename $file `.md; 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
# | |
# Rename Screenshots, Make Thumbnails, Optimize Images with Imageoptim | |
# | |
clear; | |
echo -e '\n- - - - - - - - - - - - - - - - -'; | |
echo -e '\n Screenshotter V.1.0 '; | |
echo -e '\n- - - - - - - - - - - - - - - - -'; | |
# Wenn Variablen gesetzt sind, dann bitte los... |
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 | |
# Copy MP3 files in a directory to a new name based solely on creation date | |
# FROM: foo.mp3 Created on: 2012-04-18 18:51:44 | |
# TO: 20120418_185144.mp3 | |
for i in *.mp3 | |
do | |
# mod_date=$(stat -c "%y" "$i"|sed 's/\..*$//') | |
# mod_date=$(stat -c "%y" "$i"|awk '{print $1"_"$2}'|sed 's/\..*$//') | |
mod_date=$(stat --format %y "$i"|awk '{print $1"_"$2}'|cut -f1 -d'.'|sed 's/[: -]//g') | |
cp "$i" "$mod_date".mp3 |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
<h2>Categories</h2> | |
<ul> | |
{% assign categories_list = site.categories %} | |
{% if categories_list.first[0] == null %} | |
{% for category in categories_list %} | |
<li><a href="#{{ category | downcase | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category | camelcase }} ({{ site.tags[category].size }})</a></li> | |
{% endfor %} | |
{% else %} | |
{% for category in categories_list %} | |
<li><a href="#{{ category[0] | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category[0] | camelcase }} ({{ category[1].size }})</a></li> |
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 %} | |
# | |
# Explanation: | |
# | |
# This include splits the content of {{ content }} into | |
# two parts if Jekyll finds an excerpt separator. This allows | |
# extra styling of the first part to enlarge the the fontsize | |
# of the teaser for example. | |
# | |
# The excerpt separator can be defined directly in your |
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
{% comment %} | |
# | |
# Change date order by adding '| reversed' | |
# To sort by title or other variables use {% assign sorted_posts = category[1] | sort: 'title' %} | |
# | |
{% endcomment %} | |
{% assign sorted_cats = site.categories | sort %} | |
{% for category in sorted_cats %} | |
{% assign sorted_posts = category[1] | reverse %} | |
<h2 id="{{category[0] | uri_escape | downcase }}">{{category[0] | capitalize}}</H2> |
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 %} |