Skip to content

Instantly share code, notes, and snippets.

View Demeter's full-sized avatar

demeter Demeter

  • 14:16 (UTC -07:00)
View GitHub Profile
I took the top suggestion out of google suggest, try it for yourself.
http://www.google.com/webhp?complete=1&hl=en
does god... exist
why are religions... different
why are jews... hated
why are muslims... so violent
why are christians... so judgemental
why are buddhists... vegetarian
why cant we.. be friends
@Demeter
Demeter / sothebys.rb
Created September 17, 2011 00:41 — forked from henrik/sothebys.rb
Sotheby's full-size image ripper
#!/usr/bin/env ruby
# Sothebys full-size image ripper.
# Gets the full-size images from the lots listed after __END__.
# By Henrik Nyh <http://henrik.nyh.se> 2010-12-23 under the MIT license.
require "open-uri"
# We get an error page if we do not specify a user agent.
USER_AGENT = "Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; Media Center PC 4.0; SLCC1; .NET CLR 3.0.04320)"
@Demeter
Demeter / ip-uploader.py
Created September 18, 2011 05:16 — forked from PHLAK/ip-uploader.py
Connects to whatismyip.com, obtains your external IP address and uploads a text file containg the IP to a chosen FTP server. Requires Python to run.
#! /usr/bin/env python
import httplib
import sys
import os
import ftplib
# File IP will be output to
file="ip.txt"
# Replace server, user, and password with your login information
@Demeter
Demeter / file.md
Created September 18, 2011 05:31 — forked from quirkey/file.md
From Tessy to everyone

Hello How are you today, I hope all is well with you .I am sorry to worry you with my proposal for a relationship with you, but I know that you will grant my request in good faith and understanding, My name is Tessy I just went through your profile today at (github.com) and i have no options than letting you know that i am interested in having a relationship with you, I will also like to Know you the more, you can send an email to my email address so that I can send you more details about my self including my picture. I believe we can move from here. But bear in mind that love has no colors barrier, no educational back ground barrier, no socio-economic barrier, religious, language, nationality or distance barrier, the only important thing there is love. I am waiting for your mail to my email address above. Yours sincerely.

Tessy,

@Demeter
Demeter / user_flask_appengine.py
Created September 19, 2011 23:54 — forked from code/user_flask_appengine.py
googappapiflaskIDs
from flask import g, session
from google.appengine.api import users
class GuestUser(object):
def email(self):
return None
def nickname(self):
return 'Guest'
@Demeter
Demeter / uploading
Created September 20, 2011 00:11 — forked from zhasm/uploading
Simple uploader guide
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@Demeter
Demeter / unshortenurl.py
Created September 20, 2011 00:14 — forked from zhasm/unshortenurl.py
Restore shortened URLs
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#author: rex
#blog: http://iregex.org
@Demeter
Demeter / stackoverflow_tagged_quest.php
Created October 14, 2011 18:12 — forked from lplume/stackoverflow_tagged_quest.php
mini wrapper web based, look for questions w/ tagged and min score given
<?php
/*
* uri param to this "web script"
* q = tag values split by a semicol
* minscore = min score (int)
*
* it's a lil bit nasty, but can modify so easy, the same to turn into a shell script
*/
$url = "http://api.stackoverflow.com/1.0/questions?tagged=".urlencode($_GET["q"]);
@Demeter
Demeter / Oink questions on StackOverflow
Created October 14, 2011 18:13 — forked from iconara/Redis questions on StackOverflow
How to query StackOverflow for the most recent, unanswered but upvoted, questions tagged "oink"
#!/usr/bin/env ruby
require 'zlib'
require 'open-uri'
require 'json'
io = Zlib::GzipReader.new(open("http://api.stackoverflow.com/1.0/questions?tagged=oink&sort=votes&min=1"))
obj = JSON.parse(io.read)
@Demeter
Demeter / password_generator.rb
Created October 14, 2011 18:18 — forked from code/password_generator.rb
Password generator
# File: password_generator.rb
# Author: Luke Hubbard
# Gist: http://gist.github.com/21812
# License: MIT
require 'digest'
class PasswordGenerator
CHARS = (('a'..'z').to_a + ('0'..'9').to_a) - %w(i o 0 1 l 0)
SIZE = 9