Displaying 20 results from an estimated 5000 matches similar to: "awk awk"
2012 Aug 15
5
stupid bash question
the relevant snippet is...
NAME="*.mov"
cd $IN
if test -n "$(find . -maxdepth 1 -name $NAME -print -quit)"
and if there is one file in this directory - ie test.mov, this works fine
but if there are two (or more) files in this directory - test.mov, test2.mov
then I get an error...
find: paths must precede expression
So my code is evidently wrong. I just want a test for 1 or
2011 Jul 12
3
puppetrun/puppet kick
Can''t seem to make it work
puppet 2.6.8 (client/server)
# puppet kick -f ubuntu4.ttinet
Triggering ubuntu4.ttinet
Host ubuntu4.ttinet failed: Error 400 on SERVER: ''save '' is not an allowed value for method directive
ubuntu4.ttinet finished with exit code 2
Failed: ubuntu4.ttinet
root@ubuntu4:~# cat /etc/puppet/auth.conf
path /run
method save
allow *
2012 Jan 05
2
suppressing openssh server identification
With all of the discussions regarding getting p3wned, I am feeling paranoid and can't seem to figure out how to suppress this...
telnet $SOME_CENTOS_5_SERVER 22
Trying $SOME_IP_ADDRESS...
Connected to $SOME_CENTOS_5_SERVER.
Escape character is '^]'.
SSH-2.0-OpenSSH_4.3
'Banner no' doesn't do it. Is it possible to suppress the version?
--
Craig White
2011 Jun 14
5
puppet dashboard
I am using Ubuntu 10.04 and ruby-enterprise (not ubuntu ruby) and installed puppet via gem.
How can I install puppet-dashboard if I don''t see a gem available and if I use the ubuntu package, i get the whole slop of ruby packages sucked in (which i am trying to avoid)?
# dpkg -i puppet-dashboard_1.1.0-1_all.deb
Selecting previously deselected package puppet-dashboard.
(Reading database
2011 Nov 30
2
bundle exec fail
WTF... how to solve? (REE ruby/Ubuntu 10.04)
$ dpkg -l |grep ruby
ii ruby-enterprise - 1.8.7-2011.03 - Ruby Enterprise Edition.
$ bundle exec
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:344:in `exec'': wrong number of arguments (ArgumentError)
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:344:in `exec''
from
2011 Dec 13
1
continuous jquery partial update
Rails 3.1.x - jquery
drag_drop.js
$(function() {
$( "[id^=moveable]" ).draggable();
$( "#droppable2" ).droppable({
drop: function( event, ui ) {
$( this )
.addClass( "ui-state-highlight" )
$.post( "groups/add_member/", { "add": ui.draggable.text() }, function(data) {
2011 Jul 14
5
LDAP ENC
Seems straight forward enough but I keep getting errors. On a client...
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node ubuntu5.ttinet: LDAP Search failed
on the puppet master...
puppet.conf [master]
# ENC (external node classificiations)
node_terminus = ldap
ldapnodes = true
ldapclassattrs = puppetclass
# LDAP
ldapserver =
2011 Oct 11
1
recursive finds
I am trying to supplement and ultimately provide a patch for ''foreman'' which is an adjunct to puppet.
Essentially, there is a Hosts class which belongs_to Hostgroup and Hostgroup class has a column called ''ancestry'' which is actually a Hostgroup (probably what is referred to as STI but I am not sure) and thus within Foreman, nesting Hostgroups is not uncommon.
2011 Jul 20
0
parameters in a string for ENC
I am hoping that someone could post a working example of how they use a ''define'' has in a parameter string because I have been working on this for days to no avail (and googling & checking documentation on puppet & foreman sites.
What I am trying to accomplish is to define things within foreman ENC and duplicate the functionality I can get from just using node
2012 Jan 09
0
node parameters
I''ve been using foreman as an ENC and assigning node parameters for some time and it was clearly working but it apparently broke somewhere along the way and I can''t tell why.
Here''s part of the modules/sudoers/manifests/sudoers_hostgroup.pp
class sudoers::hostgroup {
case hostgroup {
default: {
file{"/etc/sudoers.d/admins_web":
ensure
2011 May 11
1
[OT] Co-location center in Holland
Anyone have recommendations for a highly reliable datacenter located in Holland?
Thanks
--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white at ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com
Need help communicating between generations at work to achieve your desired success? Let us help!
2011 May 12
2
[OT] Co-location center in Singapore or Hong Kong
Apparently my company will potentially need to put in some servers for Asia and is hoping to find a highly reliable data center in either Singapore or Hong Kong if anyone has recommendations.
Thanks
--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white at ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com
Need help communicating between generations at work to
2011 Aug 31
1
Certificate verify failed.
Hi All,
I am running puppet (2.7.3) with nginx and passenger (3.0.8) and
ruby-1.9.2p290. I am receiving the following error on the client when
connecting to the server.
info: Creating a new SSL key for hostname.domain.com
err: Could not request certificate: SSL_connect returned=1 errno=0
state=SSLv3 read server certificate B: certificate verify failed.
This is often because the time is out of
2004 Nov 11
6
scan or source a text file into a list
I've ported somebody else's rather cumbersome Matlab model to R for
colleagues that want a free build of the model with the same type of I/O.
The Matlab model reads a text file with the initial parameters specified as:
C:\Data\Carluc\Rport>more Params.R
# Number of years to simulate
nYears = 50;
# Initial year for graphing purposes
year0 = 1970;
# NPP/GPP ratio (cpp0 unitless)
fnr =
2011 Jun 13
15
puppet clients
I''ve gone over the documentation several times now and I can''t figure out how to ''apply'' a manifest to a client.
The client does have a signed certificate but the only thing in the /etc/puppet folder on the client is an ssl directory.
I have a manifest that works fine on the puppet ''master''
I have added the client into
2009 Mar 27
1
ROCR package finding maximum accuracy and optimal cutoff point
If we use the ROCR package to find the accuracy of a classifier
pred <- prediction(svm.pred, testset[,2])
perf.acc <- performance(pred,"acc")
Do we?find the maximum accuracy?as follows?(is there a simplier way?):
> max(perf.acc at x.values[[1]])
Then to find the cutoff point that maximizes the accuracy?do we do the
following?(is there a simpler way):
> cutoff.list <-
2013 May 08
2
IMAP SSL proxy (questions)
Hello everyone,
I have seen: http://wiki.dovecot.org/HowTo/ImapProxy. It doesn't seem to
fit what I need.
Unfortunately, I cannot use TLS. I have to use SSL. Also, I would rather
not duplicate the certificates for the IMAP servers. Hence nginx doesn't
seem to be a good choice either.
I am hoping that since SSL has "Client Hello" which specifies the site
requested the the
2015 May 30
3
Project Management Software
I have a need to use a project management software package under Centos 6.6 and have started looking at ProjectLibre which is a Java package.
Unfortunately it seems to have shortcomings when it comes to following up projects and my current understanding is that it falls short of Microsoft Project 2010, i.e., a previous version.
Does anyone have experience with this type of software and what
2012 Dec 06
2
pasenger does not start puppet master under nginx
On the server
[root@bangvmpllDA02 logs]# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
[root@bangvmpllDA02 logs]# puppet --version
3.0.1
and
[root@bangvmpllDA02 logs]# service nginx configtest
nginx: the configuration file /apps/nginx/nginx.conf syntax is ok
nginx: configuration file /apps/nginx/nginx.conf test is successful
[root@bangvmpllDA02 logs]# service nginx status
2014 Oct 29
3
Right way to install phpMyAdmin through Nginx and PHP-FPM
First I know this is not a list for PHP or Nginx setup or something else
but I'll give it a try and ask here for support I'm running a new server
with PHP 5.5.18 and Nginx 1.6.2 through FPM/FastCGI. The server is working
fine since I have other websites running on it. Now I'm trying to configure
phpMyAdmin and I tried this:
* 1. *Create a file under