Skip to content

Instantly share code, notes, and snippets.

Eirworks eirworks

Block or report user

Report or block eirworks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
eirworks / 4chan.rb
Last active Oct 12, 2015
4chan images downloader
View 4chan.rb
#!/usr/bin/env ruby
# Beta 1
# This script is wget wrapper to automate downloading
# all images in a 4chan thread
# Only tested and work on linux (since it using its wget)
# Requirements:
# Nokogiri gem installed
View index.html
<style type="text/css">
<div class="colmenu">
eirworks / index.haml
Created Dec 11, 2011
Haml example in Indonesian language
View index.haml
!!! 5
%title Judul Halaman
%link{:rel => 'stylesheet', :href => 'style.css'}
%h1 Heading 1
Ini adalah paragraf
eirworks / user.rb
Created Dec 8, 2011
Workaround in Twitter Omniauth using Omniauth v1+ (Rails)
View user.rb
# In new Twitter Omniauth, you may encounter errors, first, please check the Omniauth env
auth = request.env["rack.auth"] #this is incorrect
auth = request.env["omniauth.auth"] #this is correct
# Another error I found is: 401 Unauthorized
# which is can be fixed in ROOT/config/initializer/omniauth.rb
# This is incorrect
eirworks / seed.php
Created Dec 7, 2011
A FuelPHP task example for seeding like in the Rails.
View seed.php
#seeding data
namespace Fuel\Tasks;
class Seed
public static function run()
$projects = array("Example Project Title"=>"Example Project description that descripting nothing...",
You can’t perform that action at this time.