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
#!/bin/bash | |
res=$(nmap 127.0.0.1 -PN -p ssh | grep open) | |
curl -s -m 10 --retry 5 --output /dev/null https://healthcheck.io/ping/UUID/start | |
curl -fsS -m 10 --retry 5 --output /dev/null --data "${res}" https://healthcheck.io/ping/UUID/log | |
if [[ "${res}" =~ "open" ]]; then | |
echo "`date` All good" >> /home/pi/ocicheck.log | |
curl -s -m 10 --retry 5 --output /dev/null https://healthcheck.io/ping/UUID | |
rm -f /home/pi/awaitingboot | |
else |
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
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^wp-admin.php | |
# Anything that has "wp-" in its request, will be send to the bomb | |
RewriteRule ^(.*)wp-(.*)$ wp-admin.php [L] | |
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
<?php | |
namespace App\Extensions; | |
use SilverStripe\ORM\DataExtension; | |
use SilverStripe\Security\LoginAttempt; | |
/** | |
* | |
* @property LoginAttempt|LoginAttemptExtension $owner |
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
<% if $Messages.Count %> | |
<% loop $Messages %> | |
<% include Message isSearch=$Top.isSearch %> | |
<% end_loop %> | |
<% end_if %> |
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
$suffixes = $result->getBody(); | |
$count = 0; | |
$shaEnd = strtoupper($shaEnd); | |
$suffixes = explode("\r\n", $suffixes); | |
foreach ($suffixes as $suffix) { | |
list($suffix, $pwnCount) = explode(':', $suffix); | |
if ($suffix === $shaEnd) { | |
$count += (int)$pwnCount; | |
} | |
} |
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
<?php | |
namespace Firesphere\Persona\Elements; | |
use All\The\Persona\things; | |
class PersonaElement extends ElementContent | |
{ | |
private static $has_one = [ | |
'Persona' => Persona::class |
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
class MainApplicationFormStep1 extends MultiFormStep | |
{ | |
public static $next_steps = 'MainApplicationFormStep2'; | |
public function getFields() { | |
return FieldList::create( | |
$name = TextField::create('FirstName', 'First name', 'spazz', '180'), | |
$surname = TextField::create('Surname', 'Surname') | |
); |
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
<?php | |
/** | |
* Class Category | |
* | |
* @property string $Title | |
* @property string $CMSSummary | |
*/ | |
class Category extends DataObject implements PermissionProvider | |
{ |
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
class PageTest extends SapphireTest | |
{ | |
protected static $fixture_file = 'PageTest.yml'; | |
public function setUp() | |
{ | |
parent::setUp(); | |
$this->page = $this->objFromFixture('Page', 'TestPage'); | |
$this->page->doPublish(); | |
} |
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
{ | |
"name": "silverstripe/installer", | |
"description": "The SilverStripe Framework Installer", | |
"require": { | |
"php": ">=5.6", | |
"silverstripe/cms": "dev-authenticator-refactor as 4.0.x-dev", | |
"silverstripe/framework": "dev-authenticator-refactor as 4.0.x-dev", | |
"silverstripe/reports": "dev-authenticator_refactor as 4.0.x-dev", | |
"silverstripe/siteconfig": "dev-authenticator_refactor as 4.0.x-dev", | |
"silverstripe/versioned": "dev-authenticator_refactor as 1@dev", |
NewerOlder