Skip to content

Instantly share code, notes, and snippets.

@lionelg3
lionelg3 / chroot4centos_mkchroot.sh
Created May 11, 2018 12:10
Simple chroot for centos7
#!/bin/sh
JAIL=$1
echo "Création du CHROOT $JAIL"
if [ -d $JAIL ]
then
echo "Le dossier existe deja"
exit 0
else
mkdir $JAIL
rpm --root=$JAIL --nodeps -i /root/centos-release-7-4.1708.el7.centos.x86_64.rpm
@lionelg3
lionelg3 / home.html
Created December 22, 2016 22:30
Tic tac
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tic tac</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
@lionelg3
lionelg3 / Download compile and install
Created October 14, 2012 12:22
Installation JBossAS 7.1.3-Final on Debian 6
export MAVEN_OPTS="-Xmx1024m"
git clone git://github.com/jbossas/jboss-as.git
cd jboss-as
git checkout 7.1.3.Final
mvn install -DskipTests
mv build/target/jboss-as-7.1.3.Final /opt
apt-get install libaio1
cd /opt
tar xvfz /home/me/jboss-as-7.1.3.Final.tar.gz
@lionelg3
lionelg3 / jboss-as
Created July 18, 2012 10:28
General configuration for the JBoss AS 7.1.1-Final init.d scripts for Debian (/etc/jboss-as/jboss-as.conf and /etc/init.d/jboss-as)
#!/bin/sh
# Load JBoss AS init.d configuration.
if [ -z "$JBOSS_CONF" ]; then
JBOSS_CONF="/etc/jboss-as/jboss-as.conf"
fi
[ -r "$JBOSS_CONF" ] && . "${JBOSS_CONF}"
if [ -z "$JBOSS_HOME" ]; then