I have a simple very tiny web app, and wanted to make my life a bit easier by having a very simplistic deployment script, that does the following:   Pull updates from git Run composer Change owner of all files   The script basically works fine and looks like this:  #!/bin/bash echo "Updating repository ..."; sudo git pull;  echo "Installing composer dependencies from lockfile ..."; composer install;  echo "Changing owner to www-data:www-data ..."; sudo chown -R www-data:www-data .;  echo "Deployment DONE!";   However, as you can see, I have two commands run as sudo in this script. Nameply the git pull and the chown.  My problem is as follows: I am aware that there is a timeout for how often the system asks for my password when running commands with sudo. The problem is, that, even though I am well within the timeout, the script always asks for the password on the second sudo (chown) command.  Could someone please enlighten me, why that may be the case?
To do a patch manually I must type this command   sudo ./playback_delete_data_patch.sh 09_delete_old_data_p.sql     There is a space just before the 09:   sudo ./playback_delete_data_patch.sh [space] 09_delete_old_data_p.sql   How can I run this inside a script?  There are also several other commands but this one is giving trouble.
I'm missing all the usual processing tools in the Vector menu in QGIS 2.16 (eg vector overlay, analysis, etc). They do appear in the processing toolbox but there's no sign of them in the Vector menu. Has anyone come across this issue? Recommended books for advanced undergraduate electrodynamics What books are recommended for an advanced undergraduate course in electrodynamics? What's the best way of checking if an object property in JavaScript is undefined? I think it would be super if, in my LaTeX editor, I could click on the name of package...  \usepackage{blob}   ... and the corresponding style file, blob.sty, would be opened.  Do any LaTeX editors have this feature? I mainly use Aquamacs/AucTeX myself, but am interested in other editors too. I reckon it would be mildly challenging to implement, because blob.sty might be    in the current working directory,  in the system texmf directory, or  in the user's texmf directory. How come Dropbox gets an icon in Finder sidebar? How come Dropbox gets a non-generic icon in Finder's sidebar, when other directories like Google Drive and Sites (native in OS X before Lion) all have the same generic one?    How can I customise the icons used by the folders in the sidebar? OS X used to show individual icons of all folders there — not any longer. Subscript labels in QGIS legends Is it possible to include subscript and superscript text in the title of a legend item in QGIS ?  I have tried using &lt;sub&gt;some text&lt;/sub&gt; but this just appears in the title with no change to the contents.  I am looking to have layer titles such as   Annual NO2 concentration (μg/m3)  The superscript is not a big issue, as I can use the character map to get a 3, but I don't know how to get the subscript. Hopefully I'm using the right terminology. I'd basically like to know how specific of a location I can make a Pokemon Lure. An Address will not cut it, would need to be like 5ft of my phone or something for it to be useful.  I do not currently play the game and am only interested in this to attract new customers similar to,  but I wouldn't be in a storefront with an address. Why does $\lim\limits_{t\to-\infty}te^t=0$? Intuitively, $\lim\limits_{t\to -\infty}te^t=0$, since $e^t\to 0$ much faster than $t\to -\infty$.   Is there a way to more rigorously compute this? Writing it as $e^t/(1/t)$ seems resistant to l'Hopital's rule. limit of integral $n\int_{0}^{1} x^n f(x) \text{d}x$ as $n\rightarrow \infty$ No surname on passport and applying for Japanese Visa Concatenate multiple files with two blank lines as delimiter? I'm trying to join Markdown files with two newlines between each file.   I've tried using the following command:  paste -sd '\n\n' file1.md file2.md   This joins the files with a newline, but not two newlines, as I need.   What command can I use to join an arbitrary number of files with two \n characters between each join? How can I improve viewport performance when using Dyntopo? I'm doing a Blendercookie course on how to sculpt a Scifi weapon with dyntopo. The fact is that when some piece reach a certain level of compleiity (about 1.1 million tris) the systems starts to lags too much and is so frustrating.  I've tried the several options:   Disable double sided lighting Enable VBO    I've so also reduced the topology of hidden faces. But that´s how far I've reached.  I'm using a late Imac Intel I5 Nvidia GPU GTX 680mx  any tips out there? How to recover a deleted file from /data partition? I factory reset my rooted Android M phone but now I realize that there was a file in the /data directory which I need.  Is it possible to create an image (.img or something similar) of the /data partition so that I could run some recovery software for ext4 on that image? I have a little knowledge about ADB. Cold fusion is being mentioned a lot lately because of some new setup that apparently works. This is an unverified claim.  See for example:         ( of that last link in the Wayback Machine, given frequent  from that page.)   While we should give the scientific community time to evaluate the set up and eventually replicate the results, there is undoubtedly some skepticism that cold fusion would work at all, because the claim is quite extraordinary.  In the past, after Fleischmann and Pons announced their cold fusion results, in perfectly good faith, they were proven wrong by subsequent experiments.  What are the experimental realities that make Fleischmann and Pons style cold fusions experiments easy to get wrong?  Would the same risks apply to this new set up? In Photoshop I've taken Magic Wand as far as I can, I think. Now I'm left with this grayish edge around the coffee saucer. How do I remove it? I've tried altering tolerance in Magic Wand but don't seem able to get it. Any suggestions please? Disable ssh password authentication by user Is it possible to enable ssh password authentication for one user on a system and disable it for an other.  If you add  ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no   to /etc/ssh/sshd_config you disable it for all users  Adding it to ~/.ssh/config doesn't seem to work Removing OS from Dual Boot computer, and recovering HD space. How can I disable the 2nd hard drive in my 27" iMac? Difference between modelAttribute and commandName attributes in form tag in spring? How can we prove that $N_G(H)=H$ implies $N_{f(G)}(f(H))=f(H)$