Skip to content

Instantly share code, notes, and snippets.

Matt M. theothermattm

View GitHub Profile
View engineering-culture-notes.md

Some of the greatest info I've seen on creating a healthy engineering courtesy of Spotify:

Spotify Engineering Culture Part 1

TODO make notes on this one

Spotify Engineering Culture Part 2

  • 0:50 - "We aim to make mistakes faster than anyone else" - Fail Fast and Improve Fast.
  • 1:30 - "Fail Friendly Environment" - Encourage sharing of failures so everyone can learn from them. Some teams have "Fail walls" showing off their failures.
@theothermattm
theothermattm / oracle-health-check.sql
Created Feb 21, 2019
Bash script to check health of an oracle instance
View oracle-health-check.sql
# original source based on: https://github.com/fabiohbarbosa/docker-healthcheck-oracle/blob/master/assets/healthcheck.sh
CHECK=$(${ORACLE_HOME}/bin/sqlplus -s ${HEALTHCHECK_USER}/${HEALTHCHECK_PASSWORD}@localhost/${HEALTHCHECK_SERVICE_NAME} as sysdba <<END
--set pagesize 0 feedback off verify off heading off echo off;
-- the simplest type of health check
--select count(*) from dual;
-- this will check if a
SELECT count(*) FROM V\$INSTANCE where INSTANCE_NAME = 'xe' and DATABASE_STATUS = 'ACTIVE';
exit;
END
@theothermattm
theothermattm / oracle-delete-all-tables.sql
Created Feb 15, 2019
Delete All Tables in an Oracle Schema
View oracle-delete-all-tables.sql
-- https://stackoverflow.com/questions/1690404/how-to-drop-all-user-tables
BEGIN
FOR cur_rec IN (SELECT object_name, object_type
FROM user_objects
WHERE object_type IN
('TABLE',
'VIEW',
'PACKAGE',
'PROCEDURE',
View experimental-culture.md

Tom Chi - Learning Through Prototyping

()[https://www.youtube.com/watch?v=kuqgrvUPc5g]

  • Better to reason with experience/data than guesses
    • Find the quickest path to experience
    • Doing is the best kind of thinking.
  • Smart people will always have good defenses of their guesses
  • "Am I hearing a guess, or am I hearing direct experience?"
    • We want experience
@theothermattm
theothermattm / gitignoresync.sh
Created Jul 28, 2017
Sync files using .gitignore
View gitignoresync.sh
rsync -azP --delete --filter=":- .gitignore" . targethost:/targetdirectory
@theothermattm
theothermattm / convert-crt-to-pem.sh
Created Jul 20, 2016
Convert .crt to .pem for CA's
View convert-crt-to-pem.sh
# from https://github.com/nodejs/node/issues/3742#issuecomment-225939382
openssl x509 -inform der -in /Path/to/the.crt -out /Path/to/the/file.pem
@theothermattm
theothermattm / an-event-apart-austin-2015-notes.md
Created Oct 7, 2015
An Event Apart - Austin, TX 2015 - Notes
View an-event-apart-austin-2015-notes.md

Follow ups:

  • stand up webpage test internally: https://sites.google.com/a/webpagetest.org/docs/private-instances
    • docker image?
    • convert AMI to an VMware image?
    • need windows machines for agents
  • sign up for thewebahead.net podcast - @jensimmons
  • responsive design podcast - ethan marcotte and karen mcgrane
  • mailtoself.com
  • hipmunk.com - for travel
@theothermattm
theothermattm / sync-using-gitignore.sh
Created Oct 7, 2015
Rsync files using .gitignore
View sync-using-gitignore.sh
# sync everything excluding things in .gitignore
# delete anything on target not in source
# include dotfiles and symlinks, also use compression
rsync -azP --delete --filter=":- .gitignore" . my-target-host:/my/target/directory
@theothermattm
theothermattm / attachto.sh
Created Feb 25, 2015
Attach to a docker image by image name
View attachto.sh
# attaches to the first running docker container containing the name passed
# in as the first argument to the command
# example: attachto projects
function attachto () {
echo "Attaching to first running docker container with name: $1 You might need to press ctrl+c to start entering commands..."
docker attach $( docker ps | grep $1 | head -n 1 | cut -d' ' -f1)
}
View go-to-coding-resources.md
You can’t perform that action at this time.