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 / 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  
@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 / 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 / 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 / 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 / setup_server.md
Last active November 17, 2021 15:44
[Nginx, Php, PhpMyAdmin, MariaDB, Postgres, PhpPgAdmin Installation] Installation of nginx, php, phpmyadmin, phppdadmin, mysql and postgres in ubuntu 16.04 #public #loclhost #ubuntu #php #mariadb #installation #phppgadmin #phpmyadmin #postgres #nginx

Installation and Configuration

  1. Update System

    sudo apt install update && sudo apt upgrade -y
  2. Install Nginx

@paneru-rajan
paneru-rajan / dns_resolve.md
Created October 13, 2017 04:44
[DNS Resolution Failure; Hostname lookup failure] When ping is not working on server #DNS #Hostname #ubuntu

#DNS Resolution Failure; Hostname lookup failure

###Here's what was happening to our vi vps at accessworld:

$ ping www.google.com                               
ping: unknown host www.google.com

$ telnet www.google.com.np 80

telnet: could not resolve www.google.com.np/80: Name or service not known

@paneru-rajan
paneru-rajan / asterisk_webrtc.md
Last active November 4, 2023 22:47
[Configure Asterisk with webrtc support] Setting up asterisk for webrtc #asterisk #webrtc #sipml5 #configuration

Setting up Asterisk for webrtc

To set up with sipml5 I had been through the asterisk offiial site and I do recommand you to visit it.

We need to update several config file which are located on /etc/asterisk. Those filename are listed below

  1. modules.conf
  2. extensions.conf
  3. http.conf
  4. pjsip.conf
  5. rtp.conf
@paneru-rajan
paneru-rajan / init_git.md
Created October 23, 2017 09:02
[Initialize Github repo] From existing project #github #init #setup

to create repo on github click

Follow step there

Initilize

git init

Create .gitignore file and update as required.

@paneru-rajan
paneru-rajan / tts.md
Last active October 26, 2017 08:19
[Google Translate] Translate word into Voice #tts #speech #wordtospeech

Api to get voice from word using Google

http://translate.google.com/translate_tts?ie=UTF-8&q=Hello%20World&tl=en-us&client=tw-ob