-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
<?php | |
/* | |
* Script: DataTables server-side script for PHP and MySQL | |
* Copyright: Nov, 2016 - Allan Jes | |
* Copyright: 2016 - Steven Lavoie | |
* Copyright: 2012 - John Becker, Beckersoft, Inc. | |
* Copyright: 2010 - Allan Jardine | |
* License: GPL v2 or BSD (3-point) | |
* URL: https://gist.github.com/ajoluvya/ | |
*/ |
#!/bin/bash | |
web_service='nginx' | |
config_file=$1 | |
le_path='/opt/letsencrypt' | |
exp_limit=30; | |
if [ ! -f $config_file ]; then | |
echo "[ERROR] config file does not exist: $config_file" |
# ============ Login K-Bank ======================== | |
# To Use provide your username and password | |
# chmod -R 777 login_k-bank.sh | |
# ./login_k-bank.sh | |
# Please provide your username and password here | |
# This is not the best choice to use this script. because your password is saved on your machine and transfer through script | |
# Please consider K-Bank Open API instead https://apiportal.kasikornbank.com/open-api/ | |
username= | |
password= |
# ============ Login SCB ======================== | |
# To Use provide your username and password | |
# chmod -R 777 login_scb.sh | |
# ./login_scb.sh | |
# Please provide your username and password on https://www.scbeasy.com/ | |
username= | |
password= | |
# Please Specify Your cookie file (Any blank text file is OK.) |
proxy_cache_path /tmp/cacheapi levels=1:2 keys_zone=microcacheapi:100m max_size=1g inactive=1d use_temp_path=off; | |
server { | |
listen 443 ssl http2 default_server; | |
listen [::]:443 ssl http2 default_server; | |
server_name example.com; | |
location /api/ { | |
# Rate Limiting | |
limit_req zone=reqlimit burst=20; # Max burst of request |
# To use : add your line notify api token | |
LINE_NOTIFY_ACCESS_TOKEN= | |
# Provide your multiline text. We use shell script heredoc syntax here. | |
MESSAGE=$(cat << END_HEREDOC | |
HELLO LINE 1 | |
HELLO LINE 2 | |
END_HEREDOC | |
) |
<!-- Modify this according to your requirement --> | |
<h3> | |
Redirecting to duckdev.com after <span id="countdown">10</span> seconds | |
</h3> | |
<!-- JavaScript part --> | |
<script type="text/javascript"> | |
// Total seconds to wait | |
var seconds = 10; | |
This Gist has been transfered into a Github Repo. You'll find the most recent version here.
When creating your rules for YARA keep in mind the following guidelines in order to get the best performance from them. This guide is based on ideas and recommendations by Victor M. Alvarez and WXS.
<?php | |
//Set Maximum Execution Time - To Avoid Execution | |
ini_set('max_execution_time', 0); | |
//Load WordPress | |
require_once("wp-load.php"); // Include the class_alias() | |
require_once(ABSPATH . 'wp-admin/includes/taxonomy.php'); | |
include 'excel_reader/excel_reader.php'; // Include the class | |
$excel = new PhpExcelReader; // Creates object instance of the class | |
$excel->read('import/import.xls'); // Reads and stores the excel file data | |
//Define Variable |