Skip to content

Instantly share code, notes, and snippets.

@nemanjan00
Last active June 13, 2018 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nemanjan00/0916cfacc7ac53ec820e02d5df10167e to your computer and use it in GitHub Desktop.
Save nemanjan00/0916cfacc7ac53ec820e02d5df10167e to your computer and use it in GitHub Desktop.
alias diary="vim $(php ~/diary.php)"
<?php
$dir = "~/projects/dnevnik/".date("Y")."/".date("m"); # change ~/projects/dnevnik to whatever you want.
exec("mkdir -p ".$dir);
echo $dir."/".date("d").".md";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment