curl -LSs http://drupalconsole.com/installer | php
mv console.phar /usr/local/bin/drupal
#/bin/bash | |
sudo fstrim -v /boot | |
sudo fstrim -v / | |
## See: http://www.muylinux.com/2015/10/08/ssdcrontrim-unidades-ssd | |
## See: http://chmatse.github.io/SSDcronTRIM/ | |
## See: http://blog.neutrino.es/es/2013/howto-properly-activate-trim-for-your-ssd-on-linux-fstrim-lvm-and-dmcrypt/ |
netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -nr |
function get_data_info() { | |
jQuery.ajax({ | |
url: 'mymodule/api/data', | |
type: 'POST', | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded', | |
}, | |
dataType: "json", | |
data: { | |
'data': data |
#! /usr/bin/env bash | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
mysqlcheck -o --all-databases | |
mysqlcheck -u [username] -p[password] -o [database name] |
sudo apt-get install libjpeg-progs pngcrush |
<?php | |
/** | |
* @file mymodule.install | |
* Install hooks for mymodule. | |
*/ | |
/** | |
* Description of what the database update does. Do not use "Implements..." since it adds | |
* zero information and makes reading the list of pending database updates in Drush harder | |
* to read. |
gunzip -c database.sql.gz | drush sqlc |