I hereby claim:
- I am albertpark on github.
- I am albertpark (https://keybase.io/albertpark) on keybase.
- I have a public key whose fingerprint is CCC9 BFCD B7F4 4E35 E303 5055 5E34 5DF2 FCAF 82F7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* PHP CLI Colors – PHP Class Command Line Colors (bash) | |
* | |
* $str = "This is an example "; | |
* | |
* foreach (ColorCLI::$foregroundColors as $fg => $fgCode) { | |
* echo ColorCLI::$fg($str); | |
* | |
* foreach (ColorCLI::$backgroundColors as $bg => $bgCode) { |
<?php | |
function run($path) { | |
$xml = simplexml_load_file($path); | |
$project = $xml->testsuite; | |
echo sprintf("total: %s msec", formatMsec($project['time'])) . PHP_EOL; | |
foreach ($project->testsuite as $testsuite) { | |
echo sprintf(" suite: %s msec : %s", formatMsec($testsuite['time']), $testsuite['name']) . PHP_EOL; |
<?php | |
function run($path) { | |
$xml = simplexml_load_file($path); | |
foreach ($xml->file as $file) { | |
echo sprintf("file: %s", $file['name']) . PHP_EOL; | |
foreach ($file->violation as $violation) { | |
echo " " . printMessage($violation) . PHP_EOL; | |
echo sprintf( |
<?php | |
function run($path) { | |
$xml = simplexml_load_file($path); | |
foreach ($xml->file as $file) { | |
echo sprintf("file: %s", $file['name']) . PHP_EOL; | |
foreach ($file->error as $violation) { | |
echo " " . printMessage($violation) . PHP_EOL; | |
echo sprintf( |
@DATABASE@__%Y-%m-%d_%H-%M-%S |
Navigate to the desired directory you wish to work on and type the following commands in a terminal.
$ git init
$ git remote add origin PATH_TO_REPOSITORY # i.e. git@github.com:username/repository-name.git
$ git fetch origin
$ git reset origin/master # Required when the versioned files existed in path before "git init" of this repo.
$ git checkout -t origin/master
This guide all started because of the infamous Permission Denied (publickey)
when trying to push code to my repository. Before we can start using repositories intensively there are prequisties that we must complete in order to get our work flowing.
We will be using git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. You can also use the default Windows Command Prompt by installing git from git-scm.
Tip: You can use any *nix
based command prompt
First thing is first, we must first identify if the ssh-agent
is enabled and running properly. If this is not an issue go to step 2.