A single page standalone PHP script to help manage formidable forms data in the front-end.
To add a see the URL below, note that
- [z] is the id of the form
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=changeme # <-- wordpress owner | |
WP_GROUP=changeme # <-- wordpress group | |
WP_ROOT=/home/changeme # <-- wordpress root directory |
#!/bin/bash | |
# ------------------------------------------------- | |
# Make site directory | |
# Download WP and install WP to site directory | |
# Set WP configuration | |
# Configure NGINX for new domain-name | |
# ------------------------------------------------- | |
# apt-get update |
<?php | |
header('Content-Type: application/csv'); | |
header('Content-Disposition: attachment; filename=member_export.csv'); | |
header('Pragma: no-cache'); | |
?> | |
{!-- | |
Exports the EE members in CSV format. This is only accessible to admins and editors. | |
Does not export members in the banned or guests groups. |
<?php | |
/* | |
This script will allow you to send a custom email from anywhere within wordpress | |
but using the woocommerce template so that your emails look the same. | |
Created by craig@123marbella.com on 27th of July 2017 | |
Put the script below into a function or anywhere you want to send a custom email | |
*/ |
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link type="text/css" rel="stylesheet" href="style.css" media="screen"> | |
</head> | |
<body> | |
<div class="footer-social-icons"> | |
<h4 class="_14">Follow us on</h4> |
<?php | |
$thecontent = get_the_content(); | |
if(!empty($thecontent)) { ?> | |
// do or output something | |
<?php } ?> // break php tag for HTML block |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
"use strict"; | |
/* | |
* Login page and fields | |
* */ | |
xdescribe('Application login page > ', function () { | |
beforeEach(function() { | |
//start at root app url every time tests are run | |
browser.get('http://localhost:8888/#/login'); | |
}); | |
xit('should be accessible', function () { |