Skip to content

Instantly share code, notes, and snippets.

@madhums
madhums / docker-compose.yml
Created August 15, 2019 08:02
docker with nginx and php-fpm
version: '3.3'
services:
php:
image: php:7.1-fpm
volumes:
- .:/var/www/html
working_dir: /var/www/html
networks:
- web
@madhums
madhums / install-android-emulator-brew-macos.md
Last active September 14, 2023 07:07
installing android emulator using cli on a mac

In your command line

brew install android-sdk --cask
sdkmanager "emulator"
sdkmanager "platform-tools"
sdkmanager "system-images;android-26;google_apis;x86_64"
avdmanager create avd -n NAME -k "system-images;android-26;google_apis;x86_64" # the one that you use above

Keybase proof

I hereby claim:

  • I am madhums on github.
  • I am madhums (https://keybase.io/madhums) on keybase.
  • I have a public key ASBVMIs9eqWnfu0aNDPJA5_wKDQv66UV2VaW4wuo7Ev5VQo

To claim this, I am signing this object:

@madhums
madhums / graphql-go-mongodb-example.go
Created May 6, 2019 20:47 — forked from trunet/graphql-go-mongodb-example.go
Minimal example of GraphQL Golang and MongoDB playing nicely together. Edit
// Embedded in this article https://medium.com/p/c98e491015b6
package main
import (
"context"
"fmt"
"log"
"net/http"
"time"
@madhums
madhums / dc-movies-in-order.md
Created April 27, 2019 17:04
dc movies to watch in order

DC Movies in order

  1. Man of Steel (2013)
  2. Dawn of Justice (2016)
  3. Suicide Squad (2016)
  4. Wonder Woman (2017)
  5. Justice League (2017)
  6. Aquaman (2018)
  7. Shazam! (2019)
@madhums
madhums / marvel-movies-in-order.md
Created April 27, 2019 17:03
marvel movies to watch in order

Marvel movies in order

  1. Iron Man
  2. The Incredible Hulk
  3. Iron Man 2
  4. Thor
  5. Captain America
  6. Avengers
  7. Iron Man 3
  8. Thor: The Dark World
@madhums
madhums / .babelrc
Last active March 23, 2023 12:44
eslint prettier config
{
"presets": ["next/babel"],
"plugins": []
}
@madhums
madhums / README.md
Last active February 20, 2019 14:51
tslint prettier and atom

Tslint with Prettier on Atom

Install linter, linter-ui-default and linter-tslint packages on Atom.

Run below to detect errors:

$ npx tslint --project tsconfig.json --config tslint.json
@madhums
madhums / wave.css
Created November 22, 2018 22:35
making a wave like structure in css (https://jsfiddle.net/7fjSc/9/)
#wave {
position: relative;
height: 70px;
width: 600px;
background: #e0efe3;
}
#wave:before {
content: "";
display: block;
  1. North Indian thali (a plate with all different dishes on the sides)
  2. Butter naan with Alu gobi (indian bread with curry)
  3. Idli vada sambar (must try! it's south indian special - google it if you like)
  4. also, try the "Phulka" instead of the roti (if you order roti/naan). Its quite unique and good

Dosas: (also south indian special!)

  1. Masala dosa (or cheese masala dosa)
  2. paper cheese dosa (long dosa)
  3. ghee roast dosa (pyramid shaped dosa)