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 | |
// Note that you have to first install deployer (https://deployer.org/download) | |
// Then put this script at the root of your project | |
// To deploy to development, run `dep deploy development` | |
namespace Deployer; | |
require 'recipe/common.php'; | |
// Servers |
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 | |
if (isset($_GET['offset'])) { | |
echo 'Your current timezone is ' . timezone_name_from_abbr('', $_GET['offset'] * 60, false); | |
exit; | |
} | |
?> | |
<html> | |
<head> | |
<title>MY TIMEZONE</title> |
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
import json | |
import time | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
HOOK_URL = 'https://hooks.slack.com/services/XXXXXXXX/XXXXXX/XXXXXXXXXX' | |
env.key_filename = '/path/to/home/dir/.ssh/id_rsa' | |
branch = 'development' | |
code_dir = '/path/to/code/dir' | |
environment = 'development' |