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 'rake' | |
require 'logger' | |
require 'pdf-reader' | |
#Usage | |
# [1] Create a new directory and copy pdf2txt.rb in this directory. | |
# [2] Insert also your pdf files in this directory. | |
# For every pdf file in this directory, this script will create a new textfile extracting the text from your original pdf file. | |
# File paths nad Log paths |
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 'innate' | |
class Demo | |
include Innate::Node | |
map '/' | |
provide :html, :engine => :Etanni, :type => 'text/html' | |
@@header =<<-HEADER | |
<?xml version="1.0" ?> |
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
http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/ | |
http://henrik.nyh.se/2008/03/flickr-style-tag-splitting-in-ruby | |
Shellwords::shellwords('foo "bar baz" qux') | |
=> ["foo", "bar baz", "qux"] |
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 'innate' | |
class Rpanel | |
Innate.node '/' | |
provide :html, :engine => :Etanni, :type => 'text/html' | |
def index(lang="en") | |
if request.post? | |
@user, @pass = request[ 'user', 'pass'] |
/usr/sbin/mknod <file_name> b|c <major#> <minor#>
- Name the file something easily associated with the device
- Use b for block device special file or c for character device special file. If the device is a block type device such as a tape or disk drive which needs both cooked and raw special files, the type is b. All other devices are character type devices, such as terminal and pseudo devices, and are type c.
- Set the major and minor number for the device as reported from `lsdev`. The major device number is an integer number which tells the kernel which device driver entry point to use. The minor device number tells the kernel which subunit the node corresponds to on the device.
For example let’s create a node /dev/xvd as a block device:
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
#vtypal#############################################02/23 | |
# My SciTEGlobal.properties file for win32 platforms(v_3_3_5) | |
########################################################## | |
# Global initialisation file for SciTE | |
# For Linux, place in $prefix/share/scite | |
# For Windows, place in same directory as SciTE.EXE (or Sc1.EXE) | |
# Documentation at http://www.scintilla.org/SciTEDoc.html | |
# Globals |
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
#~ +++++++++++++++++++++++++++++++++++++++++++++++++++ | |
#~ Installing RedCloth on Windows / win32 platforms | |
#~ ++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
#~ Find all the available RedCloth versions with a gem query | |
#~ C:\>gem19 query --remote -d -a -n RedCloth | |
=begin |
OlderNewer