remote-server

Chef-client dying mid run

无人久伴 提交于 2019-12-10 23:38:47
问题 We recently started having trouble with chef-client dying in the middle of a run after taking a lot more time stuck on various parts of the run-list that normally proceeded much quicker. I've been on my home wifi and my colleague has been on the work wifi, which has been having some connectivity problems of its own. If your ssh connection gets interrupted to a machine while chef-client is running, does that crash the run in seemingly inexplicable ways? I am using PutTY to connect from my Win7

Typeahead with bloodhound remote suggestions

て烟熏妆下的殇ゞ 提交于 2019-12-10 23:37:33
问题 Here is my code: tagsProcessor(){ const suggestions = [{value: 'string1'}, {value: 'string2'}, {value: 'string3'}, {value: 'string4'}, {value: 'string5'}] var bloodhoundSuggestions = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'), queryTokenizer: Bloodhound.tokenizers.whitespace, sufficient: 3, local: suggestions, remote: { url: 'http://localhost:3001/api/suggestions', } }); const $tagsInput = $('#tagsInput') $tagsInput.typeahead({ hint: true, highlight: true,

Change version php on OVH

爱⌒轻易说出口 提交于 2019-12-10 18:45:45
问题 My problem is that i need to change the version of php from 4.4.9 to 5.5 on an remote server on http://www.ovh.com/ But i can't seem to be able to achieve this goal! I have tried the recommended steps http://www.ovh.com/fr/g1207.configurer-php-web And included the following .ovhconfig file: app.engine=php app.engine.version=5.5 http.firewall=none environment=production But when i check by phpinfo() or the command php -v , it says that i am using the php version 4.4.9 ![enter image description

Mock a Remote Host in Python

大兔子大兔子 提交于 2019-12-10 18:20:47
问题 I am writing some functions, using paramiko, to execute commands and create files on a remote host. I would like to write some unit tests for them, but I don't know what would be the simplest way to achieve this? This is what I envisage as being an example outline of my code: import os import paramiko import pytest def my_function(hostname, relpath='.', **kwargs): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(hostname, **kwargs) sftp = ssh

git remote does not appear to be a git repository (dokku)

半城伤御伤魂 提交于 2019-12-10 18:05:28
问题 I just created a digital ocean server with ubuntu 14.04 x64. When created, I set ssh access, and downloaded dokku (needed to run command twice, but it's a common issue) Command: wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash Then, locally I tried to connect my local repo and push my code into my new server: $ git remote set-url amsterdam git@**.**.**.** $ git push amsterdam master fatal: 'git@**.**.**.**' does not appear to be a git repository

Excel/VBA - Detect if server is reachable

夙愿已清 提交于 2019-12-10 13:21:58
问题 At my work place, different computers are in different subnets, and if the PCs are in the same subnet as the Samba server, I can reach the file server by going to \\myserv\MyFolder , but for the PC is in a different subnet, the only way for me to reach the server is by using IP (i.e., \\1.2.3.4\MyFolder) . I am just wondering in VBA, if there is any way I can say: if I can find the server using \\myserv , then use myserv , else use 1.2.3.4 ? Unfortunately I can not tweak the network at all

Capistrano could not locate Gemfile error on application deployment

倖福魔咒の 提交于 2019-12-10 13:03:42
问题 I'm trying to deploy my Rails application to production server and I decided to deploy it to DigitalOcean using this guide + RVM. To deploy I use following command: cap production deploy However, it fails at some part requiring gemfile. Here's the log of failed deployment: DEBUG[323dfd0e] Command: cd /home/deploy/zwiadowcy/releases/20140628164657 && ~/.rvm/bin/rvm default do bundle install --binstubs /home/deploy/zwiadowcy/shared/bin --path /home/deploy/zwiadowcy/shared/bundle --without

Get service status from remote server using powershell

天大地大妈咪最大 提交于 2019-12-09 06:07:32
问题 How to get the service status for a remote computer that needs a user name and password to log in? I am trying to find a solution using the following code: $serviceStatus = get-service -ComputerName $machineName -Name $service The default syntax for the get-service command is: Parameter Set: Default Get-Service [[-Name] <String[]> ] [-ComputerName <String[]> ] [-DependentServices] [-Exclude <String[]> ] [-Include <String[]> ] [-RequiredServices] [ <CommonParameters>] Parameter Set:

Twitter typeahead.js remote and search on client

家住魔仙堡 提交于 2019-12-08 06:17:35
问题 As of my understanding typeahead.js got three ways of fetching data. Local: hardcoded data Prefetch: Load a local json file, or by URL Remote: Send a query to the backend which responds with matching results I want to fetch all data from the backend and then process it on the client. The data my server responds with got the following structure: [{id:2, courseCode:IDA530, courseName:Software Testing, university:Lund University}, {id:1, courseCode:IDA321, courseName:Computer Security,

PostgreSQL export result as CSV from remote server

假如想象 提交于 2019-12-08 05:06:30
问题 I have read all other solutions and none adapts to my needs, I do not use Java, I do not have super user rights and I do not have API's installed in my server. I have select rights on a remote PostgreSQL server and I want to run a query in it remotely and export its results into a .csv file in my local server. Once I manage to establish the connection to the server I first have to define the DB, then the schema and then the table, fact that makes the following lines of code not work: \copy