Skip to content

Instantly share code, notes, and snippets.

View chaitanyamannem's full-sized avatar

Chaitanya Mannem chaitanyamannem

View GitHub Profile
@chaitanyamannem
chaitanyamannem / docker-commands.md
Last active April 20, 2022 06:10
[Docker Commands] #docker #cheatsheets

container ip docker inspect --format '{{.NetworkSettings.IPAddress}}'

@chaitanyamannem
chaitanyamannem / commands-to-explore.md
Created April 20, 2022 04:48
[linux commands] #linux

sudo -s

@chaitanyamannem
chaitanyamannem / test.md
Created April 5, 2022 23:54
[Temp] #code #rough

a random temp code

@chaitanyamannem
chaitanyamannem / Mytest.py
Last active April 5, 2022 23:46
Test #k8s
A sample test file
FROM python:3.8.3
WORKDIR /application
# Install and upgrade pip
RUN pip install --upgrade pip
# Collect pip requirements
COPY requirements.txt .
@chaitanyamannem
chaitanyamannem / deployment.yaml
Created September 14, 2020 02:58
Kubernetes Deployment File
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-script
spec:
replicas: 1
selector:
matchLabels:
app: python-script
template:
@chaitanyamannem
chaitanyamannem / json-configmap.yaml
Created September 14, 2020 02:56
Kubernetes Config Map
apiVersion: v1
kind: ConfigMap
metadata:
name: json-configmap
namespace: default
data:
config_develop.json: |
{
"current_env" : "gcp-development-minikube",
"Directory_Type" : "folder",
Helps in images upload.
Just add image in comments.
<img width="696" alt="image" src="https://user-images.githubusercontent.com/4608129/83413378-5be44880-a439-11ea-8715-422b077d1163.png">
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import java.io.BufferedReader;
import java.io.FileReader;
public class CsvReader {
public static void main(String[] args) {
try(
BufferedReader br = new BufferedReader(new FileReader("Sacramentorealestatetransactions.csv"));