Skip to content

Instantly share code, notes, and snippets.

View eduardocalazansjr's full-sized avatar
:shipit:

Eduardo C. eduardocalazansjr

:shipit:
  • 20°19'10.0"S 40°20'16.0"W
View GitHub Profile
const parsePayload = (payload, intentName) => {
let commands
const actions = [] as any
const conditionalSplit = payload.split("}} ").map(r => r.trim()).filter(r => r !== "")
if (conditionalSplit.length == 1) {
commands = payload.split(";").map(r => r.trim()).filter(r => r !== "")
commands.forEach(cmd => actions.push(handleCommand(cmd, intentName)))
} else if (conditionalSplit.length > 1) {
conditionalSplit.forEach(c => {
if (c.startsWith("if") || c.startsWith("else if")) {
@eduardocalazansjr
eduardocalazansjr / modalchat.js
Created September 17, 2020 23:40
webchat-rn
const url = "https://privateboturl"
const token = "uniqueUserId"
const onClose = () => {
//Callback de fechamento do Chat
}
//Habilita input de áudio e configura o UserId
const runFirst = `
window.supportsAudioRecording = true;
setPid("${token}");
@eduardocalazansjr
eduardocalazansjr / bomber.py
Last active September 4, 2019 23:25
MailBomber
import os, sys, smtplib, getpass, time
try:
W = '\033[0m'
R = '\033[31m'
G = '\033[32m'
print( R + 'You must ENABLE 2Step Verification in your Google Account AND use a App Password to use this')
print( R + '\nhttps://myaccount.google.com/security')
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Accept,Content-Type,X-Requested-With" />
</customHeaders>
</httpProtocol>
</system.webServer>
@eduardocalazansjr
eduardocalazansjr / instapy.py
Last active April 6, 2017 10:54
InstaPy Test
###Change/Add the following Lines
chrome_options = Options()
chrome_options.add_argument('--dns-prefetch-disable')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--lang=en-US')
chrome_options.add_experimental_option('prefs', {'intl.accept_languages': 'en-US'})
self.browser = webdriver.Chrome('./assets/chromedriver', chrome_options=chrome_options)