Skip to content

Instantly share code, notes, and snippets.

View franciscocpg's full-sized avatar

Francisco Guimarães (chico) franciscocpg

View GitHub Profile
@franciscocpg
franciscocpg / jetty-install-debian.sh
Last active May 21, 2020 14:51
Install jetty on debian
#!/bin/bash
# do in tmp
cd /tmp
JETTY_FILE='jetty-distribution-9.3.3.v20150827.tar.gz'
JETTY_FOLDER=${JETTY_FILE:0:-7}
# Download
wget http://download.eclipse.org/jetty/stable-9/dist/$JETTY_FILE
# Extract
sudo tar zxvf $JETTY_FILE -C /opt/
@franciscocpg
franciscocpg / vagrant-oracle
Last active October 2, 2015 22:14
Vagrant oracle service
#!/bin/bash
ACTION="$1"
CONFIG_FILE="/etc/default/vagrant-oracle"
if [[ ! -e "$CONFIG_FILE" ]]; then
echo "file $CONFIG_FILE does not exists. Create it with VAGRANT_ORACLE_HOME variable"
exit 1
fi
source "$CONFIG_FILE"
if [[ -z "$VAGRANT_ORACLE_HOME" ]]; then
echo "set VAGRANT_ORACLE_HOME environment variable"
@franciscocpg
franciscocpg / install-vagrant-oracle
Last active March 1, 2016 16:40
Install vagrant oracle
#!/bin/bash
# Stop on any errors
set -e
# Install vagrant
bash <(curl -s https://gist.githubusercontent.com/franciscocpg/cf926a35197981552eab/raw/)
# Clone vagrant oracle
git clone https://github.com/tidexa-es/vagrant-ubuntu-oracle-xe
# Download oracle express 11g
wget 'https://www.googledrive.com/host/0B8Ullq6_B51jM3ZTdDFBWmNmX2s' -O oracle-xe-11.2.0-1.0.x86_64.rpm.zip
# Move file to vagrant install folder
#!/bin/bash
CODENAME=$(lsb_release -c)
CODENAME=${CODENAME:10}
# add sign key to nginx
wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
sudo apt-key add /tmp/nginx_signing.key
# Add sources
sudo add-apt-repository "deb http://nginx.org/packages/ubuntu/ $CODENAME nginx"
# Install nginx

Office 365 - Thunderbird integration

Installing the Add-on

  1. Install the latest version of Mozilla Thunderbird.
  2. Install the latest version of the Lightning add-on.
  3. Download the latest version of the Exchange Calendar and Tasks Add-on.
  4. In Thunderbird, click on Tools | Add-ons
  5. Click on the Gear icon (next to "Search all add-ons") and select Install Add-on From File...
  6. Browse to the downloaded add-on in the previous step
  7. Click Install to verify that you understand that you are trusting the add-on from a non-verified author
# For ubuntu 14.04
# Needed repositories
sudo add-apt-repository -y ppa:vbernat/haproxy-1.5
echo "deb https://dl.bintray.com/magnetic-io/upstart trusty main" | sudo tee -a /etc/apt/sources.list
curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
sudo apt-get update
# install ha proxy 1.5
sudo apt-get install -y haproxy
# Needed repositories
sudo add-apt-repository -y ppa:vbernat/haproxy-1.5
sudo apt-get update
# install ha proxy 1.5
sudo apt-get install -y haproxy
# downloads the Linux CLI to /usr/local/bin (YMMV)
sudo curl https://s3.amazonaws.com/downloads.wercker.com/cli/stable/linux_amd64/wercker -o /usr/local/bin/wercker
sudo chmod +x /usr/local/bin/wercker
set -e
# add ppa
curl -sL https://deb.nodesource.com/setup | sudo bash -
# install
sudo apt-get install -y build-essential nodejs
@franciscocpg
franciscocpg / install-docker.sh
Last active January 23, 2017 14:06
Install docker ubuntu
set -e
sudo apt-get install -y apt-transport-https ca-certificates
# add key
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
# add source
sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main"
sudo apt-get update
sudo apt-get purge -y lxc-docker*
sudo apt-get install -y docker-engine
sudo usermod -a -G docker $USER