This file contains hidden or 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 | |
/** | |
Template Name: Archive | |
*/ | |
get_header(); ?> |
This file contains hidden or 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 | |
namespace glowingminds; | |
/** | |
* Simple wrapper for cURL page fetching | |
* @author Ingmar Boddington (https://github.com/IngmarBoddington | http://www.glowingminds.co.uk/) | |
* @author Barry Parkin (https://github.com/barryparkin | http://ba.rrypark.in) | |
* @version 1.1 | |
* | |
* ~ Improved security of https connections to prevent man-in-the-middle atacks. |
This file contains hidden or 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 | |
/** | |
* SessionHandler Class - Uses DB for session handling (for multiserver environment) | |
* | |
* @package glowingminds | |
* @author Ingmar Boddington | |
*/ | |
class SessionHandler { | |
const TABLENAME = 'sessions'; |
This file contains hidden or 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
git add . [-A] | |
- Recursively add all modified files to staging area | |
-A - Include removed files | |
git blame | |
- Show last modigified timestamp / author for each line of a file | |
git branch [-a] [-r] [-m] [-d] [-D] [<branch-name>] | |
- Lists local branches, give name to create branch | |
- Flags:git |
This file contains hidden or 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
Command History | |
=============== | |
!! - Repeat previous command | |
!!:/s/<search>/<replace>/g - Repeat previous command with replaced string value | |
sudo !! - Repeat previous command with sudo | |
history - Show bash history | |
!<int> - Run a labelled command from history command | |
!<command> a - Re-run last use of command | |
<command>:p - Print rather than run (e.g. !!:p, to print last run command) | |
^<search>^<replace> - Run previous command replacing search with replace (for typos) |
This file contains hidden or 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
EXAM DETAILS | |
Main MySQL Website: http://www.mysql.com/ | |
Certification Webpage: http://education.oracle.com/ | |
Exam Name: MySQL 5 Certified Associate Exam | |
Exam Number: 1Z0-870 | |
e | |
========================================================================================================= | |
EXAM TOPICS | |
Section 1: Theory, Terminology and Concepts (10%) | |
Client/Server Concepts |
This file contains hidden or 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
git flow init | |
- Sets up 'proper' branch structure for repo | |
git flow feature | |
- List feature branches | |
git flow feature start <name> | |
- Begin a new feature branch from develop and switch to it | |
git flow feature finish <name> |
This file contains hidden or 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
Composer Install | |
================ | |
Download: curl -s https://getcomposer.org/installer | php | |
Install: mv composer.phar /usr/local/bin/composer | |
composer.json | |
============= | |
contains information of project dependencies | |
Example (Remember - no comments in json): |
This file contains hidden or 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 | |
- Start interactive session | |
php -f <filename> | |
- Run specified script from cli | |
php -i | |
- Show PHP info | |
php -m |
OlderNewer