Skip to content

Instantly share code, notes, and snippets.

View samlambert's full-sized avatar

Sam Lambert samlambert

View GitHub Profile
@samlambert
samlambert / management.md
Created January 9, 2021 00:16
Management @ PlanetScale

We want PlanetScale to be the best place to work. But every company says that, and very few deliver. Managers have a role in creating an amazing work experience, but things go awry when the wrong dynamic creeps in.

We have all seen those managers who collect people as “resources” or who control information as a way to gain “power.” In these cultures, people who “can’t” end up leading the charge. This is management mediocrity.

What will make us different? At PlanetScale, we won’t tolerate management mediocrity. We are building a culture where politics get you nowhere and impact gets you far. Managers are here to support people who get things done. They are as accountable to their team as their team is accountable to them.

We evaluate managers on the wellbeing and output of their team, how skillfully they collaborate with and influence others, and how inclusively and transparently they work.

You can expect your manager to:

  • Perceive a better version of you and support you in getting there
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@samlambert
samlambert / gist:5244123
Created March 26, 2013 09:26
MySQL 5.6 Data too long (for blog post)
mysql> INSERT INTO strings (words) VALUE ('This string is too long');
ERROR 1406 (22001): Data too long for column 'words' at row 1
@samlambert
samlambert / gist:5244121
Created March 26, 2013 09:24
MySQL5.5 Data truncated (for blog post)
mysql> INSERT INTO strings (words) VALUE ('This string is too long');
Query OK, 1 row affected, 1 warning (0.05 sec)
mysql> show warnings;
+---------+------+--------------------------------------------+
| Level | Code | Message |
+---------+------+--------------------------------------------+
| Warning | 1265 | Data truncated for column 'words' at row 1 |
+---------+------+--------------------------------------------+
1 row in set (0.00 sec)
@samlambert
samlambert / qps
Last active December 14, 2015 12:48
One liner to print MySQL Queries Per Second.
mysqladmin ext -i1 | gawk '/Queries/{q=$4-ql;ql=$4; printf("%s QPS: %s\n", strftime("%H:%M:%S"), q)}'