This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select id="state" name="state"> | |
<option value="">Select One</option> | |
<optgroup label="Canadian Provinces"> | |
<option value="AB">Alberta</option> | |
<option value="BC">British Columbia</option> | |
<option value="MB">Manitoba</option> | |
<option value="NB">New Brunswick</option> | |
<option value="NF">Newfoundland</option> | |
<option value="NT">Northwest Territories</option> | |
<option value="NS">Nova Scotia</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aside.left { | |
float: left; | |
width: 600px; | |
margin-left: 0; | |
margin-right: -600px; | |
} | |
aside.right { | |
float: left; | |
width: 200px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name .svn -print0 | xargs -0 rm -rf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Number of files in current working directory | |
ls -lA | wc -l | |
## Number of files in current working directory (recursive) | |
find . -type f | wc -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jQuery Query Plugin by M. Pezzi | |
* Version: 1.0 (08/25/11) | |
* https://gist.github.com/1170858 | |
* Dual licensed under the MIT and GPL licences: | |
* http://www.opensource.org/licenses/mit-license.php | |
* http://www.gnu.org/licenses/gpl.html | |
* Requires: jQuery v1.4.2 or later | |
*/ | |
(function($){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jQuery Delayed Hide Plugin by M. Pezzi | |
* Version: 1.0 (08/25/11) | |
* https://gist.github.com/1171181 | |
* Dual licensed under the MIT and GPL licences: | |
* http://www.opensource.org/licenses/mit-license.php | |
* http://www.gnu.org/licenses/gpl.html | |
* Requires: jQuery v1.4.2 or later | |
*/ | |
(function($){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Validate a phone number. | |
* | |
* @param $value | |
* A phone number as string. | |
* @param $formats | |
* The formats to validate for. | |
* @return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create User | |
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password'; | |
# Grant Privileges | |
GRANT ALL PRIVILEGES ON database.* TO 'user'@'localhost' IDENTIFIED BY 'password'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creating git user | |
sudo adduser -system -shell /bin/bash -gecos 'git version control' -group -disabled-password -home /var/git git | |
# Clone Gitolite | |
git clone git://github.com/sitaramc/gitolite | |
cd gitolite | |
src/gl-system-install | |
# Run setup as git user. | |
sudo su |
OlderNewer