Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
I sometimes forgot to pull data from git before start working on a project. To minimize the headache of merge conflict or having to reset head and stash your data you can set a cronjob to run every 10 minute or so. And inside of your bash script CD into eaach of your folders and issue git pull command.

If you have similar issues and you're solving it in a different manner, I'd be happy to hear about it. :)

#linux #mac #bash #script #git #cron #crontab #cronjob
How to create a an application for your platform? Let's say an EXE file for windows and .app for MAC or a binary for linux.

I suppose you have nodejs and npm already installed. You need to install nativefier node module using the command below first:

npm install -g nativefier

Now you can generate a native app from your website using the command below:

nativefier "https://www.google.com/" --name="Google"

There are many parameters you can give to nativefier in order to set custom settings on it. Check nativefier --help for that.

#nativefier #nodejs #npm #electron #mac #windows #exe