- Make New Directory in var/www/
mkdir bots
- Create FILENAME.wsgi file
sudo nano bots.wsgi
- Add this content and Save File
#! /usr/bin/python3 import sys
- https://github.com/heroku/heroku-buildpack-google-chrome
- https://github.com/heroku/heroku-buildpack-chromedriver
- heroku/python
GOOGLE_CHROME_BIN=/app/.apt/usr/bin/google_chrome
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
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
nodejs: 10 | |
commands: | |
- apt-get update | |
- apt-get install -y jq | |
- wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492-linux.zip |
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 | |
$name = sanitize_text_field( $_REQUEST['name'] ); | |
$email = sanitize_email( $_REQUEST['email'] ); | |
$address = sanitize_textarea_field( $_REQUEST['address'] ); |
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 | |
if ( is_email( $_REQUEST['email'] ) ) { | |
// Let's Roll!! | |
}else{ | |
// Invalid email | |
} |
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 | |
$html = esc_html( '<a href="http://www.example.com/">The example link</a>' ); | |
// Returns <a href="http://www.example.com/">The example link</a> | |
echo $html; |
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 | |
namespace TheBestPluginIntheWorld; | |
define( ‘TBPW_API_KEY’, '123456789' ); | |
class TBPW_User{ | |
function tbpw_send_email(){ | |
$tbpw_sender_email "[email protected]"; | |
// Sends Email | |
} |
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 | |
function tbpw_get_email_count(){ | |
return 100; | |
} | |
echo __('Send Email', 'tbpw'); | |
printf( | |
_n( | |
'%s email', |
OlderNewer