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
GET: | |
https://meg-api-tezrosolutions.c9users.io/?name=Umair | |
POST: | |
curl -XPOST -H "Content-type: application/json" -d '{"name": "umair"}' https://meg-api-tezrosolutions.c9users.io/ |
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
Request | |
======= | |
POST <URL TBD> HTTP/1.1 | |
Content-Type: application/json | |
{ | |
"data": [ | |
{ | |
"type": "applicant", | |
"id": 1, //only if you need to update an applicant |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define MAX_WORD_LENGTH 5 | |
int main(int argc, char *argv[]) | |
{ | |
char password[5]; | |
int authenticate = 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
(function ($) { | |
$.fn.hubspotForm = function (options) { | |
var defaults = { | |
portalID: "1799160", | |
formGUID: "138b1606-f288-4e65-b21a-053f93cc40e9", | |
successMessage: ".success-message", | |
submit: ".submit" | |
}; |
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
import json | |
import requests | |
import random | |
api_url_base = "https://track.hubspot.com/" | |
api_key = "14adedf5-8f33-41fc-a304-e7c72633f03c" | |
headers = { | |
'User-Agent': 'My User Agent 1.0', | |
'From': '[email protected]' # This is another valid field |
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 axios = require('axios'); | |
axios({ | |
method: 'get', | |
url: 'https://track.hubspot.com/v1/event?_n=000006396555&_a=3322366&[email protected]&hapi=14adedf5-8f33-41fc-a304-e7c72633f03c', | |
headers: { | |
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0', | |
'From': '[email protected]' | |
} | |
}) |
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 axios = require('axios'); | |
axios({ | |
method: 'get', | |
url: 'https://track.hubspot.com/v1/event?_n=000006396555&_a=3322366&[email protected]&hapi=14adedf5-8f33-41fc-a304-e7c72633f03c', | |
headers: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0'} | |
}) | |
.then((response) => { | |
console.log(response); | |
}); |
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
Instruction for LibreOffice dependency installation | |
1. cd /usr/local | |
2. wget http://download.documentfoundation.org/libreoffice/stable/5.0.0/rpm/x86_64/LibreOffice_5.0.0_Linux_x86-64_rpm.tar.gz | |
3. cd LibreOffice_5.0.0_Linux_x86-64_rpm | |
4. yum localinstall *.rpm --skip-broken | |
5. yum install cairo |
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
[info] [Appium] Welcome to Appium v1.7.2 | |
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"Safari","deviceName":"iPad","platformName":"iOS","platformVersion":"11.2"},"capabilities":{"desiredCapabilities":{"browserName":"Safari","deviceName":"iPad","platformName":"iOS","platformVersion":"11.2"},"firstMatch":[{"browserName":"Safari","platformName":"ios"}]}} | |
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"Safari","deviceName":"iPad","platformName":"iOS","platformVersion":"11.2"},null,{"desiredCapabilities":{"browserName":"Safari","deviceName":"iPad","platformName":"iOS","platformVersion":"11.2"},"firstMatch":[{"browserName":"Safari","platformName":"ios"}]}] | |
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1516748507867 (18:01:47 GMT-0500 (EST)) | |
[info] [Appium] Merged W3C capabilities {"desiredCapabilities":{"browserName":"Safari",... into desiredCapabilities object { |
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
<span id="txtDevice"></span> | |
<script> | |
var deviceDetector=function(){var b=navigator.userAgent.toLowerCase(),a=function(a){void 0!==a&&(b=a.toLowerCase());return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(b)?"tablet":/(mobi|ipod|phone|blackberry|opera mini|fennec|minimo|symbian|psp|nintendo ds|archos|skyfire|puffin|blazer|bolt|gobrowser|iris|maemo|semc|teashark|uzard)/.test(b)?"phone":"desktop"};return{device:a(),detect:a,isMobile:"desktop"!=a()?!0:!1,userAgent:b}}(); | |
</script> | |
<script> | |
var device = ""; | |
document.addEventListener("DOMContentLoaded", function(event) { | |
if(deviceDetector.device == 'desktop') { |