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
git clone git://github.com/DILL44/DopCom.git&& | |
mv DopCom/* . && | |
mv DopCom/.git* . && | |
rm -R DopCom && | |
wget http://ftp.drupal.org/files/projects/drupal-7.19.zip && | |
unzip drupal-7.15.zip && | |
rm -R drupal-7.15/sites/&& | |
mv drupal-7.15/* . && | |
mv drupal-7.15/.htaccess . && | |
rm -R drupal-7.15* && |
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
wget http://ftp.drupal.org/files/projects/drupal-7.18.zip && | |
unzip drupal-7.18.zip && | |
rm -R drupal-7.18/sites/ && | |
cp -R sites/ drupal-7.18/ && | |
mv drupal-7.18/ ../ && | |
rm drupal-7.18.zip && | |
mkdir ../backup && | |
mv * ../backup/ && | |
mv .htaccess ../backup/ && | |
rm -R ../drupal-7.18/.git*&& |
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
$file=fopen("/path/to/the/file/test.txt", 'w+',true); | |
$content=''; | |
foreach ($aray as $value){ | |
$content.="id: ".$value."\n"; | |
} | |
fwrite($file,$content); | |
fclose($file); | |
} |
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
void setup() { | |
Serial.begin(9600); | |
pinMode(13, OUTPUT); | |
} | |
void loop() { | |
if (Serial.available() > 0) { // if there is data coming from the serial port | |
int data = (int)Serial.read(); // get that data and print it | |
Serial.println(data); | |
if (data == 1) { // do what you want with this data | |
digitalWrite(13, HIGH); |
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
!#/bin/bash | |
#exercie | |
# | |
#etape 1 | |
# | |
#creer fonction bash qui permet d'afficher les information d'un fichier ou d'un dossier: | |
# | |
#fichier.sh est un fichier | |
#koalas a les droits en lecture , a les droits en ecriture , a les droits en execution |
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
#!/bin/bash | |
liste(){ | |
ps -eo "%p %P %r %U %G %y %x %c %C" | |
ecrire=expr`ps -eo "%p %P %r %U %G %y %x %c %C"` | |
} | |
arbre_par_pid(){ | |
read -p "donnez le pid d un processus: " pid | |
while [ ! "$(echo $pid | grep "^[ [:digit:] ]*$")" ] | |
do | |
echo "$processus n'est pas un pid " |
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
int sens1_1 = 8; | |
int sens1_2 = 9; | |
int sens2_1 = 10; | |
int sens2_2 = 11; | |
int segond=1000; | |
int led = 13; | |
void setup() { | |
pinMode(sens1_1, OUTPUT); | |
pinMode(sens1_2, OUTPUT); |
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
hautrec=84; | |
largrec=50; | |
longrec=35; | |
epeseur=12; | |
rayon=35; | |
trou=7; | |
hautren=37; | |
largren=26; | |
difference() { |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<style> | |
.link{ | |
display:none; | |
} | |
</style> | |
</head> | |
<body> |
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
#!/bin/bash | |
read -s -p "Enter root DB Password: " PASSDB | |
echo "" | |
read -s -p "Enter new DB Password: " PASSWORD | |
echo "" | |
read -s "Enter website server host: " HOST | |
echo "" | |
EXPECTED_ARGS=2 |
OlderNewer