This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
now=$(date +"%d-%m-%Y") | |
cd /path/to/local/project | |
git checkout master | |
git pull remote master | |
git branch $now | |
git checkout $now | |
lftp -e 'set ssl:verify-certificate no; mirror -P 10 -v /remote/folder/ /path/to/local/project/.' -u username,password FTP_SERVER_IP | |
git add -A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/* | |
* Convert JSON file to CSV and output it. | |
* | |
* JSON should be an array of objects, dictionaries with simple data structure | |
* and the same keys in each object. | |
* The order of keys it took from the first element. | |
* | |
* Example: |