Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
I may be slow to respond.

Kovid Rathee kovid-r

:octocat:
I may be slow to respond.
View GitHub Profile
View get-medium-stats.js
const totalTypes = {
VIEWS: 2,
READS: 3,
FANS: 5
};
const getTotal = tableColumn =>
[
...document.querySelectorAll(
`td:nth-child(${tableColumn}) > span.sortableTable-number`
@kovid-r
kovid-r / aws_vnc_mac.sh
Last active Dec 3, 2020 — forked from sebsto/gist:6af5bf3acaf25c00dd938c3bbe722cc1
Start VNCServer on Mac1 EC2 Instance
View aws_vnc_mac.sh
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
ssh -i <your private key.pem> ec2-user@<your public ip address>
# On the Mac
# Set a password for ec2-user
sudo passwd ec2-user
# Enable VNC Server