News
- Google Reader
- Instapaper
- Pinboard
- Readability
- Storify
import time | |
import requests | |
import json | |
class DownloadStationAPI(): | |
def __init__(self, host=None, username=None, password=None): | |
self.name = 'DownloadStation' |
<?php | |
##config for homelocation and radius (in meter) | |
$myhomelat = "52.49993"; | |
$myhomelng = "13.39190"; | |
$myradius = "300"; | |
## get the drive now json | |
$driveURL = "https://www.drive-now.com/php/metropolis/json.vehicle_filter?cit=6099"; | |
$process = curl_init($driveURL); | |
curl_setopt($process, CURLOPT_HEADER, false); |
#!/bin/bash | |
# | |
## @file rgb-colored-echo.sh | |
## @author Amber Jain | |
## @section DESCRIPTION A bash pretty print script which provides red/green/blue colored echo functions | |
## @section LICENSE ISC | |
################# | |
# Documentation # |
#!/usr/bin/env python | |
""" | |
small script to check for unread count on imap inbox | |
""" | |
import imaplib | |
IMAPSERVER = '' | |
USER = '' | |
PASSWORD = '' |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
-- The shellscript: | |
-- #!/bin/sh | |
-- sudo mount_nfs -P 192.168.0.1:sharename ~/localPath | |
tell application "Terminal" | |
do shell script "~/.shellscript.sh" password "yourpassword" with administrator privileges | |
quit | |
end tell |
-- See article here: http://daringfireball.net/2007/07/simple_inbox_sweeper | |
-- The following should be one long line: | |
set _description to "All unflagged, read messages in each IMAP account | |
inbox will be moved to the “Archive” mailbox corresponding to that | |
account. This action is not undoable." | |
tell application "Mail" | |
display alert "Archive read messages from IMAP inboxes?" buttons ¬ | |
{"Cancel", "Archive"} cancel button 1 message _description |