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
<?php | |
// need to download simple_html_dom.php from SourceForge | |
// http://sourceforge.net/projects/simplehtmldom/files/ | |
// and place it in the same directory as this script | |
require_once( 'simple_html_dom.php' ); | |
// http://simplehtmldom.sourceforge.net/manual_api.htm | |
$base = 'http://www.doaj.org/doaj?func=search&template=&uiLanguage=en&query='; | |
$query = urlencode( 'librarianship' ); |
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 | |
# -*- coding: utf-8 -*- | |
"""Script to bootstrap an Odoo database (8.0).""" | |
import odoorpc | |
# Odoo connection | |
SUPER_PWD = 'admin' | |
HOST = 'localhost' | |
PORT = 8069 | |
DB = 'my_db' |
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
import sys, select | |
print "You have ten seconds to answer!" | |
i, o, e = select.select( [sys.stdin], [], [], 10 ) | |
if (i): | |
print "You said", sys.stdin.readline().strip() | |
else: | |
print "You said nothing!" |
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
- Take the
download.sh
file and put it into a directory where you want the files to be saved. cd
into the directory and make sure that it has executable permissions (chmod +x download.sh
should do it)- Run
./download.sh
and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.