Skip to content

Instantly share code, notes, and snippets.

View someara's full-sized avatar

Sean OMeara someara

View GitHub Profile
@someara
someara / gist:810282
Created February 3, 2011 21:47
why you shouldn't upgrade system ruby
[root@centos5-1 ~]# repoquery --whatrequires --alldeps --resolve ruby | wc -l
66
[root@centos5-1 ~]# repoquery --whatrequires --alldeps --resolve "ruby(abi) = 1.8" | wc -l
64
[root@centos5-1 ~]#
fedora13-1:~# repoquery --whatrequires --alldeps --resolve ruby | wc -l
175
fedora13-1:~# repoquery --whatrequires --alldeps --resolve "ruby(abi) = 1.8" | wc -l
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/tags.py to tags.pyc
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/api.py to api.pyc
File "build/bdist.linux-x86_64/egg/tracscreenshots/api.py", line 53
'where' : (' WHERE ' + where) if where else ''}
^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/db/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/db/db4.py to db4.pyc
@someara
someara / gist:872443
Created March 16, 2011 12:55
chef repo .gitignore
.chef/client.rb
.chef/knife.rb
.chef/checksums
*.pem
tmp/*
.rake_test_cache
*.swp
*.swo
*~
metadata.json
payment-1:~# cat /usr/bin/payment
#!/bin/bash
set -e
trap "kill 0" SIGINT SIGTERM EXIT
if [ -f /etc/sysconfig/payment ]; then
. /etc/sysconfig/payment
fi
#!/bin/bash
set -e
set -x
trap "echo EXITING THE SCRIPT" EXIT
export RAILS_ENV="mind"
set +e
/usr/local/bin/rvm-shell 'default' -c '
@someara
someara / gist:1012554
Created June 7, 2011 16:04
redis fc16 epel6 backport attempt
[mockbuild@localhost SRPMS]$ cat /var/lib/mock/epel-6-x86_64/result/build.log
Mock Version: 1.1.10
ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/redis.spec'], False, '/var/lib/mock/epel-6-x86_64/root/', None, 0, True, 0, 500, 502, None, logger=<mock.trace_decorator.getLog object at 0x15d5b90>)
Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/redis.spec']
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/redis-2.2.5-2.el6.src.rpm
Child returncode was: 0
LEAVE do -->
Centos5 on Husdon
-----------------
[root@hudson-staging ~]# rpm -qa | grep glib
glib2-2.12.3-4.el5_3.1
dbus-glib-0.73-8.el5
NetworkManager-glib-0.7.0-10.el5
glibc-devel-2.5-58.el5_6.3
avahi-glib-0.6.16-7.el5
glibc-2.5-58.el5_6.3
execute "append some shit" do
command "echo 'some shit' >> /some/file"
not_if "grep 'some shit' /some/file"
end
ubuntu@ip-10-12-95-235:~/chef-repo$
ubuntu@ip-10-12-95-235:~/chef-repo$ knife cookbook upload fail2ban
Uploading fail2ban [1.0.0]
ERROR: Errno::ENOENT: No such file or directory - ruby -c /home/ubuntu/chef/repo/.chef/../cookbooks/fail2ban/recipes/default.rb
Fixed with: export PATH=/opt/opscode/embedded/bin
####<Dec 13, 2011 4:20:17 PM EST> <Info> <WebLogicServer> <nj09cldl5043.mhf.mhc> <> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1323811217204> <BEA-000000> <WebLogic Server "kit01_1" version:
WebLogic Server 10.3.5.0.1 PSU Patch for BUG12617751 Wed Aug 24 13:22:46 IST 2011
WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 Copyright (c) 1995, 2009, Oracle and/or its affiliates. All rights reserved.>
####<Dec 13, 2011 4:20:17 PM EST> <Notice> <Log Management> <nj09cldl5043.mhf.mhc> <> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1323811217329> <BEA-170019> <The server log file /local/apps/wlskit01/wls1035/user_projects/domains/kit01_domain/servers/kit01_1/logs/kit01_1.log is opened. All server side log events will be written to this file.>
####<Dec 13, 2011 4:20:17 PM EST> <Info> <Log Management> <nj09cldl5043.mhf.mhc> <> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <>