nginx php centos6 howto

Content source: http://www.mellzamora.com/install-nginx-php-5-4-php-fpm-on-centos6/
Add REMI repo:

## Remi Dependency on CentOS 6 64BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

## Remi Dependency on CentOS 6 32BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

## Remi Dependency on CentOS 5 64BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

## Remi Dependency on CentOS 5 32BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Add Nginx repo by creating the file /etc/yum.repos.d/nginx.repo and add following content to repo file:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

Install Nginx, . . . → Read More: nginx php centos6 howto

Share

Reset Active Directory Password Script

This isn’t so much a script as an awesome way to reset an active directory user’s password.

Requirements

You must have admin rights to domain controller
psexec

How to Reset Active Directory User’s Password from Command Line

In this case you would need to be on the domain controller to run this:

DSQUERY USER -samid <enter_username_here&gt | dsmod user -pwd <enter_new_pw_here&gt -mustchpwd . . . → Read More: Reset Active Directory Password Script

Share

powershell opens notepad

Why is your awesome powershell script just opening up notepad?!

Running Windows PowerShell Scripts

Few things in life are as exciting as getting a brand-new command shell and scripting language; in fact, getting a brand-new command shell and scripting language is so exciting that you can barely get the thing out of the box before you want to . . . → Read More: powershell opens notepad

Share

wordpress plugin pre syntax

A great plugin to use to get syntax specific pre statements is “Prettify GC Syntax Highlighter”

Found here

You can also change prettyprint to:
prettyprint lang-YOURLANG and

Replace YOURLANG with one of . . . → Read More: wordpress plugin pre syntax

Share

getdn.bat

To return the distinguished name for all users in an active directory domain create a new file called getdn.bat

Content:

del c:activeUsers.txt
DSQUERY.exe * -limit 0 -filter "(&(objectCategory=Person)(objectClass=User)(!userAccountControl:1.2.840.113556.1.4.803:=2))" . . . → Read More: getdn.bat

Share

start menu search broken

Searching from the start menu resulted in no results

Searching from the start menu suddenly stopped working on one of my machines recently. Only when it stopped working did I realise how much I had started to rely upon it to find programs, configuration wizards and such like.

Trawling the forums unearthed many suggestions. Often the suggestions were . . . → Read More: start menu search broken

Share

powershell reset active directory password

(original post from: http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/17/how-to-change-a-user-s-active-directory-password-with-powershell.aspx)

 

To change a user’s password using Windows PowerShell, you can use the [adsi] type accelerator. To do this, make a connection to the user object by passing the entire distinguished name of the user. This line of the code is shown here (keep in mind that LDAP is all capital letters, and does . . . → Read More: powershell reset active directory password

Share

comcast throttling workaround

Recently I noticed Comcast was throttling my usenet connection. The solution? Use a nonstandard encrypted usenet port (ex: 443) if your service provider . . . → Read More: comcast throttling workaround

Share

visio error 106

If you are receiving this error:

Microsoft Office Visio
“An error (106) occurred during the action Check Out File.  Bad disk failure.”  OK.

 

The issue is that you are trying to save to a folder you don’t have rights to save to.

 

If you are using a sharepoint folder you need to install and run this to fix the problem:

http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1D64&displaylang=en

 

If . . . → Read More: visio error 106

Share

cURL Examples

Great examples of how to use cURL from http://www.thegeekstuff.com/2012/04/curl-examples/

1. Download a Single File

The following command will get the content of the URL and display it in the STDOUT (i.e on your terminal).

$ curl http://www.centos.org

To store the output in a file, you an redirect it as shown below. This will also display some additional download statistics.

$ curl http://www.centos.org . . . → Read More: cURL Examples

Share