Skip to content

Instantly share code, notes, and snippets.

View vinkrish's full-sized avatar
🎯
Focusing

Vinay Krishna vinkrish

🎯
Focusing
View GitHub Profile
@vinkrish
vinkrish / React.md
Last active September 12, 2024 21:41

npm install -g create-react-app

create-react-app name npm start

It puts fake HTML in javascript

To enable emmet: change VS Code Settings "emmet.includeLanguages": { "javascript": "javascriptreact",

LEARN KUBERNETES BASICS:
Create a Cluster:
minikube version
minikube start
kubectl version
kubectl cluster-info
kubectl get nodes
1.Validate HTML/CSS/JavaScript
2.Minify CSS/JavaScript
3.Compile Typescript or CoffeeScript to JS
3.Compile LESS to CSS
Webpack to bundle or compile javascript into a single minified file that works in the browser.
npm install -g grunt-cli
npm install grunt --save-dev
npm install grunt-contrib-clean --save-dev

Vim editing:

vi test.txt
i to insert
:w to save
:q to quit
:wq to save and quit

Shift+zz - Save the file and quit
docker info
docker version
docker image ls
docker images == docker image ls
docker run hello-world
docker ps
docker ps -a
docker top
docker service ls
docker service inspect NAME
apt-get update
apt-get install nginx
ps aux | grep nginx
ls -l /etc/nginx/
clear
service nginx start
tar -zxvf nginx-1.17.2.tar.gz
wget http://nginx.org/download/nginx-1.17.2.tar.gz
cd nginx-1.17.2
apt-get install build-essential

airflow needs a home, ~/airflow is the default

export AIRFLOW_HOME=~/airflow

install from pypi using pip

pip install apache-airflow
@vinkrish
vinkrish / kafka.md
Last active November 1, 2019 07:02

How to download Kafka ?

curl "http://mirror.metrocast.net/apache/kafka/0.10.2.0/kafka_2.12-0.10.2.0.tgz" | tar xz

How to start a zookeeper ?

Windows:

conda upgrade conda conda upgrade --all

conda install jupyter notebook

conda create -n env_name python=3.6
source activate env_name
"""
Creates readable text file from SRT file.
"""
import re, sys
import os
def clean_up(lines):
"""
Get rid of all non-text lines and
try to combine text broken into multiple lines