Skip to content

Instantly share code, notes, and snippets.

@avenda
avenda / build-git.sh
Created July 8, 2016 14:56 — forked from pescobar/build-git.sh
compile git with openssl instead of gnutls
#!/usr/bin/env bash
# Clear out all previous attempts
rm -rf "/tmp/source-git/"
# Get the dependencies for git, then get openssl
sudo apt-get install build-essential fakeroot dpkg-dev -y
sudo apt-get build-dep git -y
sudo apt-get install libcurl4-openssl-dev -y
mkdir -p "/tmp/source-git/"
#!/bin/bash
function usage()
{
echo "Usage: $0 -u <MySQL_Username> -p <Password>"
}
USER=""
@avenda
avenda / install_java6u45.sh
Created October 27, 2014 20:29
install java6 update 45 on ubuntu 14.14 lts
#!/bin/sh
#install script for ubuntu
echo "Downloading JDK"
wget http://ghaffarian.net/downloads/Java/JDK/jdk-6u45-linux-x64.bin
echo "Change permissions"
chmod +x jdk-6u45-linux-x64.bin
./jdk-6u45-linux-x64.bin
mv jdk1.6.0_45/ java-6-oracle/
sudo mkdir /usr/lib/jvm/
sudo mv java-6-oracle/ /usr/lib/jvm/
@avenda
avenda / Change port of jboss 4.2.3 ga
Last active August 29, 2015 14:07
Change port of jboss 4.2.3 ga
- On a editor server/default/deploy/jboss-web.deployer/server.xml
- Change value:
<Connector port="NEW_PORT_NUMBER"
Just remeber not use the other jboss ports https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Installation_Guide/Network_Ports_Used_By_JBoss_Enterprise_Application_Platform_62.html
Restart Jboss