Skip to content

Instantly share code, notes, and snippets.

View psahalot's full-sized avatar

Puneet Sahalot psahalot

View GitHub Profile
@psahalot
psahalot / functions.php
Created April 23, 2012 22:24
Editing WordPress profiles with Gravity Forms
<?php
// add the following to your functions file or similar
define( 'FUBLO_GF_PROFILE', 1 ); // define the ID number of your profile form.
// ============================================================= PROFILE EDITING
/**
* These are the user metadata fields, with their names and the data about them.
@psahalot
psahalot / WP Devs
Created September 11, 2012 13:44
A list of WP Developers and Agencies
http://hmn.md/
http://interconnectit.com
http://jamesdalman.com
@psahalot
psahalot / Advanced WP Plugins
Created September 11, 2012 13:45
List of useful WP Plugins
http://interconnectit.com/products/the-auditor/
http://infinitewp.com/addons/
@psahalot
psahalot / Responsive
Created September 11, 2012 21:38
Responsive web dev resources
http://bradfrost.github.com/this-is-responsive/
@psahalot
psahalot / ISS and WP
Created September 13, 2012 10:06
Rewrite rules for IIS
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
@psahalot
psahalot / Switch to Root user
Created September 24, 2012 00:58
Switch to Root user
sudo su
@psahalot
psahalot / Install Apache
Created September 24, 2012 01:05
Install Apache web server
apt-get install apache2
@psahalot
psahalot / Install PHP5
Created September 24, 2012 01:06
Install PHP5
apt-get install php5
apt-get install libapache2-mod-php5
/etc/init.d/apache2 restart
@psahalot
psahalot / PHP Info
Created September 24, 2012 01:06
create test phpinfo file
cd /var/www/
vi mytest.php
@psahalot
psahalot / Install MySQL server
Created September 24, 2012 01:07
Install MySQL server
apt-get install mysql-server