Today I Learned
Things I learn/forget over time.
- Project with lots of modules - No matter how hard you try to make an import work, if the module where you trying to import from is not defined as a dependency of your module (in your pom.xml), the import will not work.
- You can force push directly to master from a detached head. Then, once on master, you have to pull.
- You cannot use
(
or)
as part of a filename, unless you surround that filename with quotes. The follwing will not work:touch hello(asd)
, but this one will work:touch "hello(asd)"
- If a script put on cron gives an error like "cannot identify file or directory", it is probably because the crontab does not cd to the offending directory.
- cron can take up to 7 arguments:
minute hour dom month dow user cmd
. Example:H/5 * * * *
: The H will take a numeric hash of the Job name and use this to ensure that different jobs with the same cron settings do not all trigger at the same time. H/5 in the first field means Every five minutes starting at some time between 0 and 4 minutes past the hour. More details here and here.
- Jekyll does not include a post in the compiled version of your blog, unless
given timestamp <= current timestamp
- One should always define the
url
value in the_config.yml
. Eventhough it might work locally with an empty value for it, when deployed on Github Pages, it will cause assets like images to not be loaded.