Skip to content

Instantly share code, notes, and snippets.

Lessons from the book
1. Start young
2. Never invest on tips
3. Never have a short term horizon
4. Stock market's volatility is what helps it give you stellar returns
5. Do not invest with borrowed money or a faint heart, both are fatal
6. Your portfolio must beat inflation after paying taxes, year on year
7. Real estate is no match for stock investing
8. Mutual funds are next best to stock investing
9. Mutual funds do not allow for your intellectual growth, stocks do

Ikigai - doing what you love, getting good at it and helping community with it. keep yourself healthy mind and body.
be anti fragile - remove what makes you fragile.
identify things, people that you enjoy spend more time doing it.
serenity player
dont take stress
stoicism - change what you can, identify what you cant change and dont sweat on it.
follow goals dont plan heavy.
be agile.
take it slow.

items = [12, 2, 'str', [], {}]
print(items)
for i in range(0, len(items)):
print(items[i])
print(items[1:3])
print(items * 3)
print(items + items)
docker container start
docker container stop
docker container rm
docker network create <name>
docker network connect <network> <container>
docker network ls
docker container ls
docker build
docker run
docker attach
@anandrajneesh
anandrajneesh / docker-base-setup
Last active February 12, 2019 18:20
Docker on AWS Lightsail
#!/bin/bash
# install latest version of docker the lazy way
curl -sSL https://get.docker.com | sh
# make it so you don't need to sudo to run docker commands
usermod -aG docker ubuntu
# install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
@anandrajneesh
anandrajneesh / ThinkBigger.md
Last active November 2, 2018 13:42
more info

Benjamin Graham and David Dodd - Security Analysis
Carl Jung’s model of psychological types
Howard Marks’s 2011 book on investing, The Most Important Thing: Uncommon Sense for the Thoughtful Investor
Focus: The Hidden Driver of Excellence Daniel Goleman
Andy Grove titled his book, Only the Paranoid Survive.

@anandrajneesh
anandrajneesh / path1.md
Last active January 10, 2019 19:27
Getting into AI
package multithreading.horsetourney;
import java.util.concurrent.BrokenBarrierException;
public abstract class Barrier {
protected final int count;
public Barrier(int participantsCount) {
package multithreading;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
public class PingPongOneRunnable {