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 / supervisord_uwsgi.md
Last active March 21, 2018 11:16
Setting up supervisor on django with uswgi
  1. Supervisor File /etc/supervisor/conf.d/prod-scraper.conf
[program:prod-scraper]
directory=/home/nwc/app/production/news-scraper/src/
command=/home/nwc/app/production/venv/bin/uwsgi --ini /home/nwc/app/production/news-scraper/src/crawleradmin.ini
autostart=true
autorestart=true
stderr_logfile=/var/log/prod-scraper.err.log
stdout_logfile=/var/log/prod-scraper.out.log
@paneru-rajan
paneru-rajan / django-migration.md
Last active March 15, 2018 10:08
django resolve migration

To clean migrate again

python manage.py makemigrations appname

python manage.py migrate --run-syncdb

python manage.py migrate --fake appname
@paneru-rajan
paneru-rajan / git-branch.md
Last active December 19, 2017 05:27
[GIT steps] Steps to create branch push and commit #git #branching #steps

Git Steps

  1. Create a issue on gitlab with name according to:
bug-001-login-fix
feat-002-model-add
  1. Create lcoal branch with same name as issue

Follow the followings steps:

@paneru-rajan
paneru-rajan / docker.md
Created December 9, 2017 15:34
[All Container Ip] Ip of all docker container #docker #contianer

#Ip of all docker container

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id
@paneru-rajan
paneru-rajan / centos_nginx_config.md
Last active November 27, 2017 09:40
[Centos nginx setup] Installing and confiuguring nginx sever with phpmyadmin #nginx #centos7 #phpmyadmin

Installation of nginx and Setting Up with phpmyadmin

sudo yum install epel-release -y
sudo yum install nginx

Setting up php-fpm

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