Skip to content

Instantly share code, notes, and snippets.

View paneru-rajan's full-sized avatar
🇳🇵

Rajan Paneru paneru-rajan

🇳🇵
View GitHub Profile
@paneru-rajan
paneru-rajan / asterisk_ubuntu.md
Last active April 5, 2018 06:05
[Asterisk installation in Ubuntu] Building Asterisk in ubuntu #asterisk #ubuntu #build

Asterisk Installation

Exhaustive steps of Installation

A step by step process to install Asterisk.

I have tested on Ubuntu 16.04, nevertheless, it will work on another distro with few changes.

Update and Upgrade the system

@paneru-rajan
paneru-rajan / README-Template.md
Last active July 29, 2018 14:02 — forked from PurpleBooth/README-Template.md
[Readme Template] A template to make good README #readme #template #git

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@paneru-rajan
paneru-rajan / pip_freeze.md
Last active January 30, 2018 16:12
[Pip Freeze downloaded modules]python freeze downloaded packages only #python #pip #freeze

Pip freeze only downloaded packages

It omits the dependent packages, and can be used to get clean list of downloaded python modules to add in requirement.txt file

comm -12 <(pip list --format=freeze --not-required) <(pip freeze) > requirements.txt
@paneru-rajan
paneru-rajan / vmware_fix.md
Last active October 9, 2017 07:19
[VMware Centos Kernel ]VMware Workstation for Linux v12.5.7-5813279 don't install on RedHat Enterprise Linux 7.4 Beta1 ( kernel: 3.10.0-663.el7 ) #vmware #workstation #centos7

It looks like Red Hat linux folks have made an incompatible change in the kernel. I've attached a patch to this post which should fix the issue. To apply the patch, you'll need to:

  • Quit Workstation.
  • Back up /usr/lib/vmware/modules/source/vmnet.tar to a safe place.
  • Unpack that tarfile.
  • Download the patch attached to this post (VMware-Workstation-12.5.7-vmnet-RHEL74.patch).
  • Apply the patch to the contents of the tarfile.
  • Repack the tarfile
  • Put the modified tarfile back in place at /usr/lib/vmware/modules/source/vmnet.tar .
@paneru-rajan
paneru-rajan / Cleaning_the_repo.md
Last active October 9, 2017 07:20
[Reduce Repo size]Gitlab reduce size of the repo by deleting old tracked files #git #clean #repo #gitlab
$cd news-scrapper.git  
$wget http://repo1.maven.org/maven2/com/madgag/bfg/1.12.15/bfg-1.12.15.jar  
$mv bfg-1.12.15.jar bfg.jar  
$java -jar bfg.jar --delete-files *.sqlite3 && git reflog expire --expire=now --all && git gc --prune=now --aggressive  
$java -jar bfg.jar --delete-files *.sql && git reflog expire --expire=now --all && git gc --prune=now --aggressive  
$java -jar bfg.jar --delete-files *.pyc && git reflog expire --expire=now --all && git gc --prune=now --aggressive  
$java -jar bfg.jar --delete-folders bin && git reflog expire --expire=now --all && git gc --prune=now --aggressive  
$java -jar bfg.jar --delete-folders lib && git reflog expire --expire=now --all && git gc --prune=now --aggressive