Skip to content

Instantly share code, notes, and snippets.

View aheritier's full-sized avatar

Arnaud Héritier aheritier

View GitHub Profile
2010-11-30 03:08:35 DEBUG [pshots&c=&p=zip] - org.mortbay.log - REQUEST /service/local/artifact/maven/redirect on org.mortbay.jetty.HttpConnection@1dad50f
2010-11-30 03:08:35 DEBUG [pshots&c=&p=zip] - org.mortbay.log - sessionManager=org.mortbay.jetty.servlet.HashSessionManager@d62d1b
2010-11-30 03:08:35 DEBUG [pshots&c=&p=zip] - org.mortbay.log - session=null
2010-11-30 03:08:35 DEBUG [pshots&c=&p=zip] - org.mortbay.log - servlet=nexus
2010-11-30 03:08:35 DEBUG [pshots&c=&p=zip] - org.mortbay.log - chain=nexusFilter->nexus
2010-11-30 03:08:35 DEBUG [pshots&c=&p=zip] - org.mortbay.log - servlet holder=nexus
2010-11-30 03:08:35 DEBUG [pshots&c=&p=zip] - org.mortbay.log - call filter nexusFilter
2010-11-30 03:08:35 DEBUG [pshots&c=&p=zip] - o.s.s.w.PlexusConfi~ - Matched pathPattern [/service/*/artifact/maven/redirect] for requestURI [/service/local/artifact/maven/redirect]. Utilizing corresponding filter
@aheritier
aheritier / swfdashboard
Created July 13, 2011 10:02
init script used for ubuntu to manage status.exoplatform.org
#! /bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
@aheritier
aheritier / gist:1262608
Created October 4, 2011 19:52
Maven doesn't find a dependency available in the local repo
org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA is an artifact in a nexus staging repository (jboss)
I launch the build a first time with a profile activting the repository where the dep can be downloaded. The build succeed.
I launch it a second time without the profile as it already has the missing dep and it fails
$ mvn clean install -X | grep exo.kernel.commons
[DEBUG] Verifying availability of /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom from [exo-fr-mirror (http://repository.exoplatform.org/public, releases+snapshots), exo.private (http://repository.exoplatform.org/private, releases+snapshots)]
[DEBUG] Skipped remote update check for org.exoplatform.kernel:exo.kernel.commons:pom:2.2.10-GA, locally cached artifact up-to-date.
Downloading: http://repository.exoplatform.org/public/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom
[DEBUG] Reading resolution tracking file /Users/arnaud/.m2/reposi
@aheritier
aheritier / VagrantFile
Created November 21, 2011 17:08
Base MAC address for eth0/NAT must be set error reported with 2 VMs
Vagrant::Config.run do |config|
# SERVER : tqa-as01.vagrant.exoplatform.com
# Vagrant name : as01
config.vm.define :as01 do |as01_config|
#as01_config.vm.boot_mode = :gui
as01_config.vm.box = "eXo-ubuntu-11.04-server-amd64_VBoxGuestAdditions-4.1.2"
as01_config.vm.box_url = "https://storage.exoplatform.org/public/vagrant/ubuntu/11.04/eXo-ubuntu-11.04-server-amd64_VBGAddition-4.1.2.box"
as01_config.vm.host_name = "tqa-as01.exoplatform.org"
as01_config.vm.network "33.33.33.10"
@aheritier
aheritier / Logs
Created November 21, 2011 17:09
Base MAC address for eth0/NAT must be set error reported with 2 VMs
arnaud@mbp-arnaud:~/Code/eXo/puppet/vagrant/tqa (git:master)$ vagrant up
[as01] Box eXo-ubuntu-11.04-server-amd64_VBoxGuestAdditions-4.1.2 was not found. Fetching box from specified URL...
[as01] Downloading with Vagrant::Downloaders::HTTP...
[as01] Downloading box: https://storage.exoplatform.org/public/vagrant/ubuntu/11.04/eXo-ubuntu-11.04-server-amd64_VBGAddition-4.1.2.box
[as01] Extracting box...
[as01] Verifying box...
[as01] Cleaning up downloaded box...
[as01] Importing base box 'eXo-ubuntu-11.04-server-amd64_VBoxGuestAdditions-4.1.2'...
[as01] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
@aheritier
aheritier / convert.sh
Created March 18, 2012 20:19
SVN -> GIT
#!/bin/bash -eu
svn_repo_url=$1
git_repo_path=$2
git_repo_name=$3
git_repo_desc=$4
git_repo_owner=$5
# If something wasn't removed by a previous job
rm -rf $SWF_TMP_DIR/$git_repo_name.git
@aheritier
aheritier / gist:3302585
Created August 9, 2012 09:16
SCP file with sudo (function to add in .bash_env or .bashrc...)
function sendToTqa {
ssh tqa-$1.exoplatform.lan sudo -u tqawork sh -c \'"cat > $3"\' < $2
}
@aheritier
aheritier / gist:3303603
Created August 9, 2012 11:58
TC7 patch pour reverse proxy apache SSL (et +)
--- server.xml 2011-06-08 17:11:36.000000000 +0200
+++ server.xml 2011-06-08 17:20:37.000000000 +0200
@@ -19,7 +19,7 @@
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
-<Server port="8005" shutdown="SHUTDOWN">
+<Server port="@SHUTDOWN_PORT@" shutdown="SHUTDOWN">
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
@aheritier
aheritier / gist:3303615
Created August 9, 2012 12:01
RP apache Nexus
RewriteEngine On
ProxyRequests Off
ProxyPreserveHost On
ProxyVia On
ProxyPass / http://127.0.0.1:20010/ acquire=1000 retry=30
ProxyPassReverse / http://127.0.0.1:20010/
<Proxy *>
Order deny,allow
Allow from all
@aheritier
aheritier / dumpDatabases.sh
Created August 29, 2012 07:01
dump mysql databases with some improvements to try to improve the import time
#!/bin/bash -ue
if [ $# -lt 2 ]; then
echo "You must specify the directory where to store dumps"
echo "Eg. $0 PATH DB1 [DB2] ... [DBx]"
exit
fi
BACKUP_DIR="$1"
shift;