Skip to content

Instantly share code, notes, and snippets.

View GoodnessEzeokafor's full-sized avatar
🏠
Working from home

Ezeokafor GoodnessEzeokafor

🏠
Working from home
View GitHub Profile
@GoodnessEzeokafor
GoodnessEzeokafor / deployingDjangoAppOnHeroku.md
Last active August 21, 2018 10:26
Deploying Your Django App On Heroku

#Install The Following Packages Django==2.0.7 # django dj-database-url==0.5.0 # for your database whitenoise==4.0 # to manage your static files on heroku gunicorn==19.9.0 # to deploy your app on heroku django-heroku==0.3.1

#Include the following on your .gitignore file *.pyc

## Truffle Integration process exited prematurely due to signal 'SIGINT'. (node:8450) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 2 watcher-stopped listeners added. Use emitter.setMaxListeners() to increase limit
* rm -rf ~/.config/Ganache
* ./ganache-2.1.2-linux-x86_64.AppImage
@GoodnessEzeokafor
GoodnessEzeokafor / tar.md
Created December 19, 2019 15:18
Installing and extracting a tar gz file on ubuntu 18.04
@GoodnessEzeokafor
GoodnessEzeokafor / update.md
Created December 30, 2019 18:54
Renaming Apps from the CLI on Heroku
  • git remote rm heroku
  • heroku git:remote -a newname
@GoodnessEzeokafor
GoodnessEzeokafor / Ganache.md
Created January 4, 2020 10:21
Installing Ganache on ubuntu
  • Ubuntu, open a browser and navigate to https://github.com/trufflesuite/ganache/releases
  • Download the latest Linux release which will be the *.AppImage file.For example ganache-1.3.0-x86_64.AppImage.
  • Once the download is complete, open a new terminal and change into the directory with the *.AppImage file.
  • Use chmod to make the file executable: chmod a+x ganache-1.3.0-x86_64.AppImage
  • You will be prompted if you want to integrate the application into your system. For convenience, click Yes. This will allow you to launch Ganache later from Ubuntu Application menu
  • Ganache will launch and prompt if you want to enable Google Analytics tracking to help the developers improve the software. Toggle this off if you wish, then click Continue.
  • git rm -r --cached .
  • git add .
  • git commit -m ".gitignore fix"
@GoodnessEzeokafor
GoodnessEzeokafor / permission.md
Last active October 12, 2020 10:29
Adding Permission to a folder in python
  • $ sudo groupadd varwwwusers
  • $ sudo adduser www-data varwwwusers
  • $ sudo chgrp -R varwwwusers /var/www/media/
  • $ sudo chmod -R 770 /var/www/media/

AWS CREDENTIAL

  • AWS_ACCESS_KEY_ID = ''
  • AWS_SECRET_ACCESS_KEY = ''
  • AWS_STORAGE_BUCKET_NAME = ''
  • AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE_BUCKET_NAME
  • AWS_S3_OBJECT_PARAMETERS = { 'CacheControl': 'max-age=86400', }
  • AWS_LOCATION = 'static'
@GoodnessEzeokafor
GoodnessEzeokafor / GETH.md
Last active February 14, 2020 07:20
Starting GETH LIGHT MODE
  • geth --syncmode "light"
  • cd ~/.ethereum
  • geth attach
  • Create a droplet
  • create a ssh key
  • copy the .pub and paste it
  • ssh into the project with the ip server address provided (ssh root@ip_serve)
  • after logging in create a user with root priveleges
    • adduser username

    • usermod -aG sudo username
  • sudo apt update
  • sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx curl
  • log into postgresql