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
| const request = require('request-promise'); | |
| const moment = require('moment'); | |
| moment().format(); | |
| var API_KEY = process.env.API_KEY; | |
| var urls = { deals: 'https://api.pipedrive.com/v1/deals?start=0&api_token=' + API_KEY, | |
| activities : 'https://api.pipedrive.com/v1/activities?start=0&api_token=' + API_KEY }; | |
| var applications = []; |
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
| const request = require('request-promise'); | |
| const moment = require('moment'); | |
| moment().format(); | |
| var API_KEY = process.env.API_KEY; | |
| var urls = { deals: 'https://api.pipedrive.com/v1/deals?start=0&api_token=' + API_KEY, | |
| activities : 'https://api.pipedrive.com/v1/activities?start=0&api_token=' + API_KEY }; | |
| function getIt (url) { |
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
| const request = require('request'); | |
| var urls = { deals: 'https://api.pipedrive.com/v1/deals?start=0&api_token=12345', | |
| activities : 'https://api.pipedrive.com/v1/activities?start=0&api_token=12345' }; | |
| var applications = []; | |
| var alreadyHave4506T = []; | |
| var stillNeeds4506T = []; | |
| function getIt (url, callback) { |
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
| const request = require('request'); | |
| var urls = { deals: 'https://api.pipedrive.com/v1/deals?start=0&api_token=1234', | |
| activities : 'https://api.pipedrive.com/v1/activities?start=0&api_token=12345' }; | |
| var applications = []; | |
| var alreadyHave4506T = []; | |
| var stillNeeds4506T = []; | |
| function getIt (url, callback) { |
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
| const request = require('request'); | |
| var urls = { deals: 'https://api.pipedrive.com/v1/deals?start=0&api_token=12345', | |
| activities : 'https://api.pipedrive.com/v1/activities?start=0&api_token=12345' }; | |
| var applications = []; | |
| var alreadyHave4506T = []; | |
| function getIt (url, callback) { | |
| request(url, function (error, response, body) { |
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
| const request = require('request'); | |
| var url = {deals: 'https://api.pipedrive.com/v1/deals?start=0&api_token=a74cbe24c7ac34f45256356a747eaebf96445c94', | |
| activities: 'https://api.pipedrive.com/v1/activities?start=0&api_token=a74cbe24c7ac34f45256356a747eaebf96445c94'}; | |
| function getDeals (url, callback) { | |
| request(url, function (error, response, body) { | |
| if (error) { | |
| return console.log(error); |
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
| function logFunction() { | |
| var test = "Yay... my function is working"; | |
| console.log(test); | |
| } | |
| logFunction; |
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/sh | |
| while inotifywait -e create photos; do | |
| rsync -r -e 'ssh -p 28000' photos/ [email protected]:/srv/http/trailcam/vps_test | |
| done |
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
| [Unit] | |
| Description=Start rsync | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/sync_test | |
| [Install] | |
| WantedBy=multi-user.target |
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
| [Unit] | |
| Description=Start test | |
| [Service] | |
| WorkingDirectory=/home/admin | |
| Type=simple | |
| ExecStart=/bin/bash sync_test1.sh start | |
| KillMode=process | |
| [Install] |