View collation.yml
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
# Allow emoji 🥳 - https://github.com/silverstripe/silverstripe-framework/issues/8062 | |
SilverStripe\ORM\Connect\MySQLDatabase: | |
connection_charset: utf8mb4 | |
connection_collation: utf8mb4_unicode_ci | |
charset: utf8mb4 | |
collation: utf8mb4_unicode_ci |
View themes.ymll
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
--- | |
Name: mytheme | |
--- | |
SilverStripe\View\SSViewer: | |
themes: | |
- '$public' | |
- 'forms-ss4-bootstrap-theme' | |
- 'default-ss4-bootstrap-theme' | |
- 'blog-ss4-bootstrap-theme' | |
- 'homepage-ss4-bootstrap-theme' |
View .env
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
SS_BASE_URL="http://localhost" | |
SS_DATABASE_CLASS="MySQLPDODatabase" | |
SS_DATABASE_NAME="unittesting" | |
SS_DATABASE_PASSWORD="" | |
SS_DATABASE_SERVER="database" | |
SS_DATABASE_USERNAME="root" | |
SS_ENVIRONMENT_TYPE="dev" |
View .env
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
# Generated by SilverStripe Installer | |
SS_BASE_URL="http://localhost" | |
SS_DATABASE_CLASS="MySQLPDODatabase" | |
SS_DATABASE_NAME="unittesting" | |
SS_DATABASE_PASSWORD="" | |
SS_DATABASE_SERVER="database" | |
SS_DATABASE_USERNAME="root" | |
SS_ENVIRONMENT_TYPE="dev" |
View Test Gist
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
Testing embed |
View Test Gist
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
This is a test Gist for the SilverStripe shortcode handler |
View Example color.scss file
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
//split complimentaryish | |
$rotate: 160; | |
$baseColor1: #ED1C24; | |
$baseColor2: #241D4F; | |
$baseColor3: #bd10d4; | |
$baseColor4: #ffff00; | |
$baseColor5: #4E573A; |
View ClearElasticFieldCacheExtension.php
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 ClearElasticFieldCacheExtension extends Extension { | |
public function onAfterInit() { | |
$cache = SS_Cache::factory('whatever'); | |
$cache->clean(); | |
} | |
} |
View grabss
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
#!/usr/bin/ruby | |
nfiles = ARGV[0] | |
puts "Transferring latest #{nfiles} screenshots to current directory" | |
cmd="ssh kodi <<'ENDSSH' | |
ls -t ~/Pictures/*.png | head -n #{nfiles} | |
ENDSSH" | |
files = `#{cmd}` | |
for file in files.lines |
View Aggregation.php
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
$queryString = new QueryString($_GET['q']); | |
$isoTerm = new Term(); | |
$isoTerm->setTerm('ISO',4000); | |
$apeterm = new Term(); | |
$apeterm->setTerm('Aperture',2.7); | |
$andFilter = new BoolAnd(); | |
$andFilter->addFilter($apeterm); |
NewerOlder