Skip to content

Instantly share code, notes, and snippets.

View stevepaulo's full-sized avatar

Steve Paulo stevepaulo

  • Underdog Fantasy
  • San Ramon, CA
  • 00:43 (UTC -07:00)
  • X @stevepaulo
View GitHub Profile
@bobes
bobes / ril_to_instapaper.rb
Created April 13, 2011 06:18
Import your ReadItLater bookmarks into Instapaper
#!/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"
@oodavid
oodavid / README.md
Last active April 6, 2024 18:45 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@myobie
myobie / mountain-lion-brew-setup.markdown
Created February 18, 2012 20:14
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

@jeremyevans
jeremyevans / gist:7837679
Created December 7, 2013 05:42
Toto to Jekyll converter used to convert the sequel blog
# Run from jekyll dir
Dir['/path/to/toto/articles/*.txt'].sort.each do |path|
file = File.basename(path)
new_file = "_posts/#{file.sub(/\.txt\z/, '.md')}"
text = File.read(path)
headers, md = text.split("\n\n", 2)
raise "No title" unless headers =~ /^title: (.+)$/
title = $1
File.write(new_file, "---\n layout: post\n title: #{title}\n---\n\n#{md}")
end
@staringispolite
staringispolite / asciiputsonglasses
Last active March 22, 2024 06:39
Ascii art sunglasses meme
Puts on glasses:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
Takes off glasses ("mother of god..."):
(⌐■_■)
( •_•)>⌐■-■
@darkwing
darkwing / gulpfile.js
Created October 13, 2015 14:45
"punky" theme build file for David Walsh Blog
'use strict';
/*
Ways to improve site speed for theme:
===========================================
- Store fonts.css in localStorage, don't make request if it's there
- Create a custom FontAwesome lib, lazyload
*/
@theFreedomBanana
theFreedomBanana / convert_json_to_csv.rb
Created November 8, 2015 09:57
A ruby script to convert Json file to CSV
#Ruby version 2.1.1
require 'csv'
require 'json'
def json_to_csv(json_file, csv_file)
json_array = JSON.parse(File.open(json_file).read)
headers = collect_keys(json_array.first)
CSV.open(csv_file, "w", :write_headers=> true, :headers => headers) do |csv|
json_array.each { |item| csv << collect_values(item) }
@JoaquimLey
JoaquimLey / github_multiple-accounts.md
Last active April 30, 2023 22:17
How to Work with GitHub and Multiple Accounts

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key

@masutaka
masutaka / circle.yml
Created April 16, 2017 10:25
capistrano deployment using CircleCI 2.0
version: 2
jobs:
build:
docker:
- image: ruby:2.3.3-alpine
working_directory: /home/circleci/masutaka.net
steps:
- setup_remote_docker:
# https://circleci.com/docs/2.0/docker-layer-caching/
reusable: true