Windows Local Security Policies
Export current state of the machine secedit.exe /export /cfg C:\some-filename.inf How to Reset All Local Security Policy Settings to Default in Windows When finished, you can close the elevated command…
Export current state of the machine secedit.exe /export /cfg C:\some-filename.inf How to Reset All Local Security Policy Settings to Default in Windows When finished, you can close the elevated command…
Steps Setup Apache to respond to the amce verification checks and to redirect all other HTTP requests to HTTPS.Get acme.sh to request a certificate and have the certificate and key…
https://magic.defra.gov.uk/MagicMap.html
Get the existing OS to date with both Kernel and packages. freebsd-update fetch install pkg update & pkg upgrade Initial commands, to record what's currently installed and tidy up caches…
C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeC2RClient.exe /update user updatepromptuser=true forceappshutdown=true displaylevel=true Can be scheduled too. Look into the possibility of scheduling across a domain with displaylevel=false? https://blogs.technet.microsoft.com/odsupport/2014/03/03/the-new-update-now-feature-for-office-2013-click-to-run-for-office365-and-its-associated-command-line-and-switches
A new repo from scratch Create a directory to contain the project. Go into the new directory. Type git init. Write some code. Type git add to add the files Type git commit. A…
https://www.nartac.com/Products/IISCrypto/Download
You need to install the April 2015 servicing stack update for Windows 7 and Windows Server 2008 R2 before installing the Convenience Rollup
Add git to an existing project Create a new repo on bitbucket cd to project you wish to git... # cd /usr/local/www/apache24/data/project123 # git init Initialized empty Git repository in…
# apt update # apt list --upgradable # apt install open-vm-tools
Situation... My FreeNAS USB stick died and I had no backup of the FreeNAS configuration file (school boy error). I've imported my ZFS pool and imported my jails (can't remember how…
Edit /etc/network/interfaces To apply update do a # service networking restart Note. Can be risk doing this via SSH. If there's a type in your /etc/network/interfaces your network interface will not come…
Windows 10 boxes reboot every 24 hours (or so). Problem in VM SATA driver. Convert CD drive to IDE and remove SATA Controller. If that doesn't work update ESX to…
bit.ly/no-gwx https://support.microsoft.com/en-us/kb/3080351 The actual updates... Windows Update Client for Windows 7 and Windows Server 2008 R2: July 2015 Windows Update Client for Windows 8.1 and Windows Server 2012 R2: July…
FreeBSD equivalent of netstat The command you want is sockstat. Use sockstat -4l to see just IPv4 listening sockets
https://technet.microsoft.com/en-us/library/aa998340(EXCHG.80).aspx You followed this procedure to move a EDB file from a dying SBS server to a different server running Exchange 2007 in Trial mode. Old server was called SVL2008, new server…
https://wordpress.org/plugins/duplicator/ The Duplicator gives WordPress administrators the ability to migrate, copy or clone a site from one location to another. The plugin also serves as a simple backup utility. The…
32bit / 64bit refers to the architecture of the Office, not the Operating System. Office 2013 Administrative Template files (ADMX/ADML) and Office Customization To Office 2013 Administrative Template files (ADMX/ADML)…
grep 'scs' --exclude='./frontend/runtime/*' --exclude='./backend/runtime/*' --exclude='./console/runtime/*' --exclude='./vendor/*' . -R grep 'status' --exclude-dir={runtime,debug,migrations,web,vendor} . -R
Creating URL Old way (Yii 1.0 maybe??) $url = Yii::$app->controller->createUrl('xx');// your own url generation logic New way (Yii 2.0 ) $url = \Yii::$app->getUrlManager()->createUrl('consignment/label'); Creating controllers Debugging (old skool) Yii::info("My message"…
Search /home/awstats/DirData/ for any files relating to the domain you're dealing with and are newer than those for which you have logs. eg... ll /home/awstats/DirData/awstats*.www.example.com.txt ll /home/awstats/DirData/awstats*2015.www.example.com.txt and then either remove them…
Installing WordFence #1 #2 gives you protection and great visibility into whats going on. It's easy to think no problems = no attacks, but after installing WordFence it was immediately obvious…
Special keys are Ctrl + Alt + Up (to get screen correct) Ctrl + Alt + Down (to get screen upside down) Ctrl + Alt + Left (to get rotated 90…
https://secure.php.net/manual/en/function.mcrypt-create-iv.php#114645 http://pastebin.com/sN6buivY# === Original comment for PHP's mcrypt_create_iv === Block ciphers, at their core, are a pair of transformation algorithms, called transforms. One encrypts, one decrypts - in some cases…
I usually find sticking this code in an existing plugin resolve the problem if(!defined $data->{$ds->{name}}) { $data->{$ds->{name}} = 0; } eg Use of uninitialized value in printf at /usr/local/etc/munin/plugins/mysql_innodb_io_pend line 885.…