This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.config(function ($httpProvider) { | |
var logsOutUserOn401 = ['$q', '$location', function ($q, $location) { | |
var success = function (response) { | |
return response; | |
}; | |
var error = function (response) { | |
if (response.status === 401) { | |
//redirect them back to login page | |
$location.path('/s/login'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getHalResource(req, path, callback) { | |
var headers = {}; | |
headers['Content-Type'] = 'application/hal+json'; | |
var options = { | |
method: 'GET', | |
headers: headers | |
} | |
requestResource(req, path, options, callback); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp /opt/index_data/data/solr/searchdp/conf/* /data/solr/searchdp/conf/ | |
cp /opt/index_data/data/solr/searchdp_tablet/conf/* /data/solr/searchdp_tablet/conf/ | |
cp /opt/index_data/data/solr/searchhtl/conf/* /data/solr/searchhtl/conf/ | |
cp /opt/index_data/data/solr/searchns/conf/* /data/solr/searchns/conf/ | |
cp /opt/index_data/data/solr/searchsmp/conf/* /data/solr/searchsmp/conf/ | |
cp /opt/index_data/data/solr/solr.xml /data/solr/solr.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('xyzApp', [ | |
'....' | |
'uiGmapgoogle-maps', | |
'ui.bootstrap', | |
'duScroll', | |
'base64', | |
'angularModalService', | |
'oc.lazyLoad' | |
]) | |
.config(['uiGmapGoogleMapApiProvider', function(uiGmapGoogleMapApiProvider) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :timestamp do | |
file_list.each do |file_name| | |
file_path = "#{RAILS_ROOT}/public/stylesheets/"+file_name | |
file = File.new(file_path) | |
temp_file_path = "#{RAILS_ROOT}/public/stylesheets/"+file_name+"_1" | |
temp_file = File.new(temp_file_path, File::CREAT|File::TRUNC|File::RDWR, 0644) | |
file.readlines.map {|line| | |
line = line.gsub(/\.(ico|gif|jpe?g|png)/) {|s| s+'?'+rand(1000000000000)} | |
temp_file.write line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gemfile entry: | |
gem "libxml-ruby-1.1.4-x86-mswin32-60", "1.1.4", :require=>'libxml', :path=>"vendor/gems/libxml-ruby-1.1.4-x86-mswin32-60", :platform => :mingw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm /usr/local/mysql | |
sudo rm -rf /usr/local/mysql* | |
sudo rm -rf /Library/StartupItems/MySQLCOM | |
sudo rm -rf /Library/PreferencePanes/My* | |
vim /etc/hostconfig and removed the line MYSQLCOM=-YES- | |
rm -rf ~/Library/PreferencePanes/My* | |
sudo rm -rf /Library/Receipts/mysql* | |
sudo rm -rf /Library/Receipts/MySQL* | |
Don't forget this: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.expand_path(File.dirname(__FILE__) + "/lib/capistrano_extension") | |
set :server_authentication, <remote user>@<remote server> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The steps for setting *nix server to connect to SQL Server: | |
1) Install the following binaries: | |
i) MyODBC-unixODBC | |
ii) unixODBC | |
iii) unixODBC-devel | |
2) Download and install FreeTDS (freetds-dev) | |
The ./configure step of FreeTDS is dependent on unixODBC being installed: ./configure -with-unixodbc=/usr/local |
OlderNewer