import code; code.interact(local=dict(globals(), **locals()))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd <path_to_dir_where_symlinks_should_be> | |
| ln -s ../../../../../delorean/*.dl . | |
| ln -s ../../../../../delorean/freddie_bubd*.dl . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| nspname AS schemaname,relname,reltuples | |
| FROM pg_class C | |
| LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace) | |
| WHERE | |
| nspname NOT IN ('pg_catalog', 'information_schema') AND | |
| relkind='r' | |
| ORDER BY reltuples DESC; |
- Confirm some SSL cert is busted
domain_name = "fmsso.fanniemae.com"
uri = URI::HTTPS.build(host: domain_name)
response = Net::HTTP.start(uri.host, uri.port, {
:use_ssl => true,
# :verify_mode => OpenSSL::SSL::VERIFY_NONE,
})
cert = response.peer_cert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt purge postgresql-12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git log -p -- Gemfile |
sudo su - postgrescreateuser --interactive --pwprompt -p 5434where 5434 is the port of your PG cluster
sudo su - postgres
psql
CREATE USER railsuser WITH PASSWORD 'railsuser' SUPERUSER CREATEDB;
Version 9.6: sudo apt-get install postgresql-9.6 postgresql-contrib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git for-each-ref --sort='-committerdate:iso8601' --format=' %(committerdate:iso8601)%09%(refname)' refs/heads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select n.nspname as enum_schema, | |
| t.typname as enum_name, | |
| e.enumlabel as enum_value | |
| from pg_type t | |
| join pg_enum e on t.oid = e.enumtypid | |
| join pg_catalog.pg_namespace n ON n.oid = t.typnamespace |