Skip to content

Instantly share code, notes, and snippets.

View pbendersky's full-sized avatar

Pablo Bendersky pbendersky

View GitHub Profile
@pbendersky
pbendersky / GitHub Pages using Jekyll on Docker.markdown
Last active April 14, 2020 21:04
Brief tutorial on how to create a Jekyll based blog on GitHub Pages using Docker

Requirements

  • A running Docker installation.

Create your blog

We'll be using the github-pages gem and the Jekyll Docker image.

The last version of the pages-gem (204) uses Jekyll 3.8.5, so we'll start with that Docker image as a base.

@pbendersky
pbendersky / wwdc2015.rb
Created June 10, 2015 14:17
WWDC 2015 Video Downloader
require 'open-uri'
require 'nokogiri'
require 'yaml'
require 'mail'
WWDC_MAIN_URL="https://developer.apple.com/videos/wwdc/2015/"
def video_urls
doc = Nokogiri::HTML(open(WWDC_MAIN_URL))
{
"thumbs": [
{
"name": "AFNetworking",
"votes": [
{
"type": "up",
"voter": "@pbendersky",
"comment": "Excellent library!"
}

Keybase proof

I hereby claim:

  • I am pbendersky on github.
  • I am pbendersky (https://keybase.io/pbendersky) on keybase.
  • I have a public key whose fingerprint is 18C2 BA85 6570 77E5 15C1 7E63 D996 B82E 4FD6 6F61

To claim this, I am signing this object:

Usage

  1. Place wwdc2014VideoDownload.sh on the same folder you want the videos downloaded.
  2. Connect to ethernet in Moscone (WiFi will not work)
  3. cd to this folder and run the script: ./wwdc2014VideoDownload.sh

Notes

  • You will need wget installed.