I have added umask 002 to /etc/profile, but software like git and apache still sets files to 755 instead of 775. Is there a way to force umask 002 for all programs on a machine?
For building apps from source like git or rails I've seen recommendations to install in both /opt or /usr/local.
From what I've read so for, the designated use for both is about the same and it amounts to merely a style issue.
Is there any practical difference? Best practices?
I have the following line of code that I use to update my personal date variable in my projects to today's current date. This line works in Ubuntu's terminal, but the Mac terminal seems to be far behind. Unfortunately, I copied this snippet from some site, so I'm not sure how it exactly works. Suggestions?
grep -ilr --exclude=revar.sh --exclude=README.md "[DATE]" * |
grep -v .git | xargs -i@ sed -i "s/\[DATE\]/${today}/g" @
I type echo $PATH on the command line and get
/opt/local/bin:/opt/local/sbin:/Users/andrew/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/pear/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin
I'm wondering where this is getting set since my .bash_login file is empty.
I'm particularly concerned that, after installing MacPorts, it installed a bunch of junk in /opt. I don't think that directory even exists in a normal Mac OS X install.
Update: Thanks to jtimberman for correcting my echo $PATH statement
Here is my original question at StackOverflow.com
This is the script I wrote
#!/usr/bin/env bash
GP=`/usr/bin/which git`
PWD=`pwd`
echo "PATH IS: ${GP}"
echo "PWD IS: ${PWD}"
and output is
PATH IS:
PWD IS: /Users/user/tmp
So the question is how to get which git output? I'm running it on Mac OS X 10.6.2.
So, my path variable (System-Adv Settings-Env Vars-System-PATH) is set to:
C:\Python26\Lib\site-packages\PyQt4\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Python26\;
C:\Python26\Scripts\;
C:\cygwin\bin;
"C:\PathWithSpaces\What_is_this_bullshit";
"C:\PathWithSpaces 1.5\What_is_this_bullshit_1.5";
"C:\PathWithSpaces (2.0)\What_is_this_bullshit_2.0";
"C:\Program Files (x86)\IronPython 2.6";
"C:\Program Files (x86)\Subversion\bin";
"C:\Program Files (x86)\Git\cmd";
"C:\Program Files (x86)\PuTTY";
"C:\Program Files (x86)\Mercurial";
Z:\droid\android-sdk-windows\tools;
Although, obviously, without the newlines.
Notice the lines containing PathWithSpaces - the first has no spaces, the second has a space, and the third has a space followed by a parenthesis.
Now, notice the output of this batch file:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\>vcvars32.bat
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin>"C:\Program Files (x86
)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
\What_is_this_bullshit_2.0";"C:\Program was unexpected at this time.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin> set "PATH=C:\Pro
gram Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Python26\Lib\site-packages\PyQt4\
bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\
WindowsPowerShell\v1.0\;C:\Python26\;C:\Python26\Scripts\;C:\cygwin\bin;"C:\Path
WithSpaces\What_is_this_bullshit";"C:\PathWithSpaces 1.5\What_is_this_bullshit_1
.5";"C:\PathWithSpaces (2.0)\What_is_this_bullshit_2.0";"C:\Program Files (x86)\
IronPython 2.6";"C:\Program Files (x86)\Subversion\bin";"C:\Program Files (x86)\
Git\cmd";"C:\Program Files (x86)\PuTTY";"C:\Program Files (x86)\Mercurial";Z:\dr
oid\android-sdk-windows\tools;"
or specifically the line:
\What_is_this_bullshit_2.0";"C:\Program was unexpected at this time.
So, what is this bullshit?
Specifically:
Directory in path that is properly
escaped with quotes, but with no
spaces = fine
Directory in path that
is properly escaped with quotes, and
has spaces but no parenthesis = fine
Directory in path that is properly
escaped with quotes, and has spaces
and has a parenthesis = ERROR
Whats going on here? How can I fix this? I'll probably resort to a junction point to let my tools still work as workaround, but if you have any insight into this, please let me know :)
Monodevelop from git in KDE 4.10.2 does not render text in code edit tabs
I tried with xfce and text is rendered ok there.
I tried disabling composition with alt shift f12 and restarting x server but it was no better.
I also tried disabling font softening in monodevelop options and disabling plugins.
I also tried temporarily deleting my KDE profile.
This is dual screen setup on Nvidia with nouveau. OS is slackware64-current.
Scenario:
I open a file, I edit it. After I began editing, the file is modified by another program. Finally, I save the file.
In that case, Vim would provide that helpful warning:
WARNING: The file has been changed since reading it
Do you really want to write to it (y/n)?
But Textmate will overwrite the file silently, which can result in unpleasant data loss (in my case, a de facto revert on Git). How can I prevent that?
I have written a service designed to run under daemontools supervise.
Because the run script refreshes a source code repository:
git pull
pod_server # serve up docs on source code via the web
I desire for the script to restart every 5 minutes.
The manpage for svc says that it applies all options to the service, so I thought this would work in cron:
*/5 * * * * svc -du etc/pod_server
but it does not seem to be refreshing to source code repo with new pushes
Does anyone have experience running Xen dom0 on a more recent kernel than the stock 2.6.18?
What host distro are you running? What release of Xen (or hg/git changeset)? What set of patches are you using on kernel source? (Has anyone got the pvops dom0 stuff working in production or is it better to stick with something like the SUSE patches?
Any other tips and tricks to running a more recent kernel version as dom0 would be helpful.
I wish to use vagrant and possibly VeeWee to construct and maintain virtual machines to automate some testing of servers etc.
I am having problems getting them up and running on windows. Is there any are there any takes-nothing-for-granted setup blog posts or instructions anywhere?
I live in a Microsoft world so all this Ruby/Git is new (and exciting!) to me but it does mean that I could do with everything being spelled out to me in excruciating detail!
Cheers
I need to synchronize about 30GB of git repositories to S3. These repos may contain some very large pack files, on the rough order of 2GB.
I know that S3 has recently added support for large objects, and has new APIs that allow the objects to be uploaded as several parallel chunks. Is there a good command-line tool for Linux that allows me to efficiently synchronize large objects with S3 in a fashion similar to s3sync?
My team is currently looking into hosting for RoR apps, and we're considering RailsPlayground, Linode and SliceHost.
We haven't found anyone recommending rails playground, and web of trust seems to caution against it - http://www.mywot.com/en/scorecard/railsplayground.com
I like the fact that they give you a sourcerepo account for free to host and track git repos, etc.
The Questions:
Is there any reason not to go with RailsPlayground?
Have you had any negative experiences with RailsPlayground? (Feel free to share positives as well)
Thanks!
I have a few production Fedora and Debian webservers that host our sites as well as user shell accounts (used for git vcs work, some screen+irssi sessions, etc).
Occasionally a new kernel update will come down the pipeline in yum/apt-get, and I was wondering if most of the fixes are severe enough to warrant a reboot, or if I can apply the fixes sans reboot.
Our main development server currently has 213 days of uptime, and I wasn't sure if it was insecure to run such an older kernel.
I would like to also monitor non-crucial services with nagios like for example our GitLab-server or phpMyAdmin instance. Is there any way to just create warnings instead of circuital errors for some services?
At the moment I'm using the following:
define service {
host_name localhost
use generic-service
service_description HTTP GitLab
check_command check_www!git.example.com!'/users/sign_in'
}
define command {
command_name check_www
command_line /usr/lib/nagios/plugins/check_http -H '$ARG1$' -I '$HOSTADDRESS$' -e 'HTTP/1.1 200 OK' -u '$ARG2$'
}
I'm searching for something like:
tcpdump -p PID # But tcpdump does not know the PID
or
lsof -i --continuous # But lsof just runs and exits, no «live logging»
to log which connections an application opens.
In my case, I want to find out to which port git connects when committing. This happens in a fraction of a second, so I cannot use lsof. If there is a lot of traffic, filtering by PID or process name would be useful.
Address ..*.* maps to ec2---*-*.compute-1.amazonaws.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
I keep getting this when I try to log-in to my remote server. I have it set for key authentication and when this error comes through, I still have to push through the password. I want to use this for automated Git pulls, and I can't have this kind of error message. anybody know what is going on here and how to fix it?
Varnish Security main.vcl contains
# clear all internal variables
include "/etc/varnish/security/build/variables.vcl";
and
# fallthrough: clear all internal variables on security.vcl_recv exit
include "/etc/varnish/security/build/variables.vcl";
but /etc/varnish/security/build/variables.vcl is not included into the git.
I commented it out, and it is working fine but where can I get that file?
Hi I'm trying to commit only certain files with hg.
Because of of hg having auto-add whenever I try to commit a change it wants to commit all files. But I don't want that because certain files are not "ready" yet.
There is hg commit -I thefile.foo, but this is only for one file.
The better way for me would be if I can turn off auto-add as in git. Is this possible?
thx
I want my Windows XP profile directory (C:\Documents and Settings\) to be versioned, like with Vista Shadow Copies.
What's the best way to accomplish this? Would putting the whole thing under a DVCS like Bazaar or Git be a good way to go? Which one would be best?
For development purposes I'm using www-data (on an ubuntu 11.10 server) to ssh in and fire git commands and basic stuff against the webroot.
I don't have things like command history, coloring, etc like I do when I ssh in as any other user, so I'm curious how to get this working.
I'm assuming I need a `.bashrc' file, but I'm not sure what to include or (more importantly since I could just copy the one from another user) where it goes.
I use emacs org-mode to manage work items. Every week, I manually remove all Done items older than 2 weeks. Is there an easy way to perform this automatically?
EDIT:
I am currently trying to add a new custom command like this:
(setq org-agenda-custom-commands
'(("P" "Show old entries" todo "DONE"
(
(org-agenda-files '("c:/git/org/tickets.org"))
(tags "CLOSED<=\"-2w\"")
)
))
)
The filter on the CLOSED timestamp is not working correctly.
I've noticed in git and various scripts, there is a default user email address. This seems to default to user [email protected]. Is there a way for me to set this to my ral email address?
Linux.com recently published a Q&A on Oracle's Unbreakable Enterprise Kernel for Linux. The interview highlights the key benefits of Oracle's new offering and also offers an insight into our long and ongoing commitment to advancing Linux.
Here are some excerpts from the Q&A:
All enhancements made in the Unbreakable Enterprise Kernel are open source and have been made available to the Linux community. Oracle Linux, including both the kernels, is free to download, use and distribute. You can download the Unbreakable Enterprise Kernel at http://public-yum.oracle.com
Source code is available, including a public git repository with full changelog and individual patches and checkins for convenience.
Read the entire interview.
Visit the Oracle Linux Homepage.