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
<form #f="ngForm" (ngSubmit)="saveDocument()"> | |
<!-- General info --> | |
<table class="document-modal__info-table"> | |
<thead> | |
<tr> | |
<th> | |
{{ 'general.general_info' | translate }} | |
</th> | |
<th class="text-right" colspan="2"> | |
<a |
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
#Backup | |
*~ | |
# Fichier OSX | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
Icon | |
# Fichier de projet Sublime text |
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 | |
# Placer le fichier spip.gitignore | |
wget https://gist.githubusercontent.com/phenix-factory/7134623/raw/edfa67dadab5956c292060404511bb14951a3b18/spip.gitignore -O .gitignore | |
# Placer le fichier spip.git-ftp-ignore | |
wget https://gist.githubusercontent.com/phenix-factory/92c90bad7955e0e8e69e/raw/a711f8c67f1698681516b2493c0420bfda8e78ed/spip.git-ftp-ignore -O .git-ftp-ignore | |
# Créer les répertoire que le spip_loader ne créer pas | |
mkdir plugins |
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
<?php | |
$size = filesize($file); | |
header('Content-Description: File Transfer'); | |
header('Content-Type: application/force-download'); | |
header('Content-Type: application/octet-stream'); | |
header('Content-Disposition: attachment; filename='.basename($file)); | |
header('Expires: 0'); | |
header('Cache-Control: must-revalidate'); | |
header('Pragma: public'); | |
header('Content-Length: '.$size); |
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
<?php | |
/** | |
* Fonction générique qui permet de renvoyer les auteurs d'un objet | |
* | |
* @param string $objet | |
* @param int $id_objet | |
* @param string $cond | |
* @access public | |
* @return array | |
*/ |
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
<?php | |
/** | |
* On passe par le pipeline post_edition_lien | |
* afin de vider le cache des objet associer | |
* Pratique lorsqu'une structure dépend d'un mot-clé SPIP | |
* | |
* @param mixed $flux | |
* @access public | |
* @return mixed | |
*/ |
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
# Source: https://github.com/linuxmint/Cinnamon/issues/3816#issuecomment-71325627 | |
gsettings set org.cinnamon.desktop.interface gtk-key-theme "Emacs" |
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
# Ne pas faire les mises à jour/installation de plugin via git-ftp | |
plugins/auto/* |
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
<?php | |
/** | |
* Tester si un tableau est multidimensionel | |
* Voir http://stackoverflow.com/a/145348 | |
* | |
* @param array $a | |
* @access public | |
* @return bool | |
*/ | |
function is_array_multi($a) { |
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
zcat ntf-20151102.sql.gz | sed s/InnoDB/MyISAM/ | mysql -u root -proot ntf |
NewerOlder