This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Add rbenv to the path: |
| require 'formula' | |
| class Screen <Formula | |
| homepage 'http://www.gnu.org/software/screen/' | |
| url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
| md5 '8506fd205028a96c741e4037de6e3c42' | |
| # brew install --HEAD to get the latests, includes vertical split, mapped | |
| # to C-a | | |
| head 'git://git.savannah.gnu.org/screen.git', :branch => 'master' |
| require 'rubygems' | |
| require 'slim' | |
| Slim::Engine.set_default_options :pretty => true | |
| desc "Parse .slim layouts, ignoring any YAML front matter." | |
| task :parse_slim do | |
| print "Parsing Slim layouts..." | |
| Find.find('_layouts/slim/') do |filename| | |
| if filename.match(/\.slim\Z/) |
| module Jekyll | |
| require 'slim' | |
| Slim::Engine.set_default_options :pretty => true | |
| class SlimConverter < Converter | |
| safe true | |
| priority :low | |
| def matches(ext) | |
| ext =~ /slim/i |
| require 'formula' | |
| # This duplicates the system "screen", but fixes the ability | |
| # to use vertical splits. | |
| class Screen < Formula | |
| url 'http://ftpmirror.gnu.org/screen/screen-4.0.3.tar.gz' | |
| homepage 'http://www.gnu.org/software/screen' | |
| md5 '8506fd205028a96c741e4037de6e3c42' | |
| version '4.00.03' |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
| # Add these methods to your ApplicationController. Then, any controller | |
| # that inherits from it will have these methods and can programmatically | |
| # determine what filters it has set. | |
| class ApplicationController < ActionController::Base | |
| def self.filters(kind = nil) | |
| all_filters = _process_action_callbacks | |
| all_filters = all_filters.select{|f| f.kind == kind} if kind | |
| all_filters.map(&:filter) | |
| end |
| # Replace any brackets with real values | |
| # Try to ssh in to DREAMHOST (ensure it no longer asks for a PW); you may want to restart Terminal | |
| ssh [user]@[host] | |
| cd ~ | |
| mkdir [mydomain_com].git | |
| cd [mydomain_com].git | |
| git init --bare | |
| vi hooks/post-receive | |
| # Enter the code from the "post-receive" file (in this gist); save + quit |
| AddEncoding gzip .gz | |
| RewriteEngine on | |
| RewriteCond %{HTTP:Accept-encoding} gzip | |
| RewriteCond %{HTTP_USER_AGENT} !Konqueror | |
| RewriteCond %{REQUEST_FILENAME}.gz -f | |
| RewriteRule ^(.*)\.css$ $1.css.gz [QSA,L] | |
| RewriteRule ^(.*)\.js$ $1.js.gz [QSA,L] | |
| RewriteRule ^(.*)\.html$ $1.html.gz [QSA,L] |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |