Skip to content

Instantly share code, notes, and snippets.

View madhums's full-sized avatar

madhums madhums

View GitHub Profile
@madhums
madhums / config.ini
Last active November 22, 2023 12:15
install android sdk on linux (without installing android studio)
# ~/.android/avd/<NAME_OF_AVD>/config.ini
PlayStore.enabled = no
abi.type = x86_64
avd.id = <build>
avd.ini.encoding = UTF-8
avd.name = <build>
disk.cachePartition = yes
disk.cachePartition.size = 66MB
disk.dataPartition.path = <temp>
{
"Envelope": {
"encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/",
"Body": {
"Fault": {
"faultcode": "soap:Server",
"faultstring": "Execution of ServiceCallout SCO-AddURLVault failed. Reason: ResponseCode 409 is treated as error",
"faultactor": {},
"detail": {
"source": {
@madhums
madhums / .zshrc
Last active October 2, 2024 18:30
my zshrc file (using ohmyzsh)
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@madhums
madhums / keystone-magic-link-example.js
Last active June 4, 2023 02:05
An example app using keystonejs and magic-link passport auth using jwt
@madhums
madhums / docker-compose.yml
Created March 1, 2020 18:16
nextcloud docker
version: '3.2'
services:
nc:
image: nextcloud
volumes:
- ./nextcloud:/var/www/html
ports:
- 8080:80
depends_on:
@madhums
madhums / react-native-ecosystem-reading.md
Created February 25, 2020 22:43
react native ecosystem reading

Basically you need to get familiar with the react ecosystem. Here's some that you would be widely using

  • React: Some important concepts here are
  • Redux: I am assuming you already know about this
  • Redux Saga: for async api comms
  • React Native: Pretty much uses the same react, redux stuff except for some new interfaces. Some important things to learn here are

Is this article related to a climate event?

Metrics:

  • How will I know if an article covers climate event?
  • What do we consider as climate event?

Output: label: Climate event