Skip to content

Instantly share code, notes, and snippets.

View citlacom's full-sized avatar

Pablo Cerda citlacom

  • Torrevieja, Spain
View GitHub Profile
@citlacom
citlacom / count_table_records_db.sql
Created June 27, 2018 18:24
Count table records from all DB tables
SELECT table_name, table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'iul_d8' order by table_name"
@citlacom
citlacom / strings_translations_hook_update_N.php
Created July 23, 2014 15:36
Programmatically set strings translations in hook_update_N()
/**
* Implements hook_update_N().
*/
function hook_update_N(&$sandbox) {
$report = array(
'skips' => 0,
'updates' => 0,
'deletes' => 0,
'additions' => 0
);
@citlacom
citlacom / 0_reuse_code.js
Created May 23, 2014 14:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console