If you’re using a Devise gem and the latest Omniauth Oauth2(1.4.0) for authentication chances are you may encounter an errors below:
How to display environment or system variables in your terminal ?For Linux: $ printenv — Print all or part of environment.$ env — Print all exported environment or run a program in a modified environment.
[sourcecode language=”bash”]## Set or view target api url $ cf api https://api.ng.bluemix.net
## Log user in$ cf login -u armando@gmail.com$ cf login -u armando@gmail.com -s rails-space$ cf login -u armando@gmail.com…
How to add and commit a add & commit You can propose changes (add it to the Index) usinggit add {filename} or git add .git commit -am “Commit message” Now the file is committed to the HEAD, but not in your remote repository yet.
curl -sS https://getcomposer.org/installer | sudo php — — install-dir=/usr/local/bin — filename=composer
[sourcecode language=”bash”]$ echo $PATH | sed ‘s/\:/\n/g’ | sortOutput:/bin/home/artheman/.nvm/versions/node/v6.2.2/bin/home/artheman/.pyenv/bin/home/artheman/.pyenv/shims/home/artheman/.rbenv/bin/home/artheman/.rbenv/plugins/ruby-build/bin…
Sample API workflow.
Step 1)[sourcecode language=”bash”]curl -k -X GET “https://mysampleapp.com/api/info?id=3727&apiKey=48254c477c&user=johndoe@mysampleapp.com" \-H “Content-Type: application/json” \-H “Authorization: Basic…
[sourcecode language=”bash”]# global parametersglobal # log on syslog of 127.0.0.1 udp port 514 (default) using local0 facility. log 127.0.0.1 local0 # maximum number of concurrent connections maxconn 4096 # drop privileges…
Problem:
I cannot install a semantic-ui using npm. When I encounter an error like this usually the solution is using a sudo command. Please don’t ever use npm with sudo…
[sourcecode language=”bash”]### First, check if there is enabled curl.$ php info | grep -i curl
### If no result then install the php curl library$ sudo apt-get install php5-curl
Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
More info at http://supervisord.org/
Recently I encountered this mongoose error CastError: Cast to ObjectId failed for value \”583fe2c488cf652d4c6b45d1\” at path \”_id\”…
If ever you’ve encounter an error that says “TypeError: hex is not a function at Function.from (native) at Function.from (native) at new ObjectID…
1. git checkout -b {branchName}2. git commit -am ‘your message here’3. git push origin {branchName}Example:[code language=”bash”]# Create a local…
[sourcecode language=”bash”]$ npm install babel-eslint — save-dev $ npm install gulp — save$ npm install gulp-eslint — save[/sourcecode]gulpfile.js will contains like this:[sourcecode language=”javascript”]var gulp = require(‘gulp’);var eslint =…
How to preview video or image thumbnails in Ubuntu ?$ sudo apt-get install ffmpegthumbnailerIt works also in Ubuntu Mate
### To show Container information like IP adress.docker inspect {containerId/name}
### To show log of a Container. docker logs {containerId/name}
Problem:[sourcecode language=”bash”]$ gem install sassERROR: Could not find a valid gem ‘sass’ (>= 0), here is why: Unable to download data from…
Problem: error: pathspec ‘develop’ did not match any file(s) known to git.$ git clone blah..blah..blah$ git branch* masterFrom master branch you switch to develop$ git checkout developerror: pathspec…
Read more https://engineering.meteor.com/mongodb-queries-dont-always-return-all-matching-documents-654b6594a827#.e00qy921l
Download the binary version at extract it to C:\tools directory.
[sourcecode language=”bash”]C:\tools>uru_rt admin install — -> Installing uru into C:\tools
You can configure an individual repo to use a specific user / email address which overrides the global configuration. From the root of the repo, run[sourcecode language=”bash”]$ git config user.name “Arman Ortega”$ git config user.email your@email.com
Since Bluemix is based on Cloud Foundry this guide will also work for any other provider that uses Cloud Foundry like Pivotal WebServices, anynines and so on.We’re going to install travis through gem install command.You will also need to enter your Cloud…