#deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
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
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
function my_custom_checkout_field( $checkout ) { | |
echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>'; | |
woocommerce_form_field( 'my_field_name', array( | |
'type' => 'text', | |
'class' => array('my-field-class orm-row-wide'), | |
'label' => __('Fill in this field'), |
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
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
async function fetchAndApply(request) { | |
const init = { | |
method: 'GET' | |
} | |
const { searchParams } = new URL(request.url); | |
let param1 = searchParams.get('param1'); | |
let param2 = searchParams.get('param2'); |
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
upstream backend { | |
server 127.0.0.1:19999; | |
keepalive 64; | |
} | |
server { | |
access_log /var/log/nginx/netdata-access.log; | |
error_log /var/log/nginx/netdata-error.log; | |
# listen SERVERIP; |
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
<center> | |
<div class="fb-messenger-checkbox" origin="" page_id="PAGEID" messenger_app_id="APPID" user_ref="" prechecked="true" allow_login="true" size="large"></div > | |
</center> | |
<script> window.fbMessengerPlugins = window.fbMessengerPlugins || { | |
init: function() { | |
FB.init({ | |
appId: "APPID", | |
xfbml: true, | |
version: "v8.0" |
Create Google Apps script with the Following Code.
Replace YOURAPPNAME
function ping() {
UrlFetchApp.fetch("https://YOURAPPNAME.herokuapp.com/");
}
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
<html><body> | |
<select> | |
<option id='Africa/Abidjan'>Africa/Abidjan </option> | |
<option id='Africa/Accra'>Africa/Accra</option> | |
<option id='Africa/Addis_Ababa'>Africa/Addis_Ababa</option> | |
<option id='Africa/Algiers'>Africa/Algiers</option> | |
<option id='Africa/Asmara'>Africa/Asmara</option> | |
<option id='Africa/Asmera'>Africa/Asmera</option> | |
<option id='Africa/Bamako'>Africa/Bamako</option> |
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 | |
$path = 'file.zip'; //Path to File | |
$filedownloadname = 'downloadfilename.zip'; //File Name when downloading | |
header("Pragma: public"); | |
header("Expires: 0"); | |
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); | |
header("Cache-Control: public"); | |
header("Content-Description: File Transfer"); | |
header("Content-Type: " . $mime_type); |
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
function onFormSubmit(e) { | |
var url = "WEBHOOKURL"; //n8n WebHook URL | |
var Field1 = ' '; | |
var Field2 = ' '; | |
var form = FormApp.openById("FORMID"); // Copy the Form ID from the URL | |
var formResponses = form.getResponses(); | |
var formResponse = formResponses[formResponses.length - 1]; | |
var itemResponses = formResponse.getItemResponses(); |