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
@ECHO OFF | |
REM ***************************************************************** | |
REM | |
REM CWRSYNC.CMD - Batch file template to start your rsync command (s). | |
REM | |
REM ***************************************************************** | |
REM Make environment variable changes local to this batch file | |
SETLOCAL |
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 Backup | |
{ | |
protected $logFilePath; | |
public function __construct($logFilePath) | |
{ | |
$this->logFilePath = $logFilePath; | |
} |
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
function getBaseUrl($includeTrailingSlash = FALSE) | |
{ | |
$protocol = (isset($_SERVER['HTTPS']) && 'off' !== $_SERVER['HTTPS']) ? 'https' : 'http'; | |
$domain = php_uname('n'); | |
$port = ''; | |
if (isset($_SERVER['HTTP_HOST'])) { | |
$domain = filter_input( | |
INPUT_SERVER, | |
'HTTP_HOST', |
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 | |
/** | |
* Calculate Greatest Common Divisor of 2 integers. | |
* The result is always positive even if either of, or both, input operands are negative. | |
* | |
* @param int $a | |
* @param int $b | |
* @return int | |
*/ |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# author Aurélien Millet | |
# license MIT | |
# configuration | |
time_zone = "Europe/Paris" | |
Vagrant.configure("2") do |config| |
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
@ECHO off | |
SETLOCAL enabledelayedexpansion | |
SET svnFolders= | |
FOR /D %%G IN ("C:\Users\xyz\Documents\abcd\*") DO ( | |
IF EXIST %%G"\.svn" ( | |
SET svnFolders=!svnFolders!%%G* | |
) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# author Aurélien Millet | |
# license MIT | |
# configuration | |
time_zone = "Europe/Paris" | |
Vagrant.configure("2") do |config| |