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…

Comments Off on Windows Local Security Policies

Upgrading FreeBSD 10.4-p13 to 11.2 with freebsd-update

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…

Comments Off on Upgrading FreeBSD 10.4-p13 to 11.2 with freebsd-update

Update office 365 command

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    

Comments Off on Update office 365 command

Idiots guide to getting started in git

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…

Comments Off on Idiots guide to getting started in git

Windows 7 Convenience Rollup

You need to install the April 2015 servicing stack update for Windows 7 and Windows Server 2008 R2 before installing the Convenience Rollup

Comments Off on Windows 7 Convenience Rollup

Git for steve the idiot

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…

Comments Off on Git for steve the idiot

Copying plex data from one FreeNAS jail to another

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…

Comments Off on Copying plex data from one FreeNAS jail to another

debian / ubunti network configuation

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…

Comments Off on debian / ubunti network configuation

Windows 10 / ESX 5.5

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…

Comments Off on Windows 10 / ESX 5.5

Disable Update to Windows 10

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…

Comments Off on Disable Update to Windows 10

Useful FreeBSD commands you always forget…

FreeBSD equivalent of netstat The command you want is sockstat. Use sockstat -4l to see just IPv4 listening sockets

Comments Off on Useful FreeBSD commands you always forget…

Exchange Backup Procedure

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…

Comments Off on Exchange Backup Procedure

WordPress plugins to remember

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…

Comments Off on WordPress plugins to remember

Office Administrative Template / Group Policy

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)…

Comments Off on Office Administrative Template / Group Policy

FreeBSD grep recursive but exclude some directories

grep 'scs' --exclude='./frontend/runtime/*' --exclude='./backend/runtime/*' --exclude='./console/runtime/*' --exclude='./vendor/*' . -R grep 'status' --exclude-dir={runtime,debug,migrations,web,vendor} . -R

Comments Off on FreeBSD grep recursive but exclude some directories

Yii2 crib sheet (until I create some proper pages)

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"…

Comments Off on Yii2 crib sheet (until I create some proper pages)

putting awstats live on a long hosted website

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…

Comments Off on putting awstats live on a long hosted website

WordPress harderning with apache

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…

Comments Off on WordPress harderning with apache

Screen rotation – Intel HD Graphics

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…

Comments Off on Screen rotation – Intel HD Graphics

Comment for mcrypt_create_iv / Suggested work flow for encryption

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…

Comments Off on Comment for mcrypt_create_iv / Suggested work flow for encryption

Munin plugin & Use of uninitialized value in

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.…

Comments Off on Munin plugin & Use of uninitialized value in