Skip to content

Instantly share code, notes, and snippets.

View rngtng's full-sized avatar
🕺
oh yeah...

Tobias Bielohlawek rngtng

🕺
oh yeah...
View GitHub Profile
@rngtng
rngtng / switchITunes.scpt
Created September 4, 2010 09:58
shell/apple script to sich iTunes library easily
tell application "System Events"
set runs to count (every process whose name is "iTunes")
end tell
set lib to do shell script "ls -l ~/Music | grep -i '\\->.*Music/iTunes' | sed 's/^.*iTunes-//g'"
set question to display dialog "iTunes is using '" & lib & "'. Switch to:" buttons {"external", "internal", "swing"} default button lib with icon 2 with title "Choose witch Library to use"
set new_lib to button returned of question
@rngtng
rngtng / send_report_queries.scpt
Created April 27, 2010 13:59
skype hotdeploy apple script
#display dialog (do shell script "cd /Users/tobiasb/Sites/qype_admin && pwd")
my hotdeploy()
on adding folder items to this_folder after receiving these_items
my hotdeploy()
end adding folder items to
on hotdeploy()
set usr_home to "/Users/tobiasb/"
set prj_folder to usr_home & "Sites/qype_admin/"
@rngtng
rngtng / O2 web SMS send tool
Created December 29, 2009 20:17
send o2 SMS via shell
#!/usr/bin/perl
################################################################
#
# o2-sms.pl, v2.1 *** EARLY-BETA ***
#
# Copyright (c) 2002-06, Leonhard Fellermayr <leo@slacky.de>
# All rights reserved.
#
################################################################