Clone all of an organization's GitHub repositories
Something like this should do:
for u in $(hub api --paginate orgs/$ORGNAME/repos | jq '.[].ssh_url' | sed -e 's/"//g'); do echo $u; git clone "$u"; done
Something like this should do:
for u in $(hub api --paginate orgs/$ORGNAME/repos | jq '.[].ssh_url' | sed -e 's/"//g'); do echo $u; git clone "$u"; done
Find everything running on localhost that's listening for a connection:
sudo lsof -i -P | grep LISTEN
I'm going to forget this, so blogging it for the future.
SELECT table_schema AS 'Database', ROUND(SUM(data_length) / 1024 / 1024, 2) AS 'Data', ROUND(SUM(index_length) / 1024 / 1024, 2) AS 'Indexes', ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'Total' FROM information_schema.TABLES GROUP BY table_schema;