Skip to content

Instantly share code, notes, and snippets.

View mrsimonbennett's full-sized avatar
👋

Simon Bennett mrsimonbennett

👋
View GitHub Profile
#!/bin/bash
# © 2017-2021 SnapShooter Limited.
echo "# © 2017-{{date('Y')}} SnapShooter Limited."
echo "# Terms and Conditions https://snapshooter.io/snapshooter-terms-and-conditions"
echo ""
echo "Which Directory do you want the backups to restore to (/var/www/sitename)"
read wp_dir
echo Backups will be restored to $wp_dir
A Copy of https://snapshotly.com/privacy stolen privacy policy from https://cronhub.io/terms
Snapshotly logo
Snapshotly
Snapshotly Privacy Policy
Your privacy is important to us. It is Snapshotly's policy to respect your privacy regarding any information we may collect from you across our website, https://snapshotly.com, and other sites we own and operate.
Information we collect
When you visit our website, our servers may automatically log the standard data provided by your web browser. This data is considered “non-identifying information”, as it does not personally identify you on its own. It may include your computer’s Internet Protocol (IP) address, your browser type and version, the pages you visit, the time and date of your visit, the time spent on each page, and other details.
@mrsimonbennett
mrsimonbennett / openssl_encrypt_decrypt.php
Created July 16, 2019 10:45 — forked from joashp/openssl_encrypt_decrypt.php
Simple PHP encrypt and decrypt using OpenSSL
<?php
/**
* simple method to encrypt or decrypt a plain text string
* initialization vector(IV) has to be the same when encrypting and decrypting
*
* @param string $action: can be 'encrypt' or 'decrypt'
* @param string $string: string to encrypt or decrypt
*
* @return string
*/
<?php
// Authentication Routes...
$this->get('login', 'Auth\LoginController@showLoginForm')->name('login');
$this->post('login', 'Auth\LoginController@login');
$this->post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
$this->get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
$this->post('register', 'Auth\RegisterController@register');
<?php
$browser->visit('Login')
->tap(
function (Browser $browser) {
$points = $browser->resolver->find("#TotalCount")->getText();
$this->mailer->send(
'mail',
['points' => $points],
function (Message $mailable) use ($browser, $points) {
$mailable->from('bot@pixelatedcrow.com', 'Pixelated Bot');
<?php
namespace Invoicing;
use Members/User;
interface InvoiceRepository {
public function getUsersInvoices(User $user)
}
<?php namespace KBC\Accounts;
use KBC\Accounts\Events\AccountWasDeleted;
use KBC\Accounts\Events\AccountWasOpened;
use KBC\Accounts\Events\MoneyWasWithdrawn;
use KBC\Accounts\Events\MoneyWasDeposited;
use KBC\Core\BaseModel;
final class Account extends BaseModel
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
/** @var Factory $view */
$view = $this->app->make('Illuminate\Contracts\View\Factory');
$view->composer('dashboard.settings.me.details', SettingsMeDetails::class);
<?php namespace Illuminate\Foundation\Http;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Illuminate\Http\Response;
use Illuminate\Http\JsonResponse;
use Illuminate\Routing\Redirector;
use Illuminate\Container\Container;
use Illuminate\Validation\Validator;
use Illuminate\Http\Exception\HttpResponseException;
<?php
class one
{
protected $property = [
'test',
'test',
'test'
];
}
class tw0