This file contains 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
<?php | |
$template = ButtonTemplate::create($message->attachment->payload->text); | |
Log::info('Inside the button template1'; | |
$template->addButton( | |
ElementButton::create($btn->title) | |
->url( | |
$webview_url.'/adAudit/'.$this->optin->id.'/'.$delivery->fresh()->uuid | |
) | |
->heightRatio(ElementButton::RATIO_FULL) | |
->enableExtensions()); |
This file contains 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
<?php | |
public function sendTypesAndWaits($seconds) { | |
Log::info('Send typesAndWaits'); | |
$response = $this->bot->sendRequest('me/messages', [ | |
'recipient' => $this->recipient, | |
'sender_action' => 'typing_on' | |
]); |
This file contains 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
<?php | |
/* | |
* Generic template | |
*/ | |
public function buildMessageTemplateGeneric($message) { | |
# WORKS | |
$template = GenericTemplate::create() | |
->addElement( | |
Element::create($message->attachment->title) | |
->image($message->attachment->payload->url) |
This file contains 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
client.println("POST /posts HTTP/1.1"); | |
client.println("Host: jsonplaceholder.typicode.com"); | |
client.println("Cache-Control: no-cache"); | |
client.println("Content-Type: application/x-www-form-urlencoded"); | |
client.print("Content-Length: "); | |
client.println(PostData.length()); | |
client.println(); | |
client.println(PostData); | |
long interval = 2000; |
This file contains 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
. | |
├── EFI | |
│ ├── APPLE | |
│ │ ├── EXTENSIONS | |
│ │ │ └── Firmware.scap | |
│ │ ├── FIRMWARE | |
│ │ │ └── IM142_0118_B14_LOCKED.scap | |
│ │ └── UPDATERS | |
│ │ └── SMC | |
│ │ ├── Mac-27ADBB7B4CEE8E61.epm |
This file contains 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/bash | |
declare -A PACK | |
# EDIT THESE | |
# | |
# choose which packs you want to get by uncommenting them | |
PACK[afrf]=843425103 | |
#PACK[usaf]=843577117 | |
#PACK[gref]=843593391 | |
#PACK[saf]=843632231 |
This file contains 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
/** | |
* Append the form data from a HubSpot form automatically | |
* to the redirect URL query parameters. These values can | |
* then be used on the form to modify the user experience | |
* of the Thank You page | |
* | |
* LICENSE | |
* Form redirect | |
* Written in 2015 by Mike Axiak <[email protected]> | |
* Updated in 2016 by Seth Meranda <[email protected]> |
This file contains 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
while ($charges['has_more']) { | |
$charges = $stripe->getChargesByDate($start_date, $starting_after); | |
foreach($charges["data"] as $charge) { | |
// DEBUG | |
Log::info($charges['has_more']); | |
// Reset the data for the pager. Have to do this first in case we skip a dirty record. | |
$starting_after = $charge['id']; |
This file contains 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
when HTTP_REQUEST { | |
if { [string tolower [HTTP::host]] equals "leadpages.net"}{ | |
HTTP::respond 301 Location "https://www.leadpages.net[HTTP::uri]" | |
} | |
if { [string tolower [HTTP::uri]] starts_with "/blog" }{ | |
node 104.193.18.59 | |
} |
This file contains 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
[Day 2 of trying to resolve marketing API bug...] | |
[email protected] | |
(651) 200-9755 | |
Hello all, | |
My name is Raymond Aguilar. I'm the head engineer at LeadPages™. For a little background, we make a landing page builder and optin-form generator called LeadBoxes™ which are widely used in the marketing industry. | |
Many of our top-level enterprise customers integrate their marketo accounts with our service so that anyone who fills out their capture forms are uploaded directly to their marketo account. |
NewerOlder