This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: "press", | |
description: "Posts selected content from the current page to Pressmark.", | |
help: "Posts selected content from the current page to Pressmark.", | |
icon: "http://bookmark.alexgirard.com/favicon.ico", | |
homepage: "http://bookmark.alexgirard.com", | |
author: { name: "Alex Girard", email: "alex@lasindias.com"}, | |
contributors: ["Alex Payne"], | |
license: "WTFPL", | |
takes: {"link description": noun_arb_text}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd moebius_installation | |
./moebius.rb comic_file.cbr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wKU | |
servers = [ | |
{:id => 0, :alias => "aiko", :ip => "server_ip", :login => "ssh_login", :port => "ssh_port"} | |
] | |
# Read from command line | |
server_id = ARGV[0].to_i if !ARGV[0].nil? | |
# Read from input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name blog.feevy.com; | |
index index.php; | |
root /home/wwwfeev/blog; | |
if (!-e $request_filename) { | |
rewrite ^(.*)$ /index.php?q=$1 last; | |
break; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sgmllib, re, time, string, os, sys, getopt, logging | |
from xml.dom import minidom | |
# | |
# Script to transform a wordpress export file into multiple textile files | |
# | |
# Usage: | |
# pyhton wordpress-export-to-textile.py -o ~/output-dir/ ~/path-to-file/wordpress-export.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'merb' | |
require 'rfeedfinder-slice' | |
RfeedfinderSlice::Rfeedfinder.feed("http://alexgirard.com") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameError in 'Page should contain an element' | |
uninitialized constant LazyArray::RETURN_SELF | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.7/lib/dm-core/associations/one_to_many.rb:311:in `method_missing' | |
/Users/alx/legodata/app/legodata_cms/app/models/page.rb:22:in `parse_elements' | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.9/lib/extlib/hook.rb:258:in `execute_before_save_nan_hook_stack' | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.9/lib/extlib/hook.rb:293:in `save' | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.9/lib/extlib/hook.rb:292:in `catch' | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.9/lib/extlib/hook.rb:292:in `save' | |
./spec/models/page_spec.rb:13: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def media_upload_form(options = {}, &block) | |
form :action => url(:upload) do | |
# | |
# You can disallow tag text_field by setting options[:tags_enabled] to 0 | |
# | |
if options[:tags_enabled].nil? or options[:tags_enabled] != 0 | |
text_field(:name => "tags", :label => options[:tags_label] || "Tags") | |
end | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def media_upload_form(options = {}, &block) | |
form :action => url(:upload) do | |
# | |
# You can disallow tag text_field by setting options[:tags_enabled] to 0 | |
# | |
if options[:tags_enabled].nil? or options[:tags_enabled] != 0 | |
text_field(:name => "tags", :label => options[:tags_label] || "Tags") | |
end | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ FATAL: Permission denied for changing user:group to deploy:www-data. | |
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ | |
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ FRAMEWORK_ROOT = /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib | |
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ | |
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ Errno::EPERM: Operation not permitted | |
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ FRAMEWORK_ROOT/merb-core/server.rb:345:in `initgroups' | |
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ FRAMEWORK_ROOT/merb-core/server.rb:345:in `_change_privilege' | |
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ FRAMEWORK_ROOT/merb-core/server.rb:194:in `change_privilege' | |
merb : /home/deploy/legodata/slice_production : worker (port 4001) ~ FRAMEWORK_ROOT/merb-core/rack/adapt |
OlderNewer