Boot up with an Fedora Live USB stick.
- Run
vgsto check if there's any space:
$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
fedora 1 3 0 wz--n- <237.28g 0 | <?php | |
| // custom/Extension/modules/Schedulers/Ext/ScheduledTasks/SendInvoiceEmail.php | |
| function SendInvoiceEmail($job){ | |
| global $log, $sugar_config; | |
| $log->fatal("###### BEGIN SENDING INVOICE EMAIL ########"); | |
| try{ | |
| // $job->data here is the required data to complete this task, | |
| //which in our is the invoice id, we are generating pdf for | |
| if (isset($job->data) && $job->data !== '') { |
| <?php | |
| // custom/include/custom_utils.php | |
| function sendEmail($email, $subject, $emailBody , $attachment = null) | |
| { | |
| // Convert the email to array in case we are sending to multiple emails | |
| $emails = explode(',', $email); | |
| global $log; | |
| $emailObj = new Email(); | |
| $defaults = $emailObj->getSystemDefaultEmail(); |
| // express/.gitlab-ci.yml | |
| ... | |
| deploy: | |
| stage: deploy | |
| script: | |
| - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
| - eval $(ssh-agent -s) | |
| - ssh-add <(echo "$SSH_PRIVATE_KEY") | |
| - mkdir -p ~/.ssh |
| // express/.gitlab-ci.yml | |
| image: node:10.11.0 | |
| cache: | |
| paths: | |
| - node_modules/ | |
| stages: | |
| - build |
| // ig-bot/Bot/config/puppeter.json | |
| { | |
| "base_url": "https://www.instagram.com", | |
| "username": "your-username", | |
| "password": "your-password", | |
| "hashTags": ["cars","cat","soccer","javascript","places","football", "Motivation"], | |
| "settings": { | |
| "run_every_x_hours": 3, | |
| "like_ratio": 0.75, |
| module.exports = InstagramBot; |
| // ig-bot/index.js | |
| const Bot = require('./Bot');// this directly imports the Bot/index.js file | |
| const config = require('./Bot/config/puppeteer'); | |
| const run = async () => { | |
| const bot = new Bot(); | |
| const startTime = Date(); |
| //index.js | |
| ... | |
| async closeBrowser(){ | |
| await this.browser.close(); | |
| } | |
| } |
| //ig-bot/Bot/index.js | |
| ... | |
| async unFollowUsers() { | |
| let date_range = new Date().getTime() - (this.config.settings.unfollow_after_days * 86400000); | |
| // get the list of users we are currently following | |
| let following = await this.firebase_db.getFollowings(); | |
| let users_to_unfollow = []; |