Syndicate content

peter's blog

  • user warning: Disk full (/var/tmp/#sql_365e_0); waiting for someone to free some space... query: SELECT t.*,v.weight AS v_weight_unused FROM pcp_term_node r INNER JOIN pcp_term_data t ON r.tid = t.tid INNER JOIN pcp_vocabulary v ON t.vid = v.vid WHERE r.vid = 246 ORDER BY v.weight, t.weight, t.name in /var/www/petercarrero.com/modules/taxonomy/taxonomy.module on line 640.
  • user warning: MySQL server has gone away query: SELECT * FROM pcp_files f INNER JOIN pcp_upload r ON f.fid = r.fid WHERE r.vid = 246 ORDER BY r.weight, f.fid in /var/www/petercarrero.com/modules/upload/upload.module on line 561.
  • user warning: MySQL server has gone away query: SELECT nt.type, nt.* FROM pcp_node_type nt ORDER BY nt.type ASC in /var/www/petercarrero.com/modules/node/node.module on line 564.
  • user warning: MySQL server has gone away query: SELECT * FROM pcp_content_node_field_instance nfi JOIN pcp_content_node_field nf ON nfi.field_name = nf.field_name WHERE nfi.type_name = 'blog' AND nf.active = 1 AND nfi.widget_active = 1 ORDER BY nfi.weight ASC, nfi.label ASC in /var/www/petercarrero.com/sites/all/modules/cck/includes/content.crud.inc on line 493.
  • user warning: MySQL server has gone away query: SELECT v.vid, v.*, n.type FROM pcp_vocabulary v LEFT JOIN pcp_vocabulary_node_types n ON v.vid = n.vid WHERE n.type = 'blog' ORDER BY v.weight, v.name in /var/www/petercarrero.com/modules/taxonomy/taxonomy.module on line 475.
  • user warning: MySQL server has gone away query: SELECT * FROM pcp_mollom_form WHERE form_id = 'blog_node_form' in /var/www/petercarrero.com/sites/all/modules/mollom/mollom.module on line 949.
  • user warning: MySQL server has gone away query: SELECT cache FROM pcp_filter_formats WHERE format = 2 in /var/www/petercarrero.com/modules/filter/filter.module on line 365.
  • user warning: MySQL server has gone away query: SELECT * FROM pcp_filters WHERE format = 2 ORDER BY weight, module, delta in /var/www/petercarrero.com/modules/filter/filter.module on line 377.
  • user warning: MySQL server has gone away query: SELECT aa.aid, a.type FROM pcp_trigger_assignments aa LEFT JOIN pcp_actions a ON aa.aid = a.aid WHERE aa.hook = 'nodeapi' AND aa.op = 'view' ORDER BY weight in /var/www/petercarrero.com/modules/trigger/trigger.module on line 146.
  • user warning: MySQL server has gone away query: SELECT comment_count FROM pcp_node_comment_statistics WHERE nid = 36 in /var/www/petercarrero.com/modules/comment/comment.module on line 1121.
  • user warning: MySQL server has gone away query: SELECT r.* FROM pcp_role r INNER JOIN pcp_permission p ON r.rid = p.rid WHERE p.perm LIKE '%post comments%' ORDER BY r.name in /var/www/petercarrero.com/modules/user/user.module on line 1770.
  • user warning: MySQL server has gone away query: SELECT r.* FROM pcp_role r INNER JOIN pcp_permission p ON r.rid = p.rid WHERE p.perm LIKE '%post comments without approval%' ORDER BY r.name in /var/www/petercarrero.com/modules/user/user.module on line 1770.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 35 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • user warning: MySQL server has gone away query: SELECT dst FROM pcp_url_alias WHERE src = 'node/' AND language IN('en', '') ORDER BY language DESC, pid DESC in /var/www/petercarrero.com/includes/path.inc on line 68.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 34 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 33 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 32 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 31 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 29 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 28 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 27 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT n.nid, n.type, n.language, n.uid, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, n.tnid, n.translate, r.vid, r.uid AS revision_uid, r.title, r.body, r.teaser, r.log, r.timestamp AS revision_timestamp, r.format, u.name, u.picture, u.data FROM pcp_node n INNER JOIN pcp_users u ON u.uid = n.uid INNER JOIN pcp_node_revisions r ON r.vid = n.vid WHERE n.nid = 26 in /var/www/petercarrero.com/modules/node/node.module on line 761.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/sites/all/modules/cck/content.module on line 1284.
  • user warning: MySQL server has gone away query: SELECT dst FROM pcp_url_alias WHERE src = 'blog/1/feed' AND language IN('en', '') ORDER BY language DESC, pid DESC in /var/www/petercarrero.com/includes/path.inc on line 68.
  • user warning: MySQL server has gone away query: SELECT dst FROM pcp_url_alias WHERE src = 'misc/feed.png' AND language IN('en', '') ORDER BY language DESC, pid DESC in /var/www/petercarrero.com/includes/path.inc on line 68.
  • user warning: MySQL server has gone away query: SELECT info FROM pcp_system WHERE type = 'theme' AND name = 'absynthe' in /var/www/petercarrero.com/modules/system/system.module on line 1049.
  • warning: array_map(): Argument #2 should be an array in /var/www/petercarrero.com/modules/system/system.module on line 1050.
  • warning: array_keys() expects parameter 1 to be array, null given in /var/www/petercarrero.com/includes/theme.inc on line 1845.
  • warning: Invalid argument supplied for foreach() in /var/www/petercarrero.com/includes/theme.inc on line 1845.
  • user warning: MySQL server has gone away query: SELECT p1, p2, p3, p4, p5, p6, p7, p8 FROM pcp_menu_links WHERE menu_name = 'navigation' AND link_path IN ('blog/1') in /var/www/petercarrero.com/includes/menu.inc on line 900.
  • user warning: MySQL server has gone away query: SELECT p1, p2, p3, p4, p5, p6, p7, p8 FROM pcp_menu_links WHERE menu_name = 'navigation' AND link_path = 'blog/%' in /var/www/petercarrero.com/includes/menu.inc on line 905.
  • user warning: MySQL server has gone away query: SELECT m.load_functions, m.to_arg_functions, m.access_callback, m.access_arguments, m.page_callback, m.page_arguments, m.title, m.title_callback, m.title_arguments, m.type, m.description, ml.* FROM pcp_menu_links ml LEFT JOIN pcp_menu_router m ON m.path = ml.router_path WHERE ml.menu_name = 'navigation' AND ml.plid IN (0) ORDER BY p1 ASC, p2 ASC, p3 ASC, p4 ASC, p5 ASC, p6 ASC, p7 ASC, p8 ASC, p9 ASC in /var/www/petercarrero.com/includes/menu.inc on line 943.
  • user warning: MySQL server has gone away query: SELECT * FROM pcp_menu_router WHERE tab_root = 'blog/%' ORDER BY weight, title in /var/www/petercarrero.com/includes/menu.inc on line 1327.
  • user warning: MySQL server has gone away query: SELECT dst FROM pcp_url_alias WHERE src = 'admin/settings/actions' AND language IN('en', '') ORDER BY language DESC, pid DESC in /var/www/petercarrero.com/includes/path.inc on line 68.
  • user warning: MySQL server has gone away query: SELECT dst FROM pcp_url_alias WHERE src = 'admin/help/backup_migrate' AND language IN('en', '') ORDER BY language DESC, pid DESC in /var/www/petercarrero.com/includes/path.inc on line 68.
Oct 03
0

Bash History Lesson #1 - Timestamp

Mon, 10/03/2016 - 08:18 — peter

The Problem

The command line is the developer's number 1 friend and ally, but usually out-of-the-box configuration is very bare and uninformative. Every seasoned developer out there will have their own way of customizing the shell prompt, shell commands and even which shell better fits their needs. While this post will focus on the bash history command, bash being the default shell on the vast majority of systems out there, the same concepts can be used to customize other shells as well.

To be clear: we are going to spice up the results of the history command on the bash shell.

Dec 31

n/a
Dec 31

n/a
Dec 31

n/a
Dec 31

n/a
Dec 31

n/a
Dec 31

n/a
Dec 31

n/a
Dec 31

n/a
Dec 31

n/a