Posts

Showing posts from May, 2019

Installing a gem from a private GitHub repo (Heroku)

Installing a gem from a private GitHub repo (Heroku) I have a private repository on Github that I want to use. I deploy my app to Heroku. How can I specify a private repository as the source on my gemfile? I imagine it wouldn't be enough to simply saygem "mygem", :git=>"my github address" As per suggestion from Heroku tech support, the easiest way to do this is by putting the username and password into the URL, as in Basic HTTP Auth, e.g.gem "my_gem", :git => 'https://my_username:my_password@github.com/my_github_account/my_repo.git', :ref => 'revision_no'
On Heroku: Get your OAuth Token from GitHub To authenticate Bundler to GitHub, you will need an OAuth token. You can follow this guide to create a new one. Setting up your credentials To set up your credentials, use bundle-config: Then, add your GitHub credentials to Heroku: Then run the command :-heroku config:add BUNDLE_GITHUB__COM=github_username:github_password Install you…

How to migrate your Heroku Postgres database to Amazon RDS

How to migrate your Heroku Postgres database to Amazon RDS After created RDS database Add RDS certificate to your application:$ cd your_app
$ mkdir -p config

$ curl https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem > ./config/rds-combined-ca-bundle.pem

$ git add config/rds-combined-ca-bundle.pem

$ git commit -m "Add RDS certificate to app files"

$ git push heroku master
Dump your Heroku database locally This will take your application offline. $ cd your_app

$ heroku maintenance:on


$ heroku pg:backups capture


$ curl -o /tmp/latest.dump `heroku pg:backups public-url`

Switch the Heroku app to RDS heroku addons:destroy heroku-postgresql

heroku config:add DATABASE_URL='postgres://rohit:rohit00$$@blogger.cvss58cdh1jm.us-east-1.rds.amazonaws.com:5432/blogger?sslca=config/rds-combined-ca-bundle.pem&sslmode=require&encrypt=true'

Syntax;heroku config:add DATABASE_URL='postgres://myrdsusername:myrdspassword@my-instance.bdfsg3dsfg.ap-southeast-2.rds.amazona…

Errno::EIOErrno::EIErrorInput/output error - read

Errno::EIOErrno::EIErrorInput/output error - read Sometimes, we are getting error from Resque server  :-ps -ef | grep resque See also, https://stackoverflow.com/questions/23820469/errnoeio-input-output-error-stdout

Installing rvm 2.2.0 in Ubuntu.

Installing rvm 2.2.0 in Ubuntu. We can easily install rvm in ubuntucurl -sSL https://rvm.io/pkuczynski.asc | gpg --import -        curl -sSL https://rvm.io/mpapis.asc | gpg --import -Please follow the link below:-https://github.com/rvm/rvm/issues/4533

An error occurred while installing rmagick (2.16.0), and Bundler cannot continue.

An error occurred while installing rmagick (2.16.0), and Bundler cannot continue. Sometimes, we are getting error at the time of installing rmagick.sudo apt-get install libmagickwand-dev imagemagick If you are getting rmagick error then run below aptitude command...sudo aptitude install libmagickwand-dev imagemagickthen, install the rmagick (now, problem in solved.)Orbundle Please follow the link below:-http://musingsonsoftware.blogspot.com/2014/02/ubuntu-apt-get-package-has-no.html

https://gist.github.com/galulex/2304847 

https://www.youtube.com/watch?v=hQYsaGvPJbQ

E: Unable to correct problems, you have held broken packages.

E: Unable to correct problems, you have held broken packages.Sometimes, we are getting broken package error. Please can easily solve this problem.

Example:- 
sudo apt-get install skype
If you got error like- 
E: Unable to correct problems, you have held broken packages.
Solution:-       We just need to use aptitude command.
sudo aptitude install skype
Now, problem in solved.
Please follow the link below:- https://www.youtube.com/watch?v=hQYsaGvPJbQhttp://musingsonsoftware.blogspot.com/2014/02/ubuntu-apt-get-package-has-no.html

Fix Ubuntu 18.4 Touchpad Not Working Properly

Fix Ubuntu 18.4 Touchpad Not Working ProperlyUbuntu 18.4 LTS (Bionic Beaver) has been released with Gnome Desktop (until 16.4 LTS uses Unity) and many cool features making it best version of Ubuntu ever released. Although Ubuntu 18.4 is great it comes with little bugs for touhpad and the problem is that, the touchpad cursor movement is not smooth and jumps around. I am using Dell Inspiron 15 3000 Series laptop that uses Synaptics touchpad. Many other laptops that use Synaptics will also have this touchpad problem, so here is how to fix that.

Ubuntu 18.4 comes with libinput touchpad driver by default and the OS is missing Synaptics touchpad driver.

Please follow the link below:-
https://sangams.com.np/fix-ubuntu-18-4-touchpad-not-working-properly/