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:
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:
GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.
{
"name": "web",
"active": true,
| class PostsController < ActionController::Base | |
| def create | |
| Post.create(post_params) | |
| end | |
| def update | |
| Post.find(params[:id]).update_attributes!(post_params) | |
| end | |
| private |
| #!/usr/bin/env ruby | |
| # 1. export your RIL bookmarks | |
| # 2. save this file to the same directory where your ril_export.html is | |
| # 3. change username and password in the script bellow | |
| # 4. run 'ruby ril_to_instapaper.rb' in terminal | |
| require "cgi" | |
| require "net/http" | |
| require "net/https" |
| # using rvm with ruby-1.8.7-p249 | |
| # latest version 2.7.7 2010-06-17 | |
| brew install libxml2 | |
| # installing libxslt from source code | |
| wget ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz | |
| tar xvfz libxslt-1.1.26.tar.gz | |
| cd libxslt-1.1.26 | |
| ./configure --prefix=/usr/local/Cellar/libxslt/1.1.26 --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.7 |
| # | |
| # Quick hack to map an iOS app's Core Data managed SQLite database into ActiveRecord | |
| # | |
| class CoreDataBase < ActiveRecord::Base | |
| self.abstract_class = true | |
| set_primary_key "Z_PK" | |
| # Map all ZXXX attributes to XXX |
| # If your workers are inactive for a long period of time, they'll lose | |
| # their MySQL connection. | |
| # | |
| # This hack ensures we re-connect whenever a connection is | |
| # lost. Because, really. why not? | |
| # | |
| # Stick this in RAILS_ROOT/config/initializers/connection_fix.rb (or somewhere similar) | |
| # | |
| # From: | |
| # http://coderrr.wordpress.com/2009/01/08/activerecord-threading-issues-and-resolutions/ |