Skip to content

Instantly share code, notes, and snippets.

View Kevnz's full-sized avatar
💭
Writing the code again

Kevin Isom Kevnz

💭
Writing the code again
View GitHub Profile
@Kevnz
Kevnz / index.js
Last active August 31, 2017 04:49 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
const asciify = require('asciify');
asciify('NPX', function(err, res){ console.log(res);
console.log('yay gist')
console.log('Hi Auckland Node.JS Meetup')
});

Array<T>

Legend:

  • ✏️ method changes this.
  • 🔒 method does not change this.

Array<T>.prototype.*:

  • concat(...items: Array): T[] 🔒 ES3
with table_stats as (
select psut.relname,
psut.n_live_tup,
1.0 * psut.idx_scan / greatest(1, psut.seq_scan + psut.idx_scan) as index_use_ratio
from pg_stat_user_tables psut
order by psut.n_live_tup desc
),
table_io as (
select psiut.relname,
sum(psiut.heap_blks_read) as table_page_read,
@Kevnz
Kevnz / generate-ssh-key.sh
Created March 16, 2020 01:44 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa