Skip to content

Instantly share code, notes, and snippets.

View rounakdatta's full-sized avatar
💭
roses are sunny, noses are runny

Rounak Datta rounakdatta

💭
roses are sunny, noses are runny
View GitHub Profile
@edgardo001
edgardo001 / GoogleAuthenticationCurl.sh
Created March 18, 2019 21:36 — forked from LindaLawton/GoogleAuthenticationCurl.sh
Curl bash script for getting a Google Oauth2 Access token
# Client id from Google Developer console
# Client Secret from Google Developer console
# Scope this is a space seprated list of the scopes of access you are requesting.
# Authorization link. Place this in a browser and copy the code that is returned after you accept the scopes.
https://accounts.google.com/o/oauth2/auth?client_id=[Application Client Id]&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=[Scopes]&response_type=code
# Exchange Authorization code for an access token and a refresh token.
curl \

Vim

Finding Your Way Around

Download MacVim (optional)

MacVim

Set up Oh-my-zsh (optional)

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 4, 2025 11:53
set -e, -u, -o, -x pipefail explanation
@soeirosantos
soeirosantos / gke_persistent_volumes.md
Last active March 27, 2024 00:25
Playing around with persistent volumes on Google Kubernetes Engine

GKE Persistent Volumes

Let's play around with persistent volumes on GKE.

Setup stuff

$ gcloud init
<output_omitted>
@aarnone
aarnone / pbcopy-and-pbpaste-in-arch-linux.md
Created May 14, 2018 21:06
Get pbcopy and pbpaste in Arch Linux

Get pbcopy and pbpaste in Arch Linux

First you need the 'xsel' package.

$> pacman -S xsel

Then create aliases.

alias pbcopy='xsel --clipboard --input'

alias pbpaste='xsel --clipboard --output'

@jmoy
jmoy / thin-film.ipynb
Last active November 18, 2018 19:51
Why soap bubbles are colorful and windowpanes are not
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@turtlemonvh
turtlemonvh / CartesianProduct.scala
Last active March 5, 2020 10:27
Scala cartesian product
// Based on: http://thushw.blogspot.com/2015/10/cartesian-product-in-scala.html
package com.github.turtlemonvh.helpers
object SequenceHelpers {
/* Take a list of lists and return a list of lists that is the cartesian product of the members if each list.
val seqs = List(List("1", "2", "3"), List("a", "b", "c", "d"), List("true", "false"))
// 24 = (3 * 4 * 2)
cartesianProduct[String](seqs).length
@shortjared
shortjared / list.txt
Last active April 11, 2025 14:12
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@enricofoltran
enricofoltran / main.go
Last active April 6, 2025 09:48
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@AD1993
AD1993 / RestCalls
Created January 5, 2018 09:16
BOMBitUP - OTP apis calls
import android.util.Log;
import org.json.JSONObject;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Headers;
import okhttp3.MediaType;