Skip to content

Instantly share code, notes, and snippets.

View abhi-nav's full-sized avatar
🎯
Focusing

Abhinav abhi-nav

🎯
Focusing
  • Nepal
View GitHub Profile
@abhi-nav
abhi-nav / README.md
Created November 15, 2018 08:22
Using apt-cache for the package

What is apt-cache ?

The apt-cache command line tool is used for searching apt software package cache. In simple words, this tool is used to search software packages, collects information of packages and also used to search for what available packages are ready for installation on Debian or Ubuntu based systems.

How Do I List All Available Packages?

apt-cache pkgnames

How do find packagename and description ??

apt-cache pkgnames {keyword}

search pkgnames will display package that starts with given keyword

apt-cache search {packageName}

@abhi-nav
abhi-nav / filebeat.yml
Created November 15, 2018 08:00
Multiple File harvesting using Filebeat and logstash in single Instance
filebeat.prospectors:
- type: log
paths:
- /path/to/log1
tags: ["log1"]
- type: log
paths:
- /path/to/custom_geo_json_log
tags: ["custom-geo-json-log"]
output.logstash: #sending it to logstash instance
@abhi-nav
abhi-nav / README.md
Last active August 14, 2018 09:23
Multi Thread Job Handler in Laravel or any other application

Installation guide on MAC

Can be configured in any OS similary

Install Supervisor Package with brew install supervisor or see Installation Guide for any other OS.

Once installed this will create supervisord.ini file in /usr/local/etc which is a config file

Rename this file to supervisord.conf so that we can start supervisor with command supervisorctl -c /usr/local/etc/supervisord.conf (by default supervisor creates supervisord.ini which throws error should be conf file)

@abhi-nav
abhi-nav / README.md
Created May 1, 2017 09:50 — forked from jonathantneal/README.md
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@abhi-nav
abhi-nav / ApacheHTTPSConfig.md
Created May 1, 2017 08:58 — forked from nrollr/ApacheHTTPSConfig.md
Enable SSL in Apache for 'localhost' (OSX, El Capitan)

Enable SSL in Apache (OSX)

The following will guide you through the process of enabling SSL on a Apache webserver

  • The instructions have been verified with OSX El Capitan (10.11.2) running Apache 2.4.16
  • The instructions assume you already have a basic Apache configuration enabled on OSX, if this is not the case feel free to consult Gist: "Enable Apache HTTP server (OSX)"

Apache SSL Configuration

Create a directory within /etc/apache2/ using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys: