Skip to content

Instantly share code, notes, and snippets.

View vishalmamidi's full-sized avatar
🏠
Working from home

Vishal Mamidi vishalmamidi

🏠
Working from home
View GitHub Profile
@vishalmamidi
vishalmamidi / gist:d6807d2b2fd0cb9505c08e2ea865da6a
Created August 12, 2022 18:58 — forked from jwebcat/gist:5122366
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1
az aks get-credentials --resource-group k8s-demo-ss --name k8s-demo-cluster-ss --file kubeconfig-ss
@vishalmamidi
vishalmamidi / a2dp.py
Created February 12, 2022 12:34 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3
"""Fixing bluetooth stereo headphone/headset problem in debian distros.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
Licence: Freeware
@vishalmamidi
vishalmamidi / instructions.md
Created January 29, 2022 13:11 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@vishalmamidi
vishalmamidi / HttpHeadersTest.java
Created January 6, 2022 15:37 — forked from Cepr0/HttpHeadersTest.java
How to get all the headers from HttpServletRequest? - https://stackoverflow.com/a/49771639
package io.github.cepr0.demo;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.HttpHeaders;
import javax.servlet.http.HttpServletRequest;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;