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 App\Tasks; | |
use SilverStripe\Dev\BuildTask; | |
use SilverStripe\Core\Injector\Injector; | |
use SilverStripe\Control\HTTPRequest; | |
use SilverStripe\Security\Permission; | |
use SilverStripe\Assets\Image; | |
use SilverStripe\ORM\DataObject; |
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
<?xml version="1.0"?> | |
<ruleset name="SS4"> | |
<description>Coding standard for SilverStripe 4.x</description> | |
<!-- Don't sniff third party libraries --> | |
<exclude-pattern>./vendor/*</exclude-pattern> | |
<exclude-pattern>*/thirdparty/*</exclude-pattern> | |
<!-- Show progress and output sniff names on violation, and add colours --> | |
<arg value="sp"/> |
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
[global] | |
username = username | |
password = password | |
backend = alsa | |
mixer = PCM | |
device_name = SpotifyD | |
cache_path = /tmp | |
volume-normalisation = true | |
normalisation-pregain = -10 |
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 | |
class ICanHazSSH extends Task { | |
private $CurrentIP = null; | |
private $ichip = "icanhazip.com"; | |
private $IP = null; | |
private function setIP(){ | |
$data = $this->get_data($this->ichip); | |
$this->IP = trim($data); | |
} | |
public function setCurrentIP($str) { |