Skip to content

Instantly share code, notes, and snippets.

Ian Chesal ianchesal

Block or report user

Report or block ianchesal

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
View gist:68fd7f9d5c7f1c5ff2e2
module AuthHelper
def http_login
user = 'username'
pw = 'password'
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw)
end
end
module AuthRequestHelper
#
@ianchesal
ianchesal / simpledesktops_download.py
Created Jul 8, 2011 — forked from compbrain/simpledesktops_download.py
Download simpledesktops.com wallpaper images
View simpledesktops_download.py
#!/usr/bin/python
__doc__ = """
simpledesktops_download.py
A quick script that fetches desktop images from the http://simpledesktops.com/ site.
It will start at the most current list of images and keep moving backwards, downloading
desktop images in to a directory on your local machine, until it finds an image that
already exists on disk. At that point it will stop.
You can’t perform that action at this time.