19. September 2011 | Tags: alfred, automation, bash, bittorrent, cd, cmyk, code, color, cron, design, download, dropbox, editor, encryption, fun, geek, gtd, hex, linux, mac, mdfind, monitoring, office, osx, p2p, powershell, python, rgb, ruby, screen, script, security, shell, spotlight, sysadmin, terminal, tmux, tmuxinator, unix, vi, vim, web, windowmanagement, windows, yaml
Meine pinboard.in-Links vom 30. August bis zum 16. September:
- solo – is a very simple script (10 lines) that prevents a program from running more than one copy at a time. It is useful with cron to make sure that a job doesn't run before a previous one has finished
- teamocil – is a tool used to automatically create sessions, windows and splits in tmux with Ruby and YAML. Like tmuxinator, but with splits, not just windows.
- BoxCryptor – is a cryptographic virtual harddisk that encrypts all data on-the-fly using the AES-256 standard. Encrypted data is stored in an arbitrary directory of your choice, e.g. one that is synced to the cloud like your Dropbox folder.
- ColorPicker Pro – is an easy to use color detection tool for developers and designers.
- auto_torrent – Give it a list of stuff to look out for, set your bittorrent client’s ‘watch’ directory to match auto_torrent’s download directory, infringe copyright without lifting a finger.
- Supervisor – is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
- Jump – type j in a terminal, and enter your query at the prompt: results will be updated live as you type. Switch between suggestions with up and down arrow, select with enter and boom you’re in the right directory. Basically, all the fancy web 2.0 autosuggest mojo right in your terminal.
- Vigor – the popular Unix editor vi with the addition of the Vigor Assistant, has arrived.
- Conque – is a Vim plugin which allows you to run interactive programs, such as bash on linux or powershell.exe on Windows, inside a Vim buffer. In other words it is a terminal emulator which uses a Vim buffer to display the program output.
2. Juli 2011 | Tags: activedirectory, ad, ascii, bash, cluster, code, cron, css, design, font, git, gtd, html, itunes, javascript, ldap, linux, mac, markdown, music, osx, python, remote, shell, ssh, sysadmin, txt, typography, unix, versioncontrol, visio, visualization, wallpaper, web, webdesign, windows
Meine pinboard.in-Links vom 7. Juni bis zum 29. Juni:
- cronwhip – is a simple script to run cronjobs that would have been run since the last system shutdown.
- html2txt – is a Python script that converts a page of HTML into clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown
- Asciiflow – Diagramme. In Ascii-Art. Awesome.
- The Great Typekit Table –
- Subtle Patterns – High quality patterns for your next web project
- Useful HTML-, CSS- and JavaScript Tools and Libraries –
- Active Directory Topology Diagrammer – reads an Active Directory configuration using LDAP, and then automatically generates a Visio diagram of your Active Directory and /or your Exchange Server topology.
- Gity – yet another open source git client for OS X
- csshx – is a tool to allow simultaneous control of multiple SSH sessions through OS X Terminal.app
- TuneConnect 2 – iTunes remote control software for Mac OS X
- tools-osx – A small collection of command line tools for Mac OS X, incl.: clipcat, eject, swuser & trash.
15. April 2011 | Tags: 2k, 7, backup, clipboard, code, copy, cron, datamining, dos, dropbox, editor, emulator, facebook, fun, games, geek, git, gtd, howto, html, internet, itunes, iweb, keyboard, linux, mac, management, marketing, osx, paste, pdf, php, plugin, programming, python, regexp, ruby, scraping, screen, script, scrum, shell, shortcuts, simulator, socialnetwork, tool, twitter, txt, unix, versioncontrol, vim, vista, web, website, wiki, windowmanager, windows, writing, xp
Meine pinboard.in-Links vom 21. März bis zum 3. April:
- Boxer – plays all the MS-DOS games of your misspent youth, right here on your Mac.
- Vim Recipes – is a free cookbook for Vim, the popular text editor. It does not replace Vim's excellent built-in documentation, but complements it by focussing on tasks rather than commands.
- WinSplit Revolution – is a small utility which allows you to easily organize your open windows by tiling, resizing and positioning them to make the best use of your desktop real estate
- flashbake – A seamless source control solution combines the convenience of automated back up with the power of source version control.
- ScraperWiki – is a platform for writing and scheduling screen scrapers, and for storing the data they generate
- The Motherfucking Manifesto For Programming, Motherfuckers – We are tired of XP, Scrum, Kanban, Waterfall, Software Craftsmanship (aka XP-Lite) and anything else getting in the way of…Programming, Motherfucker.
- How to use iWeb to build a killer frontpage for your Facebook Fan Page. –
- PHP-RegExp-Tutorial – Ausführliche, deutschsprachige Informationen zum Aufbau und zur Verwendung von Regulären Ausdrücken in PHP.
- CLCL – Is a clipboard caching utility for Windows. Works with text and files.
- git-friendly – is a collection of shell scripts for automating basic git workflows that you probably find yourself typing over and over again.
11. Dezember 2008 | Tags: analytics, apple, apt, backup, caldav, calendar, cron, debian, google, gtd, hdd, ical, iPod, isight, itunes, law, linux, mac, mail, movie, music, osx, plugin, spaces, statistic, sync, sysadmin, timecapsule, timemachine, unison, unix, video, visualization, wallpaper, web, web2.0
Meine delicious.com-Links vom 1. Dezember bis zum 5. Dezember:
- SpaceSuit – is Spaces missing feature: 1 different background image for every Space.
- The Complete Guide to Managing iTunes Videos –
- Time Tamer – Don't want Time Machine to fill up your whole Drobo? This application for OS X based upon an Automator action provides a simple way when you're setting up Time Machine to force it to only use up 2x the size of your internal hard drive for backup on your external hard drive
- Google Analytics: Tutorials, Tools und Tipps –
- calaboration – makes it easy to set up iCal to view and edit your Google Calendar calendars.
- Unison and the OS X hostname – Simply setting UNISONLOCALHOSTNAME works fine for me…
- FluidTunes – gives you control over your music using only a camera, and your hands, head or feet.
- apticron – is a simple script that will email you when new versions of any package installed are available.
18. September 2008 | Tags: ajax, apocalypse, apple, armageddon, bash, bluetooth, browser, cern, cli, code, cron, death, earth, endofworld, firefox, fun, geek, git, growl, gtd, handy, howto, ie, internet, isync, javascript, latex, lhc, life, linux, mac, mail, mobile, mozilla, notification, opera, osx, pdf, perl, revisioncontrol, science, sync, txt, unix, visualization, web, web2.0, windows, word
Meine delicious.com-Links vom 12. September bis zum 17. September:
- Dead Man's Switch – Shit happens. Sometimes, it happens to you. If it does happen, you might wish there was something you had told the people around you. How you feel, what you regret, where the money is stashed.
For this, you need a dead man's switch.
- Textverarbeitungen: Dumm und Ineffizient. – Ein Textverarbeitungsprogramm ist ein dummes und äußerst ine?ektives Werkzeug, um Texte für die Kommunikation mit anderen aufzubereiten. Das ist die Behauptung, die ich im Folgenden darlegen werde.
- iSyncIt – is a small menu bar application that allows you to sync your devices more easily and quickly than just using iSync alone. iSyncIt has the ability to automatically turn your bluetooth on and off, saving you power if you are using a laptop. It also has a built in scheduler to allow you to set up automatic syncing of your devices.
- History of the browser user-agent string – Essential reading…
- A re-introduction to JavaScript –
- Snarl – is a notification system for Windows. It displays notifications on-screen for applications which support it. Heavily inspired by growl.
- SendEmail – is a lightweight, command line SMTP email client. If you have the need to send email from a command line, this free program is perfect: simple to use and feature rich. It was designed to be used in bash scripts, batch files, Perl programs and web sites, but is quite adaptable and will likely meet your requirements.
- Has the Large Hadron Collider destroyed the earth yet? – NO
- Git Guide – This page will document git usage making use of newer concepts introduced in git 1.5
- EXIT MUNDI – , a collection of end of world scenarios
17. September 2008 | Tags: bash, code, cron, fom, geek, linux, mac, mail, osx, perl, unix, windows
Manchmal hat man ja so etwas: Man muss eine Mail zu einem bestimmtem Zeitpunkt abschicken, hat zu diesem Zeitpunkt aber besseres vor.
Bei mir war dieses Bedürfnis das Ergebnis der Vergabemodalitäten für die Fallstudien an der FOM:
- Man kann sich ein Thema von einer Liste aussuchen
- Um das Thema zugeteilt zu bekommen, muss man sich darum per Mail bewerben
- Start der Vergabe war der 15. September 2008, 00:00:00 Uhr
- Wer zuerst kommt, mahlt zuerst
- Bewerbungen die einen Zeitstempel vom 14. Septemer 2008, 23:59:59 Uhr oder früher tragen werden gelöscht
Jetzt zeigt es sich: Ist man entweder Informatiker und schreibt nen Script, oder BWLer und bleibt eben wach…
Was ich bin dürfte den meisten hier ja klar sein, ausserdem schlafe ich gerne. Also habe ich folgendes getan:
Zuerst mal habe ich eine einfache Textdatei mit dem Bewerbungstext geschrieben und als emailmessage.txt gespeichert.
Zum versenden der Mail benutze ich nicht mein normales Mail-Programm, sondern das PerlScript sendEmail. Das ist sehr einfach in eigene Scripte einzubauen. Einfach runterladen, entpacken und in den $PATH kopieren. Ich habe das Script unter /usr/local/bin/ abgelegt.
SendEmail wird nun aus folgendem Shell-Script heraus aufgerufen:
#!/bin/bash
FROM="me@here.de"
TO="steve@apple.com"
CC="foo.bar@noplace.com, bill.gates@microsoft.com"
SUBJECT="Betreffzeile"
MESSAGE="/path/to/emailmessage.txt"
SMTP="smtpserver.domain.de"
U="username"
PW="passwort"
/usr/local/bin/sendEmail -f "$FROM" -t "$TO" -cc "$CC" -u "$SUBJECT" -o message-file="$MESSAGE" -s "$SMTP" -xu "$U" -xp "$PW"
Am Anfang des Scripts trägt man einfach seine eigenen Daten ein, das sollte selbsterklärend sein. Die CC-Adressen kann man auch weg lassen wenn man nur einen Empfänger hat.
Als SMTP-Server, User und Passwort nimmt man am besten die gleichen Daten, die man auch in seinem Mail-Programm eigetragen hat.
Wenn man das Script dann soweit fertig hat wird es irgendwo gespeichert und per chmod +x ausführbar gemacht, bei mir kam es auf dem Desktop als mymail.sh unter.
Damit man nun nicht doch so lange wach bleiben muss um das Script auszuführen (und hinterher noch total übermüdet zwei Sekunden zu früh Enter drückt), richtet man einen cronjob ein.
Unter einem beliebigen Unix kommt man mit crontab -e zu seiner persönlichen cron-Tabelle, Mac-User können auch das hervorragende Cronnix benutzen. Dort trägt man für den Zeitpunkt 15. September, 00:00 Uhr folgendes ein:
00 00 15 9 * /Users/dennis/Desktop/mymail.sh
Für den 12. Oktober, 14:46 Uhr sähe das ganze so aus:
46 14 12 10 * /Users/dennis/Desktop/mymail.sh
Das Sternchen steht bei beiden jeweils dafür, dass es egal ist welcher Wochentag gerade ist und den Pfad zu dem Script muss man natürlich anpassen.
Und das wars auch schon, wenn der Zeitpunkt dann gekommen ist ruft cron das eingetragene Script auf, dieses wiederum verschickt die Mail mit der Hilfe von sendEmail und alle sind glücklich.
Am nächsten Tag findet man dann ausgeschlafenerweise so eine Mail in seinem Systempostfach, die den erfolgreichen Versand noch einmal bestätigt:
From dennis@macbook.home.xx Mon Sep 15 00:00:03 2008
X-Original-To: dennis
Delivered-To: dennis@macbook.home.xx
From: dennis@macbook.home.xx (Cron Daemon)
To: dennis@macbook.home.xx
Subject: Cron <dennis@macbook> /Users/dennis/Desktop/mymail.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=dennis>
X-Cron-Env: <USER=dennis>
X-Cron-Env: <HOME=/Users/dennis>
Date: Mon, 15 Sep 2008 00:00:03 +0200 (CEST)
Sep 15 00:00:03 macbook sendEmail[4997]: Email was sent successfully!
Damit die Mail nicht in einem Jahr noch mal abgeschickt wird (sofern Maildatei und Script dann noch an Ort und Stelle liegen) sollte man am Schluss nicht vergessen den cronjob auch wieder auszutragen.
Die Scripte sollten auf jedem Unix funktionieren und mit einigen Anpassungen (und installiertem Perl) kriegt man das vielleicht sogar unter Windows hin. Den Versuch überlasse ich aber wirklich gerne jemand anderem…