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
################### | |
# compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.pdb | |
*.dll.config | |
*.cache |
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 | |
if ( !class_exists( 'DB' ) ) { | |
class DB { | |
public function __construct($user, $password, $database, $host = 'localhost') { | |
$this->user = $user; | |
$this->password = $password; | |
$this->database = $database; | |
$this->host = $host; | |
} | |
protected function connect() { |
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
/** | |
* Obtener el día de la semana para una fecha concreta. | |
*/ | |
function diaSemana($ano,$mes,$dia) | |
{ | |
// 0->domingo | 6->sabado | |
$dia= date("w",mktime(0, 0, 0, $mes, $dia, $ano)); | |
return $dia; | |
} | |
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
<VirtualHost *:80> | |
ServerName vallekano.es | |
ServerAlias vallekano | |
DocumentRoot /var/www/vallekano | |
DirectoryIndex index.php | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None |
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
Step 1: Check if an SSH keys exist | |
$ cd ~/.ssh | |
$ ls *.pub | |
Step 2: Generate a new SSH key | |
$ ssh-keygen -t rsa -C "[email protected]" | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter] |
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 | |
// usr/bin/git debes verificar que se la ruta correcta en tu serve | |
// con el comando wich git, esto te regresa la ruta donde esta instalado git | |
//Este archivo debe de estar alojado dentro del directorio del repositorio | |
$out = shell_exec("/usr/bin/git pull 2>&1"); | |
var_dump($out); | |
?> |