Not that you would want to, but here it is.
wlsetup-all.exe /q /AppSelect:MovieMaker /NOTOOLBARCEIP /NOSEARCH /NOHOMEPAGE /NOCEIP /NOMU /NOLAUNCH
Not that you would want to, but here it is.
wlsetup-all.exe /q /AppSelect:MovieMaker /NOTOOLBARCEIP /NOSEARCH /NOHOMEPAGE /NOCEIP /NOMU /NOLAUNCH
We have a “USBG-232MINI” USB to Serial adapter and I needed to connect to a Cisco router. GNU screen to the rescue!!
The command is
screen /dev/tty.usbserial-A9005yuF 9600 (Where A9005yuF is probably unique)
And to exit hit Control+A then K.
I wanted to dump a list of accounts and their password expiration dates – accounts that were not disabled, that had a certain description, and were not set with “Password never expires”
(Get-ADUser -filter {(Description -notlike "Service*") -and (Enabled -eq "True") -and (PasswordNeverExpires -eq "False")} -properties *) | select samaccountname,description, @{N="LastChanged";E={(Get-Date([System.DateTime]::FromFileTimeUtc($_.pwdLastSet))).ToShortDateString()}}, @{N="Expires";E={(Get-Date([System.DateTime]::FromFileTimeUtc($_.pwdLastSet))).AddDays((Get-ADDefaultDomainPasswordPolicy).MaxPasswordAge.TotalDays).ToShortDateString()}}
I have been using this Analytics Widget on my dashboard and I just hit 1000 visits in a month! I know that is nothing in compared to a real site, but it is a milestone (in my mind)!
I am trying to be a better PowerSheller. I thought I would create a post with queries I have figured out. I hope to keep adding more.
Get-ADGroup -filter {GroupCategory -eq "Distribution"} -Properties *| Select-Object -Property Name,whenCreated,mail, @{N="NewMail";E={$_.mail.replace("@","-NewName@")}} -last 50
Get-ADGroup -filter {GroupCategory -eq "Distribution"} -Properties * | sort created | select Name, @{N="NewName";E={if($_.Name -like "*-NewName"){$_.Name}else{$_.Name+"-NewName"}}}, @{N="NewMail";E={if($_.Mail -like "*[email protected]"){$_.Name}else{$_.Mail.replace("@","-NewName@")}}}, @{Name="proxyAddresses";Expression={foreach ($SMTP in $_.proxyAddresses){if ($SMTP.ToLower().StartsWith("smtp:")){$SMTP}}}}, @{N="Completed";E={if($_.Name -like "*-NewName"){"Completed"}else{"ToDo"}}} | convertto-csv > MasterList.csv
Get-ADGroup -filter {GroupCategory -eq "Distribution" -and Name -like "*-NewName"} -Properties * | sort created | select Name,Samaccountname,Displayname,Mailnickname,Mail, @{Name="proxyAddresses";Expression={foreach ($SMTP in $_.proxyAddresses){if ($SMTP.ToLower().StartsWith("smtp:")){$SMTP}}}} | convertto-csv > Completed.csv
Our developers created a website that had vCard files for each staff member. The problem was that when people clicked on them, rather than downloading them, some web browsers displayed the content of the file.
Ended up that apache did not know how to handle “.vcf” files. The change below is now part of my standard setup script:
sed -i.ORIG “/text\/xml-external-parsed-entity/a\text\/x-vcard\t\t\tvcf” /etc/mime.types
My VPS host – Rackspace contacted me the other day to tell me that my host server became unresponsive. After it came back online I went to my MySQL replicated slave to check the status. The /var/log/mysqld.log said:
Error reading packet from server: Client requested master to start replication from impossible position
This article siad
“9 times out of 10 it’s because the master crashed and when it came back online a new binlog file was made”.
That sounds about right, my virtual host was probably force rebooted, and my VM crashed. I recovered my DBs by re-mirroring my DBs over an AutoSSH connection between my two servers.
The article goes on to say:
Now if your super sensitive of lost events because a row or two could of been lost from this replication event, do some spot testing for tables written to often”
I wanted to verify my DBs were the same on both master and slave, so I wrote this BASH function:
function CompareDBs { if [ $1 ]; then DB=$1; RDBDUMP=$(mysqldump -h <a href="tel:127.0.0.1">127.0.0.1</a> -P 7777 --order-by-primary --skip-extended-insert --skip-opt --skip-comments $DB) LDBDUMP=$(mysqldump --order-by-primary --skip-extended-insert --skip-opt --skip-comments $DB) diff -y --suppress-common-lines <(echo "$RDBDUMP") <(echo "$LDBDUMP") fi }
Call the function with the DB you want to compare. This script assumes that you have an SSH Tunnel between your two servers.
********* MAKE SURE YOUR TIME IS RIGHT ON BOTH SERVERS*********
This will save you some hair pulling!
For some reason I can not remember the following command. I have been using it a lot lately when testing MySQL replication.
This will drop all DBs except the default mysql and information_schema dbs. Then I can Rinse and Repeat this script. Of course only do this on the slave!
Current requirements
WordPress 3.2 requirements:
Default PHP on Cent0S 5.6 = PHP 5.1.6.
CRAP
Updated: See this post on how to install an updated PHP on CentOS 5.6
I wanted to update a standalone ESXi box from 4.1 to 4.1 Update 1. Here is how I went about it:
The summary below was also returned:
Id VMHostId IsIns IsApp Needs Needs talle licab Resta Recon d le rt nect -- -------- ----- ----- ----- ----- cross_oem-vmware-esx-drivers-scsi-3w-9xxx_... ...ha-host False True True False cross_oem-vmware-esx-drivers-net-vxge_400.... ...ha-host False True True False deb_vmware-esx-firmware_4.1.0-1.4.348481 ...ha-host False False True False deb_vmware-esx-tools-light_4.1.0-1.4.348481 ...ha-host True True False False