Skip to content

Instantly share code, notes, and snippets.

@cgrayson
cgrayson / optimize_watcher.sh
Created April 25, 2019 21:00
Watch the progress of a MySQL optimize, as the percentage size of the new temp file vs. the original
#!/bin/bash
#
# Watch the progress of a MySQL optimize, as the percentage size of the new
# temp file vs. the original. Run in the MySQL data directory (wherever the
# .ibd files are).
#
# created: Aug 12, 2015
# updated: Apr 25, 2019
#
USAGE="$0: Usage is: $0 table-being-optimized"
BOX=`hostname -s`
case "$LOGNAME" in
"root" ) COLOR="31" # red
;;
"chris" ) COLOR="32" # green
;;
"production" ) COLOR="33" # yellow
;;
* ) COLOR="36" # cyan
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="lc-integration" type="mocha-javascript-test-runner" factoryName="Mocha">
<node-options />
<working-directory>$PROJECT_DIR$</working-directory>
<pass-parent-env>true</pass-parent-env>
<envs>
<env name="NODE_ENV" value="test" />
<env name="TZ" value="GMT" />
</envs>
<ui>TDD</ui>

Keybase proof

I hereby claim:

  • I am cgrayson on github.
  • I am cgrayson (https://keybase.io/cgrayson) on keybase.
  • I have a public key whose fingerprint is 9474 C3C0 047F 77DC 782A 7A14 6BDB 2AA2 B937 6827

To claim this, I am signing this object:

@cgrayson
cgrayson / gist:5426033
Created April 20, 2013 13:47
output of ack --bar
# --bar was added so ack users may consult Admiral Ackbar.
> ack --bar
?IIIIIII7II?????+
~III777II777I?+==++==+:
???I7I???I7II++=====++===
??+??????????+===~~=+++??==+
??+??II??????+==~=~~=+++++==++
I+?????????+?+====~=~==+==++?==?
?????II?????+++++=======?===~~~~==