Skip to content

Instantly share code, notes, and snippets.

View Jaskaranbir's full-sized avatar
😁
Coding fun stuff....

Jaskaranbir Dhillon Jaskaranbir

😁
Coding fun stuff....
View GitHub Profile
@Jaskaranbir
Jaskaranbir / Vagrantfile_hyper-v
Created August 17, 2019 22:17
Vagrantfile I use for Hyper-V
# -*- mode: ruby -*-
# vi: set ft=ruby :
plugin_dependencies = [
"vagrant-docker-compose",
# "vagrant-windows-hyperv"
# "vagrant-vbguest"
]
needsRestart = false
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"copyOnSelect": false,
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
{
"keys": ["ctrl+shift+\\"],
@Jaskaranbir
Jaskaranbir / puppeteer-experiment.js
Last active January 30, 2020 04:20
Some basic experimentation with Puppeteer - Prints response-body and gets screenshot.
const puppeteer = require('puppeteer');
const url = process.argv[2];
if (!url) {
throw "Please provide URL as a first argument";
}
async function run () {
const browser = await puppeteer.launch( {
headless: true