want to write a Vb Script to get the full information on all the host name, and ip address and sub net mask of computer that has been added to the domain control.
I frequently save pages as PDF from Chrome on OSX. The page is apple-P then click the PDF button and the "Save as PDF.." menu item. I always use the pre-filled filename and save in the default directory.
Is it possible to save this as an automator script? If that is possible I woulld sure like to add this as a button on Chrome somewhere so I can just "save this for reading later"
Thanks for any help.
Is there a command line way of stopping a process if I know the name of the exe (or better give a wildcard). I was about to jump in and write an autohotkey script to do it but I thought I would look for out of the box ways first.
Interested in Windows XP and Vista.
I am looking for free software to do batch conversions of divx video files to iPhone format.
I have read the thread:
http://superuser.com/questions/5784/looking-to-convert-video-to-iphone-format
Handbrake works good for single files but it has very little customization with regards to files names and the batch functionality is not very good (or at least I can't get it to work very easily).
Can anyone recommend a good batch converter? A script for Handbrake to do a batch for all in a specific directory would be useful even.
It seems CMD does not have it's own jumplist.Has someone created one already?
I would like to be able to pin script and command files to cmd.exe only.I can pin them separately with the /explorer as the first line on target box but i would like all of them to be pinned to cmd.exe by default.Kind of like all folders are pinned to explorer.exe.I also made a rather bad looking mockup to make the question a little more clear: http://img576.imageshack.us/img576/9263/cmdjumplist.jpg
I have a site that uses PHP session for authentication. There is one directory that I would like to restrict access to that does not use any PHP, it's just full of static content.
I just don't know how to restrict access without every request going through a PHP script. Is there some way to have Apache check the session credentials and restrict access like Basic Auth?
I'm looking for a script/some software that I can put on/as a website where users can upload files, which can then be downloaded by other users and people. Does anyone have any suggestions for any free software that can do that?
Cheers!
I have a folder in which .wmvs are saved after they are finished recording. I would like to set up a script which encodes all of the files in this folder into .flvs with the appropriate size, frame rate, etc and then moves them to another folder. I have been looking for a command line .wmv to .flv converter to do this without much success. Has someone automatically encoded .wmvs to .flvs before that can point me in the right direction?
I'm trying to push wifi settings to client computers through Active Directory, something that will add a defaul SSID to connect to and a WPA password. The only thing I've heard of is a script by Aruba labs called wificfg_xp.exe on a couple of forums (Here and here), but the link to the download page is always broken. Does any one know of an alternative way to download this file, or another way to push these settings with AD?
I Have a LG Viewty (actually a KP501), and I use mencoder (part of mplayer) to convert videos, using the following script :
mencoder "input.avi" -ovc lavc -oac lavc -lavcopts acodec=mp3:abitrate=128 -vop scale=400:240 -ffourcc DX50 -o "output.avi"
Do you have similar mencoder scripts, for other phones ?
I have a number of Scheduled Tasks running on a Windows machine, which is design to run stand alone and show useful information to the office.
Part of it's use is to run a screensaver that itself shows useful information.
There are some scheduled tasks which need to display information to the screen, however as the screensaver is running these messages can't be seen until the screensaver it manually deactivated.
How can the currently running screensaver in Windows be deactivated from command script?
For some reason my post-received hook never executes. It's a simple two liner diagnostic script: echo "test" && touch /tmp/test. When I do git push origin master nothing happens. Does any-one know what am I doing wrong?
We are working to get a large (inherited) VMware ESX 3.5 environment with multiple SANs under control. We first need to create a diagram / Excel spreadsheet / whatever that explains what VM is stored where. This is a rather time-consuming task to complete by just using the VI client to copy down everything. Is there a good script or tool out there that can do this for us?
I would like to see:
VM Name, LUN, Actual file-name/location of VMDK/VMX, Power State, Host
Any ideas?
I'm using outlook 2010 with the kerio toolbar/add-in.
Every time I install an update for Adobe (flash player, pdf reader), the kerio add-in gets disabled, which is quite annoying (more so since this is a customer computer and it is hard to get them install updates if these break add-ins they need).
Is there a way either to get adobe update not to disable this, or maybe create a script which enables the add-in at user logon?
I have a startup script placed in /etc/init.d wherein I make the following call:
nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1
This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?
We're sending ~60k emails to non-local addresses with sendmail and I manually set the -f flag to [email protected].
This all works fine and dandy when I limit my PHP script to 5000 addresses. If I remove the limitation, sendmail ingnores the parameters and sends all emails with a reply-to and return-path of [email protected].
I'm sleeping in between each email for 500ms, that should not be the problem.
I am on Windows 7 using XAMPP and am trying to write file to the default install location of "C:\xampp\htdocs" using a php script but I am getting write failures. I can write to my own user area. How can I allow php to write to C:\xampp\htdocs?
Best regards,
Malachi
iCal uses a built in script file to email reminders through Mail.app. It works great, but I don't use Mail.app for my main email account, just for sending calendar notifications.
So, Mail.app opens and sends the alert, but then it stays open.
I've tried to edit the applescript file to make it quit Mail, but that doesn't seem to work.
Can anyone offer some advice?
Thanks :-)
This script works perfect it forces the trailing slash and hides the .php extension
BUT! it does not redirect people going directly to the .php extension.
How can I also force people going directly to the file.php to /file/
RewriteEngine On
RewriteRule ^(.*)/$ /$1.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.mysite.com/$1/ [R=301,L]
we have recently set up a new development infrastructure and process for one of our clients. This involves the strict use of subversion as a central source code repository. The svn repositories contains a seperate branch for code on the live system (/branches/live/).
The repositories are use for PHP content (mainly Wordpress Blogs), but in future they may hold other asp code as well. Bonus points for a solutions which more or less in the same way with ASP code on Windows Server 2008 R2.
We have two servers: one staging system and one live system. The staging system is updated regularly with the code of the trunk. The live system is update manually. Each webroot on the servers are working copy of either the trunk (staging system) or the live branch (live system).
The current workflow is:
Developing on the dev's box - commit into the trunk - auto-deploy on staging system - testing on the staging system - merging into /branches/live/ - manual deployment on live system.
This works for one-way changes very well, however we have some troubles on every wordpress (or plugin) update: The WP update process removes the directories and unpack the archive of the new version. This removes the svn admin area as well, which produces a lot of errors. We could switch to SVN 1.7 with a single, global admin area, but this would only solve on part of the problem.
Finally, we have done the update via the WP Gui, restored the svn admin area, added/removed the files and committed the changes to the trunk. After testing, we had to do basically the same thing on the live server (except the commit, we just reverted the changes and merged the new files from the staging system to the live system).
I'm currently thinking of the following:
The htdocs of each website is a svn export
Each website has a svn working copy beside the htdocs directory
a script which "replays" the changes in the wc from htdocs after an update in WP (rsync'ing the changed files to the working copy, rsync'ing new files and svn add them and finally svn delete the deleted files). The script would have to exclude some files (like wp-config.php, uploads/temp directories, etc.).
Are there better ways to do this? Unfortunaly, a complete CI server is out of scope due to time and budget limitations.
I have experience with nginx but it's always been pre-installed for me (via VPS.net pre-configured image). I really like what it does for me, and now I'm trying to install it on my own server with apt-get. This is a fairly fresh Debian 5 install. I have few extra packages installed but they're all .deb's, no manual compiling or anything crazy going on.
Apache is already installed but I disabled it. I did apt-get install nginx and that worked fine. Changed the config around a bit for my needs, although the same problem I'm about to describe happens even with the default config.
It took me a while to figure out that the default debian package for nginx doesn't spawn fastcgi processes automatically. That's pretty lame, but I figured out how to do that with this script, which I found posted on many different web sites:
#!/bin/bash
## ABSOLUTE path to the PHP binary
PHPFCGI="/usr/bin/php5-cgi"
## tcp-port to bind on
FCGIPORT="9000"
## IP to bind on
FCGIADDR="127.0.0.1"
## number of PHP children to spawn
PHP_FCGI_CHILDREN=10
## number of request before php-process will be restarted
PHP_FCGI_MAX_REQUESTS=1000
# allowed environment variables sperated by spaces
ALLOWED_ENV="ORACLE_HOME PATH USER"
## if this script is run as root switch to the following user
USERID=www-data
################## no config below this line
if test x$PHP_FCGI_CHILDREN = x; then
PHP_FCGI_CHILDREN=5
fi
ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_CHILDREN"
ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_MAX_REQUESTS"
ALLOWED_ENV="$ALLOWED_ENV FCGI_WEB_SERVER_ADDRS"
if test x$UID = x0; then
EX="/bin/su -m -c \"$PHPFCGI -q -b $FCGIADDR:$FCGIPORT\" $USERID"
else
EX="$PHPFCGI -b $FCGIADDR:$FCGIPORT"
fi
echo $EX
# copy the allowed environment variables
E=
for i in $ALLOWED_ENV; do
E="$E $i=${!i}"
done
# clean environment and set up a new one
nohup env - $E sh -c "$EX" &> /dev/null &
When I do a "ps -A | grep php5-cgi", I see the 10 processes running, that should be ready to listen.
But when I try to view a web page via nginx, I just get a 502 bad gateway error.
After futzing around a bit, I tried telneting to 127.0.0.1 9000 (fastcgi is listening on port 9000, and nginx is configured to talk to that port), but it just immediately closes the connection.
This makes me think the problem is with fastcgi, but I'm not sure what I can do to test it. It may just be closing the connection because it's not getting fed any data to process, but it closes immediately so that makes me think otherwise.
So... any advice? I can't figure it out. It doesn't help that it's 1AM, but I'm going crazy here!
hey guyz i have a function
$result = create_watermark( 'input_file_name' ,'output_file_name');
i have dir called /images n have 500 images in it and all images are link images_(some_unknown_numbers).png (all png) now i want run them thru function in loop and want out put like /markedimage/images_1.png images_2.png images_3.png
i need help how can i run them in loop and how out put name can change
want run script on Ubuntu so we can use shell too
if any body want check function it is here
http://paste2.org/p/789149
plz provide me code because i m newbie
thanks in advance
Whenever I send an email to my catchall alias via SSH (i.e., locally), Exim successfully pipes the e-mail to a PHP script, as I told it to do. However, when I try to send an e-mail to my catchall alias via my e-mail client (i.e., remotely), Exim won't pipe the e-mail. Any ideas?
SCENARIO
To simplify this down to it's easiest example:
I have a Windows 2008 R2 standard DC with the DHCP server role. It hands out IPs via various IPv4 scopes, no problem there.
WHAT I'D LIKE
I would like a way to create a notification/eventlog entry/similar whenever a device gets a DHCP address lease and that device IS NOT a domain joined computer in Active Directory. It doesn't matter to me whether it is custom Powershell, etc.
Bottom line = I'd like a way to know when non-domain devices are on the network without using 802.1X at the moment. I know this won't account for static IP devices. I do have monitoring software that will scan the network and find devices, but it isn't quite this granular in detail.
RESEARCH DONE/OPTIONS CONSIDERED
I don't see any such possibilities with the built in logging.
Yes, I'm aware of 802.1X and have the ability to implement it long-term at this location but we are some time away from a project like that, and while that would solve network authentication issues, this is still helpful to me outside of 802.1X goals.
I've looked around for some script bits, etc. that might prove useful but the things I'm finding lead me to believe that my google-fu is failing me at the moment.
I believe the below logic is sound (assuming there isn't some existing solution):
Device receives DHCP address
Event log entry is recorded (event ID 10 in the DHCP audit log should work (since a new lease is what I'd be most interested in, not renewals): http://technet.microsoft.com/en-us/library/dd759178.aspx)
At this point a script of some kind would probably have to take over for the remaining "STEPS" below.
Somehow query this DHCP log for these event ID 10's (I would love
push, but I'm guessing pull is the only recourse here)
Parse the query for the name of the device being assigned the new lease
Query AD for the device's name
IF not found in AD, send a notification email
If anyone has any ideas on how to properly do this, I'd really appreciate it. I'm not looking for a "gimme the codez" but would love to know if there are alternatives to the above list or if I'm not thinking clear and another method exists for gathering this information. If you have code snippets/PS commands you'd like to share to help accomplish this, all the better.