Skip to content

Instantly share code, notes, and snippets.

View vinkrish's full-sized avatar
🎯
Focusing

Vinay Krishna vinkrish

🎯
Focusing
View GitHub Profile
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
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

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
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
LEARN KUBERNETES BASICS:
Create a Cluster:
minikube version
minikube start
kubectl version
kubectl cluster-info
kubectl get nodes
@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",

pip list
pip list --local
pip freeze -> prints all installed library
python -m pip install findspark
pip3 install -r requirements.txt
jupyter notebook
Shift+Enter : run notebook​ cell
@vinkrish
vinkrish / download-file.js
Created April 2, 2020 08:31 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
@vinkrish
vinkrish / javacmd.txt
Last active April 16, 2022 17:19
Commands for building java application
vi ~/.bash_profile
vi /Users/vinkrish/.bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
source ~/.bash_profile
echo $JAVA_HOME
/usr/local/Cellar/openjdk/17.0.2/libexec/openjdk.jdk/Contents/Home
earlier JAVA_HOME:
@vinkrish
vinkrish / bash-cheatsheet.sh
Created June 15, 2021 15:27 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04