Example:find ./ [expressions] -prune -or [dostuff]
finds all non-svn files and prints their paths on stdoutfind ./ -name '.svn' -prune -or -type f -print
Example:find ./ [expressions] -prune -or [dostuff]
finds all non-svn files and prints their paths on stdoutfind ./ -name '.svn' -prune -or -type f -print
reg import vnc.regwhere helpaccount and helppassword match the local account you created on your server and my.dns.org is your server's hostname.
reg import vnc2.reg
taskkill /F /IM winvnc.exe
start winvnc -run -shareall
plink helpaccount@my.dns.org -pw helppassword -N -R 5900:localhost:5900
top -o cpu -l 2 -u -S | sed -e '2,/^Processes:/ d'
qlmanage -p FILE
qlmanage -p FILE >& /dev/null &
http://c-command.com/scripts/finder/open-in-terminal
on run {input, parameters}
repeat with i in input
my processItem(i)
end repeat
return input
end run
Externe Exception C0FB007F
imapsync --host1 domino.e.t.c --user1 "USERNAME" --authmech1 PLAIN --host2 localhost --user2 dummy --authmech2 PLAIN --prefix2 "~/mail/" --syncinternaldates --split1 50 --split2 50 --nofastio1 --debug
subjectAltName = DNS:PROBABLY_YOUR_COMMONNAME,DNS:*.SOME_DOMAIN_NAMEto the [ v3_ca ] section of your openssl.cnf file should do the trick.
BrowseProtocols cupsto /etc/cups/cupsd.conf (e.g. after BrowseAllow all). in case you know what you are doing
sudo killall -HUP cupsdrestarts the printing service (aka cupsd). the references also show a way of doing all this via cups' web interface (on http://localhost:631)...
> ??? Undefined function or method 'propertyeditor' for input arguments of typefound a thread - and a solution: http://groups.google.com/group/comp.soft-sys.matlab/...
> 'double'.
> Error in ==> viewmenufcn at 43
> propertyeditor (hfig, 'toggle')
> ??? Error while evaluating uimenu Callback
> [...] In my case the following folder was missing:
> "$MATLAB\toolbox\matlab\plottools"
>
did help here, too. strangely enough the error occurred only for certain users - even after they had deleted their ~/.matlab directory...
~/Library/Preferences/com.apple.iCal*...logged out (hm, i even rebooted) and started all over again: hooked up the CalDAV calendars into iCal.app, setup the phone for iSync.app and tried again. calendars are back and sync just fine.
~/Library/Preferences/com.apple.isync*
~/Library/Preferences/iCalExternalSync.plist
~/Library/Preferences/ByHost/com.apple.syncservices*
~/Library/Preferences/ByHost/com.apple.iCal.helper*
~/Library/Calendars
~/Library/Phones
~/Library/Application\ Support/iSync
~/Library/Application\ Support/SyncServices
[capi-in]
exten => MSN,1,Notify(${CALLERID(num)}|${CALLERID(name)}|${EXTEN}/HOSTNAME_TO_BE_NOTIFIED)
exten => MSN,2,Wait(120)
exten => MSN,3,Hangup()
global callerName, callerNumber, callerImg
-- notification("01792259314||4066585")
-- notification("||4066585")
on notification(message)
-- message comes in "${CALLERID(num)}|${CALLERID(name)}|${EXTEN}"
set the text item delimiters to {"|"}
-- first the number
set callerNumber to text item 1 of message
-- second the name - if available
if (text item 2 of message) is not equal to "" then
set callerName to text item 2 of message
else
set callerName to "Unknown"
end if
-- third the number that was called
set calledNumber to text item 3 of message
-- for further reference...
set callerImg to null
set the text item delimiters to {" "}
if callerNumber is not equal to "" then
-- this is necessary if the number in Address Book.app is in a different format
-- e.g. "034567890" doesn't match "+12 (345) 67890"
set lookForNum to callerNumber
set lookForNum to my trim_line(lookForNum, "00", 0)
set lookForNum to my trim_line(lookForNum, "0", 0)
tell application "Address Book"
set found to false
set phoneNums to {}
repeat with loopPerson in people
set PhoneNumsCount to (count every phone of loopPerson)
repeat with i from 1 to PhoneNumsCount
set phoneNum to (get value of phone i of loopPerson)
set newString to my remove_specialChars(phoneNum)
ignoring white space
if newString contains lookForNum then
-- beep
-- display dialog phoneNum as string
set phoneNums to phone i of loopPerson
set callerNumber to phoneNum
if callerName is not equal to "Unknown" then
set callerName to first name of loopPerson & " " & last name of loopPerson
end if
if image of loopPerson exists then set callerImg to image of loopPerson
exit repeat
end if
end ignoring
end repeat
if phoneNums is not {} then
set found to true
exit repeat
end if
end repeat
-- if found then
-- activate
-- set selection to loopPerson
-- end if
end tell
end if
tell application "GrowlHelperApp"
-- Make a list of all the notification types
-- that this script will ever send:
set the allNotificationsList to ¬
{"Incoming Call"}
-- Make a list of the notifications
-- that will be enabled by default.
-- Those not enabled by default can be enabled later
-- in the 'Applications' tab of the growl prefpane.
set the enabledNotificationsList to ¬
{"Incoming Call"}
-- Register our script with growl.
-- You can optionally (as here) set a default icon
-- for this script's notifications.
register as application ¬
"Asterisk Notification" all notifications allNotificationsList ¬
default notifications enabledNotificationsList ¬
-- Send a Notification...
if callerImg is not null then
notify with name ¬
"Incoming Call" title ¬
callerName & " @ " & (time string of (current date)) description ¬
callerNumber as string application name ¬
"Asterisk Notification" image (callerImg)
-- callerNumber & " on " & calledNumber
else
notify with name ¬
"Incoming Call" title ¬
callerName & " @ " & (time string of (current date)) description ¬
callerNumber as string application name ¬
"Asterisk Notification" image from location "~/Library/Application Support/AsteriskNotifier/phone.jpg"
end if
end tell
end notification
on remove_specialChars(this_text)
set copy_flag to true
set the clean_text to ""
repeat with this_char in this_text
set this_char to the contents of this_char
if this_char is not "(" and this_char is not ")" and this_char is not "+" and this_char is not "x" and this_char is not "-" and this_char is not "_" then
set the clean_text to the clean_text & this_char as string
end if
end repeat
return the clean_text
end remove_specialChars
on trim_line(this_text, trim_chars, trim_indicator)
-- 0 = beginning, 1 = end, 2 = both
set x to the length of the trim_chars
-- TRIM BEGINNING
if the trim_indicator is in {0, 2} then
repeat while this_text begins with the trim_chars
try
set this_text to characters (x + 1) thru -1 of this_text as string
on error
-- the text contains nothing but the trim characters
return ""
end try
end repeat
end if
-- TRIM ENDING
if the trim_indicator is in {1, 2} then
repeat while this_text ends with the trim_chars
try
set this_text to characters 1 thru -(x + 1) of this_text as string
on error
-- the text contains nothing but the trim characters
return ""
end try
end repeat
end if
return this_text
end trim_line
find iWeb/ -iname '*.html' -exec ./iWeb.py "</body>" iWeb.analytics {} {} \;with iWeb.analytics beeing the Google snippet and iWeb.py the follwoing script. after that i use sitecopy --update [SITENAME]...
#!/usr/bin/env pythonthe latest version of this script might be available from (something like):
import sys,os
usage = "usage: %s searchText insertText_file [infile [outfile]]" % os.path.basename(sys.argv[0])
def init():
stext = sys.argv[1]
replaceTextFileIn = open(sys.argv[2],'r')
replaceTextFileContent = replaceTextFileIn.readlines()
replaceTextFileIn.close()
# print replaceTextFileContent
input = sys.stdin
output = sys.stdout
if len(sys.argv) > 3:
input = open(sys.argv[3])
inputContent = input.readlines()
input.close()
if len(sys.argv) > 4:
output = open(sys.argv[4], 'w')
for s in inputContent:
output.write(s.replace(stext, ''.join(replaceTextFileContent) + stext))
output.close()
if __name__ == "__main__":
if len(sys.argv)