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.
-- 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 |
-- 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 |
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.
#!/usr/bin/env python | |
""" | |
small script to check for unread count on imap inbox | |
""" | |
import imaplib | |
IMAPSERVER = '' | |
USER = '' | |
PASSWORD = '' |
#!/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 # |
<?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); |
import time | |
import requests | |
import json | |
class DownloadStationAPI(): | |
def __init__(self, host=None, username=None, password=None): | |
self.name = 'DownloadStation' |
#!/bin/sh | |
# | |
# Erstellt eine lokale Sicherung von /home/username, /var/www/virtual/username und der Datenbanken des Benutzers | |
# | |
# Voraussetzungen: | |
# Auf dem lokalen Computer sind die uberspaces in ~/.ssh/config wie folgt konfiguriert: | |
# Host uberspacename | |
# HostName sternenkonstellation.uberspace.de | |
# User uberspacename | |
# |
using terms from application "Mail" | |
on perform mail action with messages theMessages for rule theRule | |
set credentials to do shell script "security find-internet-password -g -s github.com 2>&1 | awk ' | |
/^password:/ { | |
sub(\".*password: \\\"\", \"\") | |
sub(\"\\\".*\", \"\") | |
password = $0 | |
} | |
/acct/ { |