Skip to content

Instantly share code, notes, and snippets.

View shiveshabhishek's full-sized avatar
👨‍💻
Wingardium Leviosa 🎉

Shivesh Abhishek shiveshabhishek

👨‍💻
Wingardium Leviosa 🎉
View GitHub Profile
@shiveshabhishek
shiveshabhishek / Kibana.MD
Last active September 30, 2018 21:26
Running Kibana with Own-Home in Docker (Ubuntu)

Steps:

  • First create a Docker Image with the help Dockerfile below which installs the kibana-own-home plugin in Kibana. (Note: This image of kibana is free [kibana-oss])
  • Then configure kibana.yml to use the configurations of the own-home plugin.
  • You must be having your elasticsearch instance running at port 9200.
    (docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.4.0)

File: Dockerfile

FROM docker.elastic.co/kibana/kibana-oss:6.4.0
RUN bin/kibana-plugin install https://github.com/wtakase/kibana-own-home/releases/download/v6.4.0/own_home-6.4.0.zip
COPY kibana.yml ./config/kibana.yml

@shiveshabhishek
shiveshabhishek / Jenkins.MD
Last active July 16, 2018 16:55
Set-Up Jenkins in Linux Ubuntu

Pre-requisites:

Minikube

Refer here : https://kubernetes.io/docs/tasks/tools/install-minikube/

Helm:

There are two parts to Helm: The Helm client (helm) and the Helm server (Tiller). Both needs to be installed.

Installing the Helm Client (From Script) :
@shiveshabhishek
shiveshabhishek / nerdtree.md
Last active July 14, 2018 08:19
Setup NERDTree in your VIM editor

The NERDTree is a file system explorer for the Vim editor. Using this plugin, users can visually browse complex directory hierarchies, quickly open files for reading or editing, and perform basic file system operations.

To install NERDTree

  1. Go to : https://github.com/scrooloose/nerdtree
  2. Clone the repo git clone https://github.com/scrooloose/nerdtree.git
  3. Create a directory , mkdir ~/.vim
  4. Move the contents of the repo to the new directory created mv /path/to/nerdtree-master/* ~/.vim/
  5. Now, open any file with vim and, first press Esc and then type : :NERDTree and you are done!
  6. To go out of NERDTree, press Esc and type q
@shiveshabhishek
shiveshabhishek / deb_install.md
Last active July 14, 2018 05:26
DEB file install

If you have a .deb file and you want to install it in your Ubuntu Machine, just run the commands:

sudo dpkg -i /path/to/file/

After this, if you get any error like : Errors were encountered while processing: FILE just do

sudo apt-get install -f

The above command tries to fix this broken package by installing the missing dependency.

https://askubuntu.com/questions/966473/how-do-i-install-ndiswrapper-support-for-an-unsupported-rtl8723de-wireless-modul/988778#988778
URL to fix Wifi error in Ubuntu 16.04
https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/Developers/GettingStarted/API%20requests/curl-requests.htm#Sending
Send CRUD requests via curl

Give exec permission to your script:

chmod +x /path/to/script.sh

Now, run your script

/path/to/script

or

./script.sh

@shiveshabhishek
shiveshabhishek / llist.c
Created January 1, 2018 16:26
Linked List implementation in C language
#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
//Creating custom function for buffer clean
void clean_stdin(void)
{
int c;
do{