Delete the most recent commit:
git reset --hard HEAD~1
Delete the most recent commit, without destroying the work you've done:
git reset --soft HEAD~1
var express = require('express'); | |
var fs = require('fs'); | |
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var app = express(); | |
// Params | |
var min = 6000; | |
var max = 10000; | |
var wordCount = 0; |
curl -XPUT localhost:9200/_cluster/settings -d '{ | |
"transient" : { | |
"cluster.routing.allocation.disk.watermark.low" : "95%", | |
"cluster.routing.allocation.disk.watermark.high" : "50gb", | |
"cluster.info.update.interval" : "1m" | |
} | |
}' |
sudo lsof -iTCP -sTCP:LISTEN -n -P |
rhc set-env NODE_ENV=development -a alfred |
'use strict'; | |
angular.module('HireStack').directive('chartLines', ['$location', function($location){ | |
// Runs dursuing compile | |
return { | |
// name: '', | |
// priority: 1, | |
// terminal: true, | |
// scope: {}, // {} = isolate, true = child, false/undefined = no change | |
// controller: function($scope, $element, $attrs, $transclude) {}, |
git push openshift HEAD |
1 | |
$ sudo gem install cocoapods | |
And afterwards: | |
1 | |
$ pod setup | |
Once Cocoapods is installed, navigate to your project library (still in the terminal) and enter this line: | |
1 | |
$ pod init | |
This will integrate Cocoapods into your project, and create, among other things, a file called Podfile which will be used to manage your project’s dependencies. | |
For more information about Cocoapods and the installation process, you can refer to the Cocoapods homepage, or this tutorial. |
Delete the most recent commit:
git reset --hard HEAD~1
Delete the most recent commit, without destroying the work you've done:
git reset --soft HEAD~1
Hot Deployment | |
Introduction | |
When the git push command is run to upload code modifications, OpenShift Online stops, builds, deploys, and restarts an application. This entire process takes time to complete and is unnecessary for many types of code changes. With hot deployment the changes to application code are applied without restarting the application cartridge, resulting in increased deployment speed and minimized application downtime. | |
OpenShift Online provides support for hot deployment through a hot_deploy marker file. If the marker is present, supported application cartridges automatically hot deploy when the git push command is executed. | |
Enabling and Disabling Hot Deployment | |
WINDOWS | |
Enable hot deployment by creating the hot_deploy marker file in the application’s root directory with the following command: |
http://cloudhostingsource.com/setup-ssl-certificate-openshift/ |