These files allow you to configure Mautic using Nginx.
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
wget -q https://github.com/AdoptOpenJDK/openjdk8-releases/releases/download/jdk8u172-b11/OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz | |
tar -xf OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz | |
sudo mkdir /usr/lib/jvm && sudo mv jdk8u172-b11 /usr/lib/jvm/jdk8u172-b11 | |
export JAVA_HOME=/usr/lib/jvm/jdk8u172-b11 | |
export PATH=/usr/lib/jvm/jdk8u172-b11/bin | |
java -version |
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
# THIS FILE IS NO LONGER BEING MAINTAINED. FOR A MAINTAINED VERSION, PLEASE USE THE VERSION IN THE NEW REPOSITORY. | |
# Repository: https://github.com/hkamran80/blocklists | |
# New link for this file: https://raw.githubusercontent.com/hkamran80/blocklists/main/smart-tv | |
# ------ | |
# This is a blocklist to block Smart TVs sending data home. | |
# Please help to collect domains! | |
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. |
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
<cfscript> | |
/* | |
this is what im actually working on, but isnt really the point of this discussion, | |
but for clarity, I have a process where I am needing to (conditionally) map | |
from one uuid to another, so I am making a litle closure to keep track. If | |
I ask for an ID that hasnt been seen yet then it just creates a new uuid for me and | |
then keeps track of it going forward. | |
*/ | |
function makeIdMapper () { |
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
// | |
// Gist was kindly contributed by @jamesckemp from @iconicwp. Thanks! | |
// | |
handler.open({ | |
... | |
purchaseCompleted: function( response ) { | |
var trial = response.purchase.trial_ends !== null, | |
total = trial ? 0 : response.purchase.initial_amount.toString(), | |
productName = 'Product Name', |
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
<?xml version="1.0" encoding="utf-8"?> | |
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> | |
<Header> | |
<DocumentVersion>1.01</DocumentVersion> | |
<MerchantIdentifier>AXXXXXXXXXX</MerchantIdentifier> | |
</Header> | |
<MessageType>ProductImage</MessageType> | |
<Message> | |
<MessageID>1</MessageID> | |
<OperationType>Update</OperationType> |
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 time | |
import logging | |
try: | |
import serial | |
except ImportError: | |
print('Python serial library required, on Ubuntu/Debian: ' + | |
'apt-get install python-serial python3-serial') | |
raise |
In the following, we assume a working Flask application with the name of SCRIPT_NAME
. First we need to install a couple of things:
sudo apt-get update && sudo apt-get upgrade
Installing nginx
will fail if apache is running. If your installation breaks half ways, then remove the fragments, stop apache (and I actually suggest removing it in case not needed) and then install nginx again:
sudo apt-get remove nginx* --purge
sudo /etc/init.d/apache2 stop
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
Bing image scraper example using Python to query and scrape Microsoft Bing image search. |