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 | |
$repo_dir = '/home/username'; | |
$branch_to_deploy = 'master'; | |
$update = false; | |
// Parse data from Bitbucket hook payload | |
$payload = json_decode($_POST['payload']); | |
if (empty($payload->commits)) { |
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 | |
date_default_timezone_set('America/Los_Angeles'); | |
session_start(); | |
include("ratelimiter.php"); | |
// in this sample, we are using the originating IP, but you can modify to use API keys, or tokens or what-have-you. | |
$rateLimiter = new RateLimiter($_SERVER["REMOTE_ADDR"]); | |
$limit = 100; // number of connections to limit user to per $minutes | |
$minutes = 1; // number of $minutes to check for. |
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
var CKEDITORPluginExtras = false; | |
if (typeof(CKEDITOR) != 'undefined' ) { | |
CKEDITOR.on('instanceReady',function(event, instance){ | |
if (CKEDITORPluginExtras) { | |
return; | |
} | |
var config = event.editor.config; | |
CKEDITOR.instances.body.destroy(); |
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
{ | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow-markdown.tmTheme", | |
"extensions": | |
[ | |
"md" | |
], | |
"rulers": | |
[ | |
70, | |
80, |
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 | |
require_once "../vendor/autoload.php"; | |
$configuration = new Bolt\Configuration\Composer(dirname(__DIR__)); | |
$configuration->setPath("web", "public_html"); | |
$configuration->setPath("files", "public_html/files"); | |
$configuration->setPath("themebase", "public_html/theme"); | |
$applicationEnv = getenv('APPLICATION_ENV'); | |
if ($applicationEnv and is_dir('app/config/' . $applicationEnv)) { |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": false, | |
"bold_folder_labels": true, | |
"theme": "Afterglow.sublime-theme", | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme", | |
"font_face": "Menlo", | |
"font_size": 14, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": |