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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'json' | |
require 'uri' | |
# colors | |
BOLD = "\e[1;39m" | |
RESET = "\e[0m" |
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
/* | |
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. | |
For licensing, see LICENSE.html or http://ckeditor.com/license | |
*/ | |
CKEDITOR.editorConfig = function (config) | |
{ | |
// Define changes to default configuration here. For example: | |
// config.language = 'fr'; | |
// config.uiColor = '#AADC6E'; | |
config.toolbar = 'Full'; |
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 | |
###### Variables ####### | |
owncloud_dir=/var/www/owncloud | |
sabnzb_dir=/var/Downloads | |
user_data=/var/www/owncloud/data | |
tmp_dir=/tmp/repose-droit | |
now=$(date +"%d_%m_%Y_%H_%M_%S") | |
lock=${tmp_dir}/repose-droit-${now}.lock |
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 | |
TITLE CONFIGURE KVM GIPRECIA | |
:rne | |
echo. | |
echo. | |
echo. Entrer le rne de l'etablissement : | |
echo. | |
echo. |
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
#!/usr/bin/ruby1.9.1 | |
# encoding: utf-8 | |
########################################################################################## | |
RTGI_URL = 'https://rtgi.giprecia.fr' | |
######################################################################################### | |
require 'yaml' | |
require 'mechanize' |
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 | |
$output = shell_exec('cat output | tr "\"" "|"'); | |
$snmp = array_values(array_filter(explode("|",$output),"trim")); | |
$marque = trim(shell_exec("echo \"$snmp[0]\" | head -1 | awk '{print $1}'")); | |
$model = trim(shell_exec("echo \"$snmp[0]\" | head -1 | awk '{print $1,$3}'")); | |
$nom = $snmp[1]; | |
$location = $snmp[2]; | |
$info = array("marque" => $marque,"modele" => $model,"nom" => $nom,"emplacement" => $location); | |
var_dump($info); | |
?> |
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
array(2) { | |
["RG1"]=> | |
array(2) { | |
[1]=> | |
array(4) { | |
["UNITE"]=> | |
string(2) "U1" | |
["IP"]=> | |
string(11) "10.118.6.30" | |
["NOM"]=> |
NewerOlder