Skip to content

Instantly share code, notes, and snippets.

View vinayakkulkarni's full-sized avatar
:octocat:
Gitting it done (from 🏡)

Vinayak Kulkarni vinayakkulkarni

:octocat:
Gitting it done (from 🏡)
View GitHub Profile
@vinayakkulkarni
vinayakkulkarni / setup.md
Last active February 27, 2022 15:11
Setting up Laravel Project using Vessel on EC2

Setting up Laravel Projects using Vessel

Install Docker & docker-compose

Installing Docker

  • Update the apt package index:
sudo apt-get update
@vinayakkulkarni
vinayakkulkarni / VmGallery.vue
Created October 10, 2021 03:23 — forked from brolnickij/VmGallery.vue
vm-gallery
<template lang="pug">
.vm-gallery
div(
:style="{ transitionDuration: transitionDuration, transform: translate3DPosition }"
ref="galleryItems"
).vm-gallery-items
div(v-for="imageItem in imageNodes").vm-gallery-item
img(
:src="imageItem.src"
:key="imageItem.src"
@vinayakkulkarni
vinayakkulkarni / csv.worker.ts
Created September 14, 2021 09:48
CSV to GeoJSON Parser in Web Worker
import { csvParse } from 'd3-dsv';
import { Feature, FeatureCollection, Point } from 'geojson';
function snooze(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms));
}
addEventListener('message', async (event: MessageEvent) => {
const { payload, sleep } = event.data.message;
await snooze(sleep);
@vinayakkulkarni
vinayakkulkarni / profile.vue
Last active February 26, 2021 12:50
Demo.vue
<script lang="ts">
import { useProfile } from '@/hooks/profile';
import { useContext } from '@nuxtjs/composition-api';
export default defineComponent({
setup() {
const { $axios } = useContext();
const { getUser, profile } = useProfile($axios);
return { profile };
}
})
@vinayakkulkarni
vinayakkulkarni / setup.md
Created June 9, 2020 09:06
Mounting NVMe EBS for AWS EC2 Nitro Instances

Ensure you have the ebs attached.

$ lsblk

Once you find the blk id, create xfs type filesystem

$ sudo mkfs -t xfs /dev/nvme1n1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vinayakkulkarni
vinayakkulkarni / SSL.md
Created April 28, 2020 06:45 — forked from gangsta/SSL.md
How to Setting Up a Comodo SSL Cert

How to Setting Up a Comodo SSL Cert

  • I advice you to buy SSL Certs from officially Comodo only , or some SSL reseller whose you trust.

These are the steps I went through to set up an SSL cert. Purchase the cert

Prior to purchasing a cert, you need to generate a private key, and a CSR file (Certificate Signing Request). You’ll be asked for the content of the CSR file when ordering the certificate:

openssl req -new -newkey rsa:2048 -nodes -keyout example_com.key -out example_com.csr
@vinayakkulkarni
vinayakkulkarni / timezone.html
Last active February 6, 2020 21:45
TimeZone Snippet for Semantic-UI
<!-- Make sure you have Semantic-UI libs include
Also, Ensure you import jQuery for smooth transition
Once you have all the imports add this to your html:
<script type="text/javascript">
$(document).ready(function() {
$('.dropdown').dropdown();
$('.ui.checkbox').checkbox();
});
</script>
@vinayakkulkarni
vinayakkulkarni / currency.html
Created October 17, 2016 10:14
Currencies in Semantic-UI
<!-- Make sure you have Semantic-UI libs include
Also, Ensure you import jQuery for smooth transition
Once you have all the imports add this to your html:
<script type="text/javascript">
$(document).ready(function() {
$('.dropdown').dropdown();
});
</script>
-->
<div class="field">

Keybase proof

I hereby claim:

  • I am vinayakkulkarni on github.
  • I am vinayak (https://keybase.io/vinayak) on keybase.
  • I have a public key ASCxgMkTIndvwScAt_z3yUKxx2JAbkCpJoWNOx2ft4W_Ogo

To claim this, I am signing this object: