Skip to content

Instantly share code, notes, and snippets.

tell application "iTunes"
set playedBony to 2
set skippPanelty to 10
if not (user playlist "rate me" exists) then
display dialog "Dieses Script arbeitet auf der Playlist 'rate me' bitte erstellen Sie diese Liste.
Tipp:
Erstellen sie eine inteligente Wiedergabeliste die alle Audiodateien enthält die mehr als ein mal gespielt oder übersprungen wurden oder keine Wertung haben."
return
tell application "Address Book"
repeat with contact in people
repeat with icq in ICQ handles of contact
set nimbuzzIcq to (value of icq) & "@icq.nimbuzz.com"
set nimbuzzIcqFound to no
repeat with jabber in Jabber handles of contact
if (value of jabber) = nimbuzzIcq then
set nimbuzzIcqFound to yes
end if
@Velrok
Velrok / auto link creater
Created May 16, 2010 01:39
cryptic file linking
@Velrok
Velrok / files2atom.py
Created March 5, 2011 20:34 — forked from zeisss/files2atom.py
Exports file changes as atom feed.
#!/usr/bin/python
import os.path
import os
import sys
import datetime
class AtomWriter:
def __init__ (self, title, link = "http://localhost"):
self.title = title
self.link = link
@Velrok
Velrok / my license header
Created February 6, 2012 02:39
A typical license header for all my public projects. A combination of MIT and GPL.
/*
Copyright (c) <year> <copyright holders>
This software is dual licensed under:
- MIT license for non commercial usage (http://www.opensource.org/licenses/MIT)
- GPL license for commercial usage (https://www.gnu.org/licenses/gpl.txt).
If you want to use this software in a commercial project under another license contact me at <email> .
*/
@Velrok
Velrok / .gitignore
Created May 4, 2012 21:15
a javascript file that analyses the header structure of an html page and creates an overview
._*
@Velrok
Velrok / updateXBMC.sh
Created July 28, 2012 13:12
OSX script to update your XBMC.app to the latest nightly build.
#!/bin/bash
# This script is Mac specific!
# It installes the latest nightly build of XBMC.
# Have fun. Take a look at https://github.com/Velrok/scripts .
working_dir="/tmp/updateXBMC"
mount_dir="$working_dir/mount"
if [ ! -d $working_dir ]
@Velrok
Velrok / ownclouderror.log
Created July 28, 2012 18:31
own cloud error log
07-28 20:26:05:202 csync.owncloud - Authentication required
07-28 20:26:05:202 csync.owncloud - Call the csync callback for ownCloud
07-28 20:26:05:817 csync.owncloud - Skipping target resource.
07-28 20:26:05:817 csync.owncloud - Simple propfind OK.
07-28 20:26:05:817 csync.owncloud - opendir returning handle 0x7fec5a461390
07-28 20:26:05:817 csync.owncloud - closedir method called 0x7fec5a461390!
07-28 20:26:05:817 csync.owncloud - => open called for owncloud://apps.moinz.de/own-cloud/files/webdav.php/clientsync/csync_timediff.ctmp
07-28 20:26:05:817 csync.owncloud - Stating directory owncloud://apps.moinz.de/own-cloud/files/webdav.php/clientsync
07-28 20:26:05:817 csync.owncloud - owncloud_stat owncloud://apps.moinz.de/own-cloud/files/webdav.php/clientsync called
07-28 20:26:05:817 csync.owncloud - I have no stat cache, call propfind for /own-cloud/files/webdav.php/clientsync.
@Velrok
Velrok / tweet.sh
Created October 3, 2012 09:52
Twitter Client in 3 Bash Lines
#!/bin/bash
#thanks to http://blog.walkingsmarts.com/twitter-client-in-3-bash-lines/
read -s pass
url="http://eimantas:[email protected]/statuses/update.xml"
curl -d "status=$*" $url
@Velrok
Velrok / coffee-mashine
Created October 13, 2012 07:46
A little bash script to start a coffe watch compile.
#!/bin/bash
help="usage: coffee-mashine coffe-source-dir compile-dir"
if [ ! $1 ]
then
echo "coffe-source-dir is missing"
echo $help
exit 1
fi