A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| ########## SETTINGS | |
| # On startup, lftp executes ~/.lftprc and ~/.lftp/rc. You can place aliases and 'set' commands | |
| # there. Some people prefer to see full protocol debug, use 'debug' to turn the debug on. | |
| # Certain commands and settings take a time interval parameter. It has the format Nx[Nx...], where N is time amount | |
| # (floating point) and x is time unit: d - days, h - hours, m - minutes, s - seconds. Default unit is second. E.g. | |
| # 5h30m or 5.5h. Also the interval can be 'infinity', 'inf', 'never', 'forever' - it means infinite interval. E.g. | |
| # 'sleep forever' or 'set dns:cache-expire never'. |
| #!/bin/bash | |
| # Quick script to automate video upload from CLI to YouTube. | |
| # More info and requirements at https://github.com/tokland/youtube-upload | |
| # BEFORE starting: replace 'francesco' with your own username to make it work! | |
| if [[ $# != 3 ]]; then | |
| echo "Error: wrong number of arguments. It should be 3, you put $#." | |
| echo "Usage: ./youtube-uploader-cli.sh [video title] [video path] [public | unlisted | private]" | |
| exit -1 |
| #!/bin/bash | |
| # user vars | |
| GIT_VERSION="2.9.1" | |
| # script vars | |
| WORKDIR="/tmp/git_temp" | |
| CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| # the actual script |
| #!/bin/bash | |
| # crontab entry | |
| # 0 0 * * * /bin/bash /home/francesco/fpiracom_static_backup.sh > /dev/null 2>&1 | |
| # | |
| # variables | |
| # | |
| ENV_PATH="/home/francesco/Code/awscli_lisa" # path to your virtualenv with awscli module |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| #! python2 | |
| # | |
| # Pythonista script to replace custom domain urls with site.baseurl in jekyll posts. | |
| # Usage: from a text editor app, share text to this script. It will return 'jekyllfied' | |
| # text in another share popup. See it in action: | |
| # | |
| # @Author | |
| # Francesco Pira (dev at fpira dot com) | |
| # |
| --- | |
| layout: default | |
| permalink: /search/ | |
| --- | |
| <!-- | |
| http://10consulting.com/2013/03/06/jekyll-and-lunr-js-static-websites-with-powerful-full-text-search-using-javascript/ | |
| --> | |
| <div class="home"> |
| #!/usr/bin/env python2 | |
| ################################################################# | |
| # | |
| # index generator | |
| # generate index.html with links to files in the same folder | |
| # | |
| # use case: access files in a folder (e.g. dir with PDFs files) | |
| # from browser and avoid turning directory listing on in your | |
| # webserver. |
| #!/bin/bash | |
| if [[ $# != 1 ]]; then | |
| echo "Error: you need to pass the path where markdown file are!" | |
| echo "Usage: ./jekyllfy_image_urls.sh [path]" | |
| exit 1 | |
| fi | |
| # changing urls... (this edit in place creating NO backup files!) | |
| find "$1" -name "*.md" -exec sed -i '' 's#http://your.website.com#{{site.baseurl}}#g' {} \; |
| #!/bin/bash | |
| # credits: http://stackoverflow.com/questions/31280912/how-to-install-php-5-6-on-raspbian-wheezy | |
| ### VARIABLES ### | |
| # type here the specific php 5.x version you want to install | |
| PHP_VERSION="5.6.20" | |
| ### SCRIPT ### |