Skip to content

Instantly share code, notes, and snippets.

View DILL44's full-sized avatar
🌍
on Idcity

Nicolas DILL44

🌍
on Idcity
View GitHub Profile
@DILL44
DILL44 / php file for debug
Created November 29, 2012 09:57
write file for testing variable in a php file.
$file=fopen("/path/to/the/file/test.txt", 'w+',true);
$content='';
foreach ($aray as $value){
$content.="id: ".$value."\n";
}
fwrite($file,$content);
fclose($file);
}
@DILL44
DILL44 / drupal update
Last active October 13, 2015 03:38
update for drupal on shared server
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*&&
@DILL44
DILL44 / InstallDopCom.sh
Last active October 11, 2015 17:47
script dopCom
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* &&