$ cd web
$ git clone https://github.com/leblanc-simon/Gesdon.git
$ cd Gesdon
$ composer install
$ cd config
$ cp config.example.php config.php
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
#!/bin/bash | |
hosts="host1 host2 host3" | |
shares="home etc root" | |
base_path="/home/backup/" | |
month=`date +%m` | |
command_tar='sudo -u backuppc /usr/share/backuppc/bin/BackupPC_tarCreate -h %host% -n -1 -s /%share% . > ' | |
for host in ${hosts}; do |
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
#!/bin/bash | |
directory="/var/www/" | |
result="${directory}website-integrity/`date '+%Y-%m-%d'`.md5sum" | |
old_result="${directory}website-integrity/`date '+%Y-%m-%d' --date '1 days ago'`.md5sum" | |
website_directory="${directory}httpdocs/" | |
find ${website_directory} -type f -exec md5sum {} \; > ${result} | |
today=`md5sum ${result} | awk '{print $1}'` |
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 | |
header("Cache-Control: no-cache, must-revalidate"); | |
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); | |
/** | |
* @see https://gist.github.com/cballou/2201933 | |
*/ | |
function getIp() | |
{ | |
$ip_keys = array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR'); |
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 | |
$now = time(); | |
setlocale(LC_TIME, 'fr_FR.utf8','fra'); | |
$french_date = strftime('%A %d %B %Y %T', $now); | |
?><!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>What time is it ?</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
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>OPG : Open Password Generator</title> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; | |
width: 100%; |
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
{ | |
"require": { | |
"predis/predis": "~1" | |
} | |
} |
I hereby claim:
- I am leblanc-simon on github.
- I am leblancsimon (https://keybase.io/leblancsimon) on keybase.
- I have a public key whose fingerprint is 181A E85C 78A3 4464 896C 8CBB 3825 AC59 FCD3 3571
To claim this, I am signing this object:
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
# Project name | |
propel.project = OpenSondage | |
# Database driver | |
propel.database = mysql | |
propel.mysql.tableType = MyISAM | |
propel.mysql.tableEngineKeyword = ENGINE | |
propel.tablePrefix = | |
################################################# |
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 | |
$url = 'http://localhost/nilsteampassnet-TeamPass-65f3167/'; | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, $url.'includes/libraries/uploadify/uploadify.php'); | |
curl_setopt($curl, CURLOPT_POST, true); | |
$post = array( | |
'Filedata' => '@info.php', | |
'type_upload' => 'import_items_from_csv', | |
'folder' => '/nilsteampassnet-TeamPass-65f3167/files', |
OlderNewer