Skip to content

Instantly share code, notes, and snippets.

Enterprise FTP link to Reader (v11)
ftp://ftp.adobe.com/pub/adobe/reader/win/11.x/11.0.08/en_US/
To extract msi from exe:
* Run AdbeRdr11008_en_US.exe -nos_ne
* Files will be expanded to %programdata%\adobe\setup\{guid}\*
Admin Guide:
http://www.adobe.com/devnet-docs/acrobatetk/tools/AdminGuide/basics.html#end-user-installers
dpkg-reconfigure tzdata #fix date
ntpdate ntp.ubuntu.com #fix time by changing ntp to ubuntu's server
#AH - AdilHindistan -IE Importing Zone data
# http://blogs.msdn.com/b/askie/archive/2012/06/05/how-to-configure-internet-explorer-security-zone-sites-using-group-polices.aspx
When IE Enhanced security is enabled, IE will read from the following registry for added sites:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\EscDomains
And when we remove IE Enhanced security, IE start reading from the following registry:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains
##AH - AdilHindistan
# PowerShell Encrypting password for re-use
# From http://stackoverflow.com/questions/13842611/how-to-pass-credentials-to-rename-command
If you're always running this on the same machine or the associated account roams then IIRC you can rely on DPAPI to store the key like so:
# Capture once and store to file
$passwd = Read-Host "Enter password" -AsSecureString
##AH - AdilHindistan
Newer Versions of DD-WRT
http://dd-wrt.com/site/support/other-downloads?path=others%2Feko%2FBrainSlayer-V24-preSP2%2F
Go for latest:
dd-wrt.v24-{buildNo}_NEWD-2_K2.6_mini-e3000.bin
E3000 Wiki:
http://dd-wrt.com/wiki/index.php/Linksys_E3000
##AH - AdilHindistan
Arris Cable Modem
IP:192.168.100.1
Hardware Information
System: ARRIS DOCSIS 3.0 / PacketCable 1.5 Touchstone Telephony Modem
HW_REV: 2
VENDOR: Arris Interactive, L.L.C.
##AH - Adil Hindistan - Self Elevating Script
# http://rkeithhill.wordpress.com/2013/04/05/powershell-script-that-relaunches-as-admin/
function IsAdministrator
{
$Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$Principal = New-Object System.Security.Principal.WindowsPrincipal($Identity)
$Principal.IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)
}
##AH - Adil Hindistan
How to find dll exported functions
===================================
D:\>"D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\dumpbin.exe" /exports d:\Windows\system32\inetcpl.cpl
Microsoft (R) COFF/PE Dumper Version 12.00.30501.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file d:\Windows\system32\inetcpl.cpl
##AH - Adil Hindistan - IE
IE9 Clearing Cache - Options
User Command:
rundll32.exe c:\windows\system32\inetcpl.cpl,ClearMyTracksByProcess {SomeNumber}
Preserve Favorites website data
--------------------------------
Temporary Internet Files (Temp)
##AH - Adil Hindistan - Changing name of a domain joined computer
Current Name..: Adil-Laptop1
New Name......: Adil-Laptop2
1) Registry is updated:
HKLM\System\CurrentControlSet\Control\ComputerName\ComputerName /v ComputerName /t REG_SZ /d Adil-Laptop2
HKLM\System\CurrentControlSet\Services\Tcpip\Parameters /v "NV Hostname" /t REG_SZ /d Adil-Laptop2
## Fun fact, simply change the above two keys and reboot, you will get error:
"the security database on the server does not have a computer account for this workstation trust relationship"