Skip to content

Instantly share code, notes, and snippets.

View yyolk's full-sized avatar
🍯
𝙧𝙚𝙘𝙪𝙧𝙨𝙞𝙫𝙚 𝙩𝙖𝙪𝙩𝙤𝙡𝙤𝙜𝙮

Joseph Chiocchi yyolk

🍯
𝙧𝙚𝙘𝙪𝙧𝙨𝙞𝙫𝙚 𝙩𝙖𝙪𝙩𝙤𝙡𝙤𝙜𝙮
View GitHub Profile
@yyolk
yyolk / summarize.rb
Created September 7, 2011 07:29 — forked from mat813/summarize.rb
Jekyll filter for summary text between two <!-- CUT --> tags
module Jekyll
module Filters
def summarize(str, splitstr = /\s*<div id="extended">/)
str.split(splitstr)[0]
end
end
end
@yyolk
yyolk / gist:e818c7ce5696f8f624ad
Created September 29, 2015 20:38 — forked from ericandrewlewis/gist:95239573dc97c0e86714
Setting up a WordPress site on AWS

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

@yyolk
yyolk / bot.rb
Created March 3, 2012 01:50
RSS Twitter Bot
##
## This file is originally from: http://snippets.dzone.com/posts/show/3714 by user `jnewland`
## Instructions by jnewland:
##
## Run this once with the lines uncommented to create the DB, then slap it in your crontab.
##
## That's it!
require 'rubygems'
<!DOCTYPE html>
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Font Test" />
<meta name="author" content="Quinn Keaveney" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
@yyolk
yyolk / README.md
Created June 8, 2012 10:03 — forked from vanto/README.md
OEmbed Liquid Tag for Jekyll

OEmbed Liquid Tag for Jekyll

This is a simple liquid tag that helps to easily embed images, videos or slides from OEmbed enabled providers. It uses Magnus Holm's great oembed gem which connects to the OEmbed endpoint of the link's provider and retrieves the HTML code to embed the content properly (i.e. an in-place YouTube player, Image tag for Flickr, in-place slideshare viewer etc.). By default it supports the following OEmbed providers (but can fallback to Embed.ly or OoEmbed for other providers):

  • Youtube
  • Flickr
  • Viddler
  • Qik
  • Revision3
  • Hulu
  • Vimeo
@yyolk
yyolk / rubycocoa.rb
Created August 4, 2012 16:19
RubyCocoa homebrew formula
require 'formula'
class Rubycocoa <Formula
url 'http://downloads.sourceforge.net/project/rubycocoa/RubyCocoa/1.0.2/RubyCocoa-1.0.2.tar.gz'
homepage 'http://rubycocoa.sourceforge.net/'
md5 'eb6127054b808c2700c6253c8a4793c3'
def keg_only?
:provided_by_osx
end
@yyolk
yyolk / kloutinfinite.js
Created August 23, 2012 23:21
User script to change the value of your klout score to another useless score.
$(function() {$(".value").text("∞"); } );
@yyolk
yyolk / emojiics.js
Created August 23, 2012 23:45
Use emojii from http://www.emoji-cheat-sheet.com/ and set it to your klout score. For #SCREENSHOTS
$(function() { var emojii = prompt(">"); $(".value").html("<img src='https://raw.github.com/arvida/emoji-cheat-sheet.com/master/public/graphics/emojis/"+emojii.substring(1, emojii.length-1)+".png'>"); });
@yyolk
yyolk / eomjiifbb.js
Created August 24, 2012 00:39
Emojii on FB bookmarklet
javascript:(function(){var emojii = prompt(">"); prompt('',"http://www.emoji-cheat-sheet.com/graphics/emojis/"+emojii.substring(1, emojii.length-1)+".png");})();
@yyolk
yyolk / emojiifbte.sh
Created August 25, 2012 01:37
Emojii + Facebook + TextExpander
#!/bin/bash
export EMOJII="$(echo %clipboard | sed -n -e 's/:\(.*\):/\1/p')"
echo "http://www.emoji-cheat-sheet.com/graphics/emojis/$EMOJII.png"