Posts

Blocking Messaging Applications - Links

Blocking WhatsApp at the Router https://github.com/ukanth/afwall/wiki/HOWTO-blocking-WhatsApp Ports are Involved: 80 443 5222 5223 5228 5060 and alternative 5064 for SIP/Voip Proxy to redirect from 80 to 8080 (optional)  

Mozilla Firefox Full Download for Offline Installation

Image
Where Can I Download Old Versions of FireFox Get the Most Current Versions https://www.mozilla.org/en-US/firefox/all/ Download Past Versions https://ftp.mozilla.org/pub/firefox/releases/ A Very Stable Enterprise ESR Version https://ftp.mozilla.org/pub/firefox/releases/52.5.0esr/win64/en-US/ If you see this message:  "Gah. Your Tab Just Crashed" You may need to use the ESR version.

Magento Cookbook - Teaching Old Dogs New Tricks, Easy Hacks to Make Magento Work Right

Magento Tricks and Hacks For Developers In this posting, we will show you some cool and interesting hacks for developers.  These all require SSH access and R/W access to the Magento PHP code.  We have been developing custom templates and shopping carts and this is how we do it.    Magento pricing for standard carts is available here. 1) Dump Session Variables into your Magento 1column view (Magento 1.9 Trick) Put this into your 1-column phtml template file. ... <div class="col-main">       <pre> <?php var_dump($_SESSION); ?> </pre>       <?php echo $this->getChildHtml('global_messages') ?>       <?php echo $this->getChildHtml('content') ?> </div> ... ... <pre> <?php var_dump($_SESSION["checkout"]); ?> </pre> <hr> <pre> <?php var_dump($_SESSION["core"]["messages"]); ?> </pre> <hr> <pre...

Rename a Microsoft CRM 2011 Server and it's MSSQL Server

Step1: Edit the MS CRM Config Registry Step A: Change this registry key HKLM\SOFTWARE\MICROSOFT\MSCRM\configdb change: Data Source=VCRM1;Initial Catalog=MSCRM_CONFIG;Integrated Security=SSPI to: Data Source=VCRM2;Initial Catalog=MSCRM_CONFIG;Integrated Security=SSPI Step B: Change this other registry key HKLM\SOFTWARE\MICROSOFT\MSCRM\ServerUrl change: http://VCRM1/MSCRMServices to: http://VCRM2/MSCRMServices Step 2: Edit the MSCONFIG database ( example VCRM1 to VCRM4 ) use MSCRM_CONFIG; update dbo.Server set name='VCRM4' where NAME='VCRM1'; update dbo.ConfigSettings set HelpServerUrl='http://VCRM4/' where HelpServerUrl='http://VCRM1/'; update dbo.DeploymentProperties set NVarCharColumn='http://VCRM4.homeslice.net:80' where NVarCharColumn LIKE '%VCRM1:80'; update dbo.Organization set ConnectionString='Data Source=VCRM4;Initial Catalog=HomesliceInsurance_MSCRM;Connection Timeout=60;Integrated Security=SSPI'; update ...

Bourne Shell Cookbook

Bourne Shell Scripting Cookbook for the masses 1) Numeric for loop #! /bin/bash N = 10 for ( ( c = $N ; c > 0 ; c-- ) ) do echo "Counting $c times" done

Debricking the Western Digital Mybook Live - with a new WD Red Disk

Image
Sometimes it happens, your Western Digital Mybook Live dies and you are left with a blinking blue/green light.  Perhaps it's internal hard disk is making the famous click of death sound.  Rebuild it by purchasing a new 3TB WD Red Drive. Here's how to prepare the new disk, using Ubuntu linux.  I have copied the highlights of the famous debrick script.  Remove the disk from the WD MBL housing, and toss into a landfill or drop into your favourite ocean. Insert new disk in your favourite desktop PC's SATA port, boot with Ubuntu USB drive, and then prepare the new WD disk using these steps. You should boot from a Live CD or Live bootable USB, so that your disk is /dev/sda. Assuming that your new disk is /dev/sda parted /dev/sda --align optimal <<EOP mklabel gpt mkpart primary 528M  2576M mkpart primary 2576M 4624M mkpart primary 16M 528M mkpart primary 4624M -1M set 1 raid on set 2 raid on quit EOP sync reboot  ... mdadm --create /dev/md0 --verb...

The WMI Cookbook

WMI Filters to Select Computers to which to apply group policy: Target Win 7 32 bit machines: select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1" AND NOT OSArchitecture = "64-bit" Target Win 7 64Bit machines: select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1" AND OSArchitecture = "64-bit" Target any 32 bit OS; SELECT AddressWidth FROM Win32_Processor WHERE AddressWidth ='32' Target any 64Bit OS: SELECT AddressWidth FROM Win32_Processor WHERE AddressWidth ='64'

The processing of Group Policy failed: One way to fix it

Group Policy Replication Errors - How to Fix All of a sudden one of your workstations seems to not be able to update its own group policy objects. It appears that the workstation has failed the trust relationship. For Example C:\Users\Biff> gpupdate /force Updating Policy... User Policy update has completed successfully. Computer policy could not be updated successfully. The following errors were encountered: The processing of Group Policy failed. Windows attempted to read the file \\homeslice.net\SysVol\homeslice.net\Policies\{2B44EB00-32DD-42E3-8C83-9B6C6CA6D 6D6}\gpt.ini from a domain controller and was not successful. Group Policy settings may not be applied until this event is resolved. This issue may be transient and could be caused by one or more of the following: a) Name Resolution/Network Connectivity to the current domain controller. b) File Replication Service Latency (a file created on another domain controller  has not replicated to the current dom...

My tcpdump cookbook - favourite examples

Image
Use the tcpdump command on linux to monitor network traffic. Here are some of my favourite recipies for tcpdump success.  My little cookbook shows typical TCPDump tasks. 0) Monitor Web Traffic 1) Monitor web service traffic on an apache server. given that your server has an eth0 network port. If your web client device is at 192.168.99.10, this following command will monitor all traffic from that device that enter eth0 on port 80. tcpdump -i eth0 -vvv tcp port 80 and src 192.168.99.10 Options:  -vvv       Verbose dump of network headers                 -i           network interface selector                 -A         Display all cleartext packet details. (optional) 1)Dump SIP Traffic from eth0 E...

Suddenly it happens ... OWA error Rights management operation failed it says...

Image
Suddenly it happens, you start seeing this message in your exchange 2010 OWA When they try to open an e-mail with outlook web acces. They get the following error message Rights management operation failed . OWA error Rights management operation failed Ouch! What to do? Open exchange powershell  First step is to figure out that IRM is enabled in your exchange 2010 Next step is to figure out what your identity is: in this case the full identit is EXCHANGE2010\owa (Default Web Site) Final step is to turn off the doggone IRM!  Using the identity located in step 2.   1. Log on to the exchange server and open (as Administrator) the Exchange Management Shell (EMS) 2. Run "Get-OWAVirtualDirectory | FL" and search for IRM; you'll probably see that it's enabled. 3. Run "Set-OWAVirtualDirectory -IRMEnabled $false" or you could provide the name of the identity using the -Identity "<identity goes here>" for example: [PS] C:\Windo...

Shoretel IP Phone Mute Codes

Image
Shoretel Mute Codes Below are a list of the "Mute" Codes for Shoretel IP Phones.  These codes will perform some common Shoretel tasks without physically power cycling the phone.  On IP210 and IP230 phones, press the mute button, then enter the code, then press the # key. On the IP655 and newer phones, press the * key, then code, then # key. Note: If you have a G series shoretel phone such as a IP655 or IP480G and you see the message "no ethernet" on your screen, it usually means that you have connected the phone to a 10/100 network, and these phones do not work on 10/100 networks, only gigabit ethernet will do. To Clear Cached Values <Mute> + CLEAR (25327) # To Reset A Phone <Mute> + RESET (73728) #  RESET may also be 73738 To Enter Setup <Mute> + SETUP (73887) # View Current Configuration Settings <Mute> + INFO (4636) # Ping From Phone <Mute> + PING (7464) # Factory Reset A Phone <Mute> + RRAMOS (772667) #...

Exchange 2010 Public Folders Will Not Mount

You see this message in the Windows Application Log: (PID 7644, Thread 26) Task Mount-Database writing error when processing record of index 0. Error: System.InvalidOperationException: Couldn't mount the database that you specified. Specified database: Public Folder Database 1998117930; Error code: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionJetErrorMissingLogFile: Unable to mount database. (hr=0x80004005, ec=-528)  [Database: Public Folder Database 1998117930, Server: Exchange2010.homeslice.net]. ---> Microsoft.Exchange.Cluster.Replay.AmDbActionWrapperException: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionJetErrorMissingLogFile: Unable to mount database. (hr=0x80004005, ec=-528)  ---> Microsoft.Exchange.Data.Storage.AmOperationFailedException: An Active Manager operation failed. Error: Operation failed with messag...