Skip to content

Instantly share code, notes, and snippets.

window.onload = function() {
(function (a, b) {
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kd
window.onload = function() {
(function (a, b) {
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kd
This file has been truncated, but you can view the full file.
/usr/bin/xcrun xcodebuild -project /Users/muhammad/Desktop/projects/Spotella/mapbox-navigation-ios/Carthage/Checkouts/aws-sdk-ios/AWSiOSSDKv2.xcodeproj -scheme AWSCore -configuration Release -derivedDataPath /Users/muhammad/Library/Caches/org.carthage.CarthageKit/DerivedData/aws-sdk-ios/1a8432b03c22326fb7ed86fac978212106e2d465 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean buildUser defaults from command line:
IDEDerivedDataPathOverride = /Users/muhammad/Library/Caches/org.carthage.CarthageKit/DerivedData/aws-sdk-ios/1a8432b03c22326fb7ed86fac978212106e2d465
Build settings from command line:
BITCODE_GENERATION_MODE = bitcode
CARTHAGE = YES
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphoneos9.3
<div class="form-container">
{% form "my_form" form_to_use='form-ID', title='Free Trial', response_response_type='inline', response_message='Thanks!' %}
<div class="disclaimer" style="text-align:center">By clicking "Apply Now" you agree that you've read and accepted <a href ="http://www.1800approved.com.au/privacy-policy-new/" target="_blank">Privacy Policy/Consent</a> and <a href = "http://www.1800approved.com.au/credit-guide-quote/" target="_blank">Credit Guide Quote</a>.
</div>
</div>
<script>
$(function() {
setTimeout(function() {
var fID = $(".form-container").find("form").attr("id");
@umair-khokhar
umair-khokhar / gist:705f1f5343bb422d59aaeba546994c30
Last active October 31, 2017 10:26
Identifying user device type
<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') {
[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 {
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
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);
});
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]'
}
})
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