One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| <?php | |
| class Anything { | |
| public function include() { | |
| } | |
| } |
| <?php | |
| $tokens = token_get_all('<?php echo; ?>'); | |
| foreach ($tokens as $token) { | |
| if (is_array($token)) { | |
| echo "Line {$token[2]}: ", token_name($token[0]), " ('{$token[1]}')", PHP_EOL; | |
| } | |
| } |
| function openyt() { | |
| open -a /Applications/Google\ Chrome.app https://youtrack.organisation-name.io/issue/$(current_branch) | |
| } |
| #!/usr/bin/php -q | |
| <?php | |
| if(isset($argv[1]) && strlen($argv[1])) { | |
| $file = $argv[1]; | |
| }else{ | |
| echo 'Please Specify a File'; | |
| exit(1); | |
| } |
| #!/bin/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
| /** | |
| * ${NAME} | |
| * | |
| #if (!$!PARAM_DOC || $!PARAM_DOC != "") | |
| #set( $paramCommentArr = ${PARAM_DOC.split("\n")} ) | |
| #foreach( $paramComment in $paramCommentArr ) | |
| #set ($index = $paramComment.indexOf("$") + 1) | |
| ${paramComment} $paramComment.substring($index) | |
| #end | |
| #end |
PHP Coding Standards
| [user] | |
| email = irfan-blackhawk | |
| name = [email protected] | |
| [alias] | |
| prune = fetch --prune | |
| # Because I constantly forget how to do this | |
| # https://git-scm.com/docs/git-fetch#git-fetch--p | |
| undo = reset --soft HEAD^ | |
| # Not quite as common as an amend, but still common |
#MongoDB 3.2.x Logging
The main log file is the mongod.log. You can specify the log file location when you are starting the mongod process but if you have installed on Ubuntu from a package then you log file will normally be located in /var/log/mongodb/mongod.log.
You can tail the log file using:
tail -f /var/log/mongodb/mongod.log
From the Mongo shell you can also view the log file using:
show logs