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 / 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{

Give exec permission to your script:

chmod +x /path/to/script.sh

Now, run your script

/path/to/script

or

./script.sh

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
@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.

@shiveshabhishek
shiveshabhishek / nerdtree.md
Last active July 5, 2024 11:23
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 / 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 / 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 / Useful commands.md
Created October 28, 2018 12:16 — forked from chandankumar4/Useful commands.md
Minikube and Docker

Install minikube and Docker

sudo apt-get install docker.io
sudo usermod -a -G docker $USER
reboot

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
@shiveshabhishek
shiveshabhishek / gist:cb494eca8bca0b6772c7de78002b3b10
Created November 17, 2018 17:09
Wifi error fix for Ubuntu 18.04
http://ubuntuhandbook.org/index.php/2018/08/no-wifi-adapter-found-hp-laptops-ubuntu-18-04/
@shiveshabhishek
shiveshabhishek / k8s.md
Last active December 29, 2019 06:48
Kubernetes Useful Commands
1. Set-up desired namespace as default if you want to work with it for longer period :

Edit your bashrc and add this lines:

  i. vi ~/.bashrc
 ii. Paste this and save:
     alias ns='kubectl config set-context $(kubectl config current-context) --namespace' 
iii. Restart terminal and use:
 ns YOURNAMESPACE