Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am ajsharma on github.
* I am ajsharma (https://keybase.io/ajsharma) on keybase.
* I have a public key ASC1LMGkHapAsykKIWOHbD9EUpKW0uoeBtq1ob4r_ZLGKgo
To claim this, I am signing this object:
#!/usr/local/bin/phantomjs --ssl-protocol=tlsv1
// Script to screenshot the given URL. It renders when it receives
// a callPhantom invocation with {renderNow: true}. The viewport
// defaults to the URL's body size.
var system = require('system');
// --------------------- Set Timeout ---------------------
@ajsharma
ajsharma / google_fi_mark_as_read.js
Created December 14, 2021 23:58
Mark all Google Fi Voicemails as Read
// Go to https://messages.google.com/web/voicemail
// Scroll through your messages to load all the unread messages
// Run this in your browser
const inputs = document.querySelectorAll('.unread');
for (let i = 1; i < inputs.length; i++) { inputs[i].click() }
@ajsharma
ajsharma / postgresql.conf
Last active May 23, 2022 22:16
How to tail Homebrew Postgres logs in terminal
# File located at /opt/homebrew/var/postgres/postgresql.conf
# Find `log_statement` and set it to 'all'.
log_statement = 'all'
# Postgres must be restarted before changes take effect.