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 |
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
set nocp | |
syn on | |
set syntax =on | |
filetype indent plugin on | |
set incsearch | |
set cursorline | |
set showmatch |
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
comming bash | |
SELECT `users`.`name` , `users`.`mail` , `role`.`name` | |
FROM `users` , `role` , `users_roles` | |
WHERE `users`.`uid` = `users_roles`.`uid` | |
AND `role`.`rid` = `users_roles`.`rid` | |
LIMIT 0 , 30 | |
SELECT `node`.`nid` , `node`.`type` , `node`.`title` , `node`.`status` , `users`.`uid` , `users`.`name` , `users`.`mail` | |
FROM `node` , `users` |
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 | |
# $1 path to the first platform | |
# $2 path to the segond platform | |
# $3 list of the node id to export | |
cd $1 | |
drush cc drush | |
drush dl node_export_feeds, node_export_features, node_export_dependency, node_export_relation, node_export | |
drush pm-enable node_export |
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 | |
sudo apt-get install apache2 monit mysql-client mysql-server htop php5 php5-curl php5-mysql portsentry postfix php-apc rkhunter vim | |
#for drupal | |
sudo apt-get install drush | |
#for owncloud | |
sudo apt-get install php5-json php-xml-serializer zip php5-gd php5-sqlite curl libcurl3 libcurl3-dev bzip2 | |
wget http://owncloud.org/releases/owncloud-4.0.0.tar.bz2 |
OlderNewer