Skip to content

Instantly share code, notes, and snippets.

View AnanthaRajuC's full-sized avatar
💻
Learning

Anantha Raju C AnanthaRajuC

💻
Learning
View GitHub Profile
@AnanthaRajuC
AnanthaRajuC / Person.java
Created April 16, 2022 13:43
Spring Data REST Entity
package io.github.anantharajuc.springdatarest.model;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.anantharajuc.springdatarest.model.common.BaseEntity;
import io.github.anantharajuc.springdatarest.model.enums.Gender;
import lombok.Getter;
import javax.persistence.*;
@AnanthaRajuC
AnanthaRajuC / 0.README.md
Created March 29, 2022 06:38 — forked from ijokarumawak/0.README.md
NiFi Example: Load CSV File into Table, the traditional and the new way using Record.

NiFi Example: Load CSV file into RDBMS Table using the traditional way and the new way using Record

Example Data

Ingested to the example flows by GenerateFlowFile:

ID, CITY_NAME, ZIP_CD, STATE_CD
001, CITY_A, 1111, AA
002, CITY_B, 2222, BB
003, CITY_C, 3333, CC
@AnanthaRajuC
AnanthaRajuC / Apache-NiFi-Installation-Add-Credentials-Start-and-Stop-Application.txt
Last active April 9, 2022 03:30
Apache NiFi Installation, Add Credentials, Start and Stop Application
java -version
wget https://dlcdn.apache.org/nifi/1.15.3/nifi-1.15.3-bin.tar.gz
tar -xvf nifi-1.15.3-bin.tar.gz
cat logs/nifi-app.log
cd nifi-1.15.3
sudo nano conf/nifi.properties
bin/nifi.sh start
ghost serves traffic on port 2368
the host is 127.0.0.1
ghost install local
ghost stop to stop Ghost
ghost start to start Ghost
ghost log views logs
ghost ls to list all running Ghost blogs
@AnanthaRajuC
AnanthaRajuC / sakila-sample-database-installation.sql
Created February 13, 2022 13:06
Sakila sample database installation
-- DOWNLOAD - https://dev.mysql.com/doc/index-other.html
-- INSTALLATION - https://dev.mysql.com/doc/sakila/en/sakila-installation.html
mysql -u [USERNAME] -p[PASSWORD]
source sakila-schema.sql;
source sakila-data.sql;
@AnanthaRajuC
AnanthaRajuC / github_desktop_ubuntu.sh
Created February 4, 2022 04:54 — forked from berkorbay/github_desktop_ubuntu.md
To install Github Desktop for Ubuntu
## Follow this link for further updates to Github Desktop for Ubuntu https://github.com/shiftkey/desktop/releases/latest
# UPDATE (2021-10-18): Thanks to Amin Yahyaabadi's message, the updated code is as follows
sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.9.3-linux3/GitHubDesktop-linux-2.9.3-linux3.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-2.9.3-linux3.deb
# UPDATE (2021-03-05): Thanks to PaoloRanzi81's comment, the updated code is as follows https://gist.github.com/PaoloRanzi81
@AnanthaRajuC
AnanthaRajuC / OpenAPI3.yaml
Created January 18, 2022 10:16 — forked from MarwanRefaat/OpenAPI3.yaml
OpenAPI3.yaml
openapi: 3.0.0
info:
version: 1.0.0
title: Simple API
description: A simple API to illustrate OpenAPI concepts
servers:
- url: https://example.io/v1
security:
@AnanthaRajuC
AnanthaRajuC / openapi_specification_fka_swagger_specification_tutorial.md OpenAPI Specification (fka Swagger Specification) tutorial files from [API Handyman blog](http://apihandyman.io)
You can ssh into the VM by finding the IP (from kubectl config view) and using username "docker" password "tcuser":
ssh docker@192.168.XX.XX
@AnanthaRajuC
AnanthaRajuC / minikube-uninstall-and-reinstall.sh
Created December 29, 2021 04:18
minikube uninstall and reinstall on Linux
#! /bin/sh
# Minikube update script file - https://stackoverflow.com/questions/57821066/how-to-update-minikube-latest-version
minikube delete && \
sudo rm -rf /usr/local/bin/minikube && \
sudo curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
sudo chmod +x minikube && \
sudo cp minikube /usr/local/bin/ && \
sudo rm minikube && \