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
=== SETUP === | |
For windows clients set autocrlf to true by typing: | |
$ git config --global core.autocrlf true | |
For Unix/Mac | |
$ git config --global core.autocrlf input | |
ALSO RUN this to change all file line endings on Linux/Mac | |
find . -name "*" -type f -exec dos2unix {} \; |
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
# Test URI | |
# Ignore netbeans folder | |
nbproject/* | |
# Ignore private folder | |
/app/private/* | |
!/app/private/empty | |
# Ignore packed asset files | |
/app/webroot/css/packed/* |
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
# This file only works for git version 1.6+ | |
# Handle line endings automatically for files detected as text | |
# and leave all files detected as binary untouched. | |
* text=auto | |
# These files are text and should be normalized (Convert crlf => lf) | |
*.adoc text | |
*.css text | |
*.csv text | |
*.ctp text |
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
Start with cloning the framework's repository (in this example Wordpress) in your local machine. | |
$ git clone https://github.com/WordPress/WordPress.git | |
If you get an error like this - "Did you intend to checkout 'tags/xxxxx' which can not be resolved as commit?", fetch new tags. | |
$ git fetch origin --tags | |
Create separate branches for the current verion you are using and the version you want to upgrade to. | |
$ git checkout -b 3.6-branch tags/3.6 | |
$ git checkout -b 3.6.1-branch tags/3.6.1 |
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
GID_TABLE = { | |
'od6': 0, | |
'od7': 1, | |
'od4': 2, | |
'od5': 3, | |
'oda': 4, | |
'odb': 5, | |
'od8': 6, | |
'od9': 7, | |
'ocy': 8, |
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
wget -p -e robots=off --wait 1 URL |
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
https://www.youtube.com/embed/okFKnjfA_uE?controls=0&modestbranding=1&origin=https%3A%2F%2Fwww.google.co.nz&rel=0&showinfo=0&wmode=transparent&enablejsapi=1 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# Get admin password | |
/opt/psa/bin/admin --show-password | |
# Login to mysql | |
mysql -uadmin -p`cat /etc/psa/.psa.shadow` |
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
profile image: 400 x 400 | |
header image: 1500 x 500 |
OlderNewer