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:
#coding: utf-8 | |
import keychain | |
import console | |
import editor | |
import time | |
import re | |
import requests | |
import json |
#!/bin/sh | |
# | |
# Orinally made by Lovell Fuller for sharp | |
# https://github.com/lovell/sharp | |
# | |
# Usage: | |
# curl -s https://gist.githubusercontent.com/h2non/89bb2f87c6499d0b25f1/raw/bf3d0743107f02f5db2b93c53f7f0e07a1c33112/libvips-installer.sh | sudo bash - | |
# |
/** | |
* Compares two software version numbers (e.g. "1.7.1" or "1.2b"). | |
* | |
* This function was born in http://stackoverflow.com/a/6832721. | |
* | |
* @param {string} v1 The first version to be compared. | |
* @param {string} v2 The second version to be compared. | |
* @param {object} [options] Optional flags that affect comparison behavior: | |
* <ul> | |
* <li> |
#!/bin/bash | |
# reset/update script to deploy a new stable version of a rails 4.x app served by Puma. | |
### REQUIREMENTS ### | |
# this script makes use of another script, 'pumascript'.you can find it in my gists. | |
# http://gist.github.com/pirafrank | |
# this script assumes RAILS_ENV is set to 'production' on your server. |
"hey, don't care about me!" | |
the purpose of this file is just to properly name the gist (silly Github!). |
#!/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' {} \; |
--- | |
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"> |
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:
#!/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 | |
# 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 ### |