Skip to content

Instantly share code, notes, and snippets.

View saranshdhingra's full-sized avatar

Saransh Dhingra saranshdhingra

View GitHub Profile
FROM ubuntu:18.04
WORKDIR /var/www
RUN apt-get update
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN apt-get install -y php7.2-dev php-pear libz-dev curl zip
@saranshdhingra
saranshdhingra / main.tf
Created October 12, 2021 10:19
Terraform script to create multiple Google Cloud VM instances with different machine types and a custom docker container.
#
# Copyright 201 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@saranshdhingra
saranshdhingra / location_faker.js
Created June 15, 2019 21:42
Fake location for the geolocation API using puppeteer
/**
* @name location_faker
*
* @desc Fake the location for the geolocation API used by the browsers
*
*/
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();