Failed crontab for root on OSX
If you're running a cron job as root, and you're running a homebrew command, you'll need to add homebrew to the root user's path.
sudo su cat ~/.bash_profile
Do you see this?
Welcome. My name is Jeremiah John, sf/f author & activist.I tell liberationist stories.. . . More About Me
If you're running a cron job as root, and you're running a homebrew command, you'll need to add homebrew to the root user's path.
sudo su cat ~/.bash_profile
Do you see this?
NodeJS scripts from the CLI can be difficult to debug. Often, one doesn't want to modify the core processes.
I found the easiest way to hit a breakpoint was to create a shell wrapper.
But I was worried... would my code have access to sdin
and stdout
?
Have you ever wanted to .gitignore a file by branch?
The classic example for me here is versioning the generated styles.css file on master (which is deployed to production) but not on develop (which is used for pull requests).
Versioning the styles.css file can result in merge conflicts or PRs that are just messy.
Here's the script I wrote.
Read the comments for installation notes.