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
| curl --location 'https://mide-sandbox.smartprop.club/api/v1/clients/multiple' \ | |
| --header 'Content-Type: application/json' \ | |
| --header 'authorization: Bearer {{api key}}' \ | |
| --data-raw '{ | |
| "data" : [ | |
| { | |
| "NOME": "Rebeca Nunes", | |
| "DATA" : "01/01/2024", | |
| "DATA NASCIMENTO": "27/03/1981", | |
| "CPF/CNPJ": "03.892.764/0001-27", |
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
| sudo su | |
| yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA.x86_64 | |
| curl https://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip -O | |
| cd /opt | |
| unzip CloudWatchMonitoringScripts-1.2.2.zip && \ | |
| rm CloudWatchMonitoringScripts-1.2.2.zip && \ | |
| cd aws-scripts-mon |
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
| var crypto = require('crypto') | |
| , key = 'your secret key here' | |
| , plaintext = 'Text to be encrypted' | |
| , cipher = crypto.createCipher('aes-256-cbc', key) | |
| , decipher = crypto.createDecipher('aes-256-cbc', key); | |
| var encryptedPassword = cipher.update(plaintext, 'utf8', 'base64'); | |
| encryptedPassword += cipher.final('base64') | |
| var decryptedPassword = decipher.update(encryptedPassword, 'base64', 'utf8'); |
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
| var request = require('request'); | |
| var sendMessage = function(device, message){ | |
| var restKey = '****'; | |
| var appID = '****'; | |
| request( | |
| { | |
| method:'POST', | |
| uri:'https://onesignal.com/api/v1/notifications', | |
| headers: { |
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
| "use strict"; | |
| // Load plugins | |
| const autoprefixer = require("autoprefixer"); | |
| const browsersync = require("browser-sync").create(); | |
| const cp = require("child_process"); | |
| const cssnano = require("cssnano"); | |
| const del = require("del"); | |
| const eslint = require("gulp-eslint"); | |
| const gulp = require("gulp"); |
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
| # Enable Fedora Extra Packages for Enterprise Linux (EPEL) repos | |
| $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| # Install npm from the epel repos | |
| $ sudo yum install npm --enablerepo=epel | |
| sudo npm cache clean -f | |
| sudo npm install -g n | |
| sudo n stable |
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
| #S3 | |
| var s3 = new AWS.S3({ | |
| httpOptions: { | |
| timeout: 200000000 | |
| } | |
| }); | |
| #express | |
| apiRoutes.post('/files', function (req, res) { | |
| req.setTimeout(0); |
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
| var AWS = require('aws-sdk'); | |
| AWS.config.region = 'your aws region'; | |
| AWS.config.update({ | |
| accessKeyId: "your access id", | |
| secretAccessKey: "your secret access key", | |
| }); | |
| var sns = new AWS.SNS(); | |
| var params = { |
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
| /** | |
| * @Author: bachvtuan@gmail.com | |
| * to_number: String : user phone number | |
| * message: String : sms message | |
| * func_callback: function : callback function( status ) | |
| * Reference links : | |
| * https://gist.github.com/stuartmyles/8099723 | |
| * http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SNS.html#deleteTopic-property | |
| */ |
NewerOlder