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 / ec2.md
Last active January 11, 2021 14:24
setting up an ec2 instance and deploying a fullstack react project
  • launch an ec2 instance
  • visit security
  • click on launch wizard 1
  • edit security group and add an inbound rule
  • select type http with port 80 and select source as anywhere (0.0.0.0/0)

CONNECT TO INSTANCE

  • open your computer's terminal
  • locate your instance private key
  • connect using this command sudo ssh -i "privateKey.pem" instance.compute-1.amazonaws.com
@GoodnessEzeokafor
GoodnessEzeokafor / fix.md
Created July 2, 2020 21:17
Fix Green Screen

sudo apt remove gstreamer1.0-vaapi

  • 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
@GoodnessEzeokafor
GoodnessEzeokafor / GETH.md
Last active February 14, 2020 07:20
Starting GETH LIGHT MODE
  • geth --syncmode "light"
  • cd ~/.ethereum
  • geth attach

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 / 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/
  • git rm -r --cached .
  • git add .
  • git commit -m ".gitignore fix"
@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.
@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 / tar.md
Created December 19, 2019 15:18
Installing and extracting a tar gz file on ubuntu 18.04