Changes between Version 80 and Version 81 of members/GRIP-UQAM
- Timestamp:
- Apr 2, 2016, 4:17:26 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
members/GRIP-UQAM
v80 v81 93 93 * [wiki:phpmyadmin_link] 94 94 * [wiki:support-team] 95 == Cron == 96 * Consider output to an (even empty) file a good practice allowing to check last time the command has been executed. This is because some subtle errors may prevent execution of cron commands, eg. see #11534 97 {{{#!sh 98 ... &> cron/results/<file> 99 }}} 100 * Consider nice and ionice to give priority to interactive tasks 101 {{{#!sh 102 nice -n 127 ionice --class=idle ... 103 }}} 95 104 == Some PostgreSQL commands == 96 105 * List of DB with parameters … … 187 196 http://stackoverflow.com/questions/3327312/drop-all-tables-in-postgresql 188 197 * http://stackoverflow.com/questions/20017552/delete-all-table-without-droping-database-in-postgres-in-django-dbshell-in-one-c 189 == Javascript: from npm to bower == 198 == Git == 199 * Branches and tags 200 * keyword: how to find the tag of a git 201 * https://git-scm.com/book/en/v2/Git-Basics-Tagging 202 * http://stackoverflow.com/questions/978052/how-can-i-make-my-local-repository-available-for-git-pull 203 == Json == 204 === .json validator === 205 * keyword: linux json validator 206 * keyword: json validator site:debian.org 207 * jsonlint 208 * [DebianPackage:jsonlint] 209 * {{{composer require seld/jsonlint}}} 210 * https://packagist.org/packages/seld/jsonlint 211 * [DebianPackage:python-json-schema-validator] 212 == Javascript packages: Bower == 213 === From npm to bower === 190 214 * $ nice -n 127 ionice --class=idle npm install bower --save 191 215 * $ nice -n 127 ionice --class=idle npm update #update! … … 196 220 * Install some libraries... 197 221 * $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower update --production #update! 198 == Example .bowerrc for Drupal 7==222 === Example .bowerrc for Drupal 7 === 199 223 {{{#!json 200 224 { … … 202 226 } 203 227 }}} 204 == Install Javascript libraries with Bower package manager228 === Install Javascript libraries with Bower package manager=== 205 229 {{{#!sh 206 230 #$ nodejs node_modules/bower/bin/bower install --save "jquery#1.4.4" # Drupal 7 version … … 223 247 * https://packagist.org/packages/kraksoft/colorbox 224 248 * https://github.com/Spea/SpBowerBundle 225 == Example bower.json for Drupal 7==249 === Example bower.json for Drupal 7 === 226 250 {{{#!json 227 251 { … … 243 267 } 244 268 }}} 245 == Example composer.json for Drupal 7 == 269 == Composer == 270 === Some Composer documentation === 271 * http://composer.json.jolicode.com/ 272 * https://getcomposer.org/doc/04-schema.md#repositories 273 * https://getcomposer.org/doc/05-repositories.md#packages 274 * https://getcomposer.org/doc/05-repositories.md#disabling-packagist 275 === Some Composer commands === 276 * $ ./composer.phar self-update 277 * $ ./composer.phar update 278 === Composer extensions === 279 ==== Includes ==== 280 * keywords: includes from composer.json 281 * https://github.com/composer/composer/issues/183#issuecomment-151317582 282 * https://github.com/wikimedia/composer-merge-plugin 283 * https://getcomposer.org/doc/06-config.md#use-include-path 284 * https://getcomposer.org/doc/05-repositories.md#includes 285 === Example composer.json for Drupal 7 === 286 {{{#!sh 287 composer require drush/drush 288 composer require seld/jsonlint 289 }}} 246 290 {{{#!json 247 291 { 248 292 "require": { 249 293 "drush/drush": "^8.0", 294 "seld/jsonlint": "^1.4", 250 295 "ezyang/htmlpurifier": "^4.7", 251 296 "kraksoft/colorbox": "^1.5", … … 262 307 * https://www.drupal.org/project/emogrifier 263 308 * php composer target directory 264 == Some Composer commands ==265 * $ ./composer.phar self-update266 * $ ./composer.phar update267 == Cron ==268 * Consider output to an (even empty) file a good practice allowing to check last time the command has been executed. This is because some subtle errors may prevent execution of cron commands, eg. see #11534269 {{{#!sh270 ... &> cron/results/<file>271 }}}272 * Consider nice and ionice to give priority to interactive tasks273 {{{#!sh274 nice -n 127 ionice --class=idle ...275 }}}276 309 == Some Drush commands == 277 310 * drush -v help … … 543 576 * [https://evolvingweb.ca/blog/drupal-7-entities-what-are-they-and-what-are-they-good Drupal 7 Entities: What are they, and what are they good for?] 544 577 * https://www.drupal.org/project/bean 578 == HTML Slides == 579 * https://packagist.org/packages/seld/slippy 580 == Radical Servers == 581 * https://help.riseup.net/en/security/resources/radical-servers