Skip to content

Instantly share code, notes, and snippets.

@stephanetimmermans
stephanetimmermans / dto
Last active Aug 20, 2017
IntelliJ Code Template
View dto
#set( $name = ${NAME.substring(0,1).toLowerCase()}+${NAME.substring(1)} )
#set( $Names = ${NAME}+"s" )
#set( $names = ${name}+"s" )
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
#parse("File Header.java")
@Data
View intall-wordpress-debian.sh
#http://www.linuxserve.com/2015/05/install-latest-wordpress-version-on.html
su -
apt-get install apache2 mysql-client mysql-server php5 php5-mysql php5-curl php5-gd
mysql -u root -p
CREATE DATABASE wpdatabase;
CREATE USER wpuser@localhost IDENTIFIED BY 'wppass';
GRANT ALL PRIVILEGES ON wpdatabase.* TO wpuser@localhost;
FLUSH PRIVILEGES;
exit
@stephanetimmermans
stephanetimmermans / gist:0a2a32f49ae800973886
Last active Aug 29, 2015
ubuntu-chrome-java8-mvn-mongo-nodejs-grunt-bower-idea-gradle-tomcat
View gist:0a2a32f49ae800973886
#chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
#java
sudo add-apt-repository ppa:webupd8team/java
#maven3
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
#mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
@stephanetimmermans
stephanetimmermans / ubuntu-docker
Created Nov 10, 2014
Install Docker on Ubuntu
View ubuntu-docker
sudo apt-get update
sudo apt-get install docker.io
source /etc/bash_completion.d/docker.io
sudo docker run -i -t ubuntu /bin/bash
View ubuntu-mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org
@stephanetimmermans
stephanetimmermans / ubuntu-groovy
Created Jul 11, 2014
Install Groovy on Ubuntu 14
View ubuntu-groovy
curl -s get.gvmtool.net | bash
source "$HOME/.gvm/bin/gvm-init.sh"
gvm install groovy
groovy -version
@stephanetimmermans
stephanetimmermans / ubuntu-idea-launcher
Last active Jun 19, 2016
Add IntelliJ IDEA Launcher in Ubuntu 14.04
View ubuntu-idea-launcher
#In IDEA, go to Tools > Create Desktop Entry to create a launcher in /usr/share/applications.
cp /usr/share/applications/jetbrains-idea.desktop ~/.local/share/applications/
#http://nufailm.blogspot.be/2012/05/custom-launcher-for-intellij-idea-in.html
#http://stackoverflow.com/questions/14424254/intellij-launcher-doesnt-work-on-unity
@stephanetimmermans
stephanetimmermans / ubuntu-hipchat
Created Jul 3, 2014
Install hipChat on Ubuntu 14.04
View ubuntu-hipchat
sudo su
echo "deb http://downloads.hipchat.com/linux/apt stable main" > \ /etc/apt/sources.list.d/atlassian-hipchat.list
wget -O - https://www.hipchat.com/keys/hipchat-linux.key | apt-key add -
apt-get update
apt-get install hipchat
@stephanetimmermans
stephanetimmermans / ubuntu-maven-3
Last active Nov 16, 2020
Install Maven3 on Unbuntu 14.04
View ubuntu-maven-3
#sudo apt-get remove maven2
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
sudo apt-get update
sudo apt-get install maven3
#If you encounter this:
#The program 'mvn' can be found in the following packages:
# * maven
# * maven2
@stephanetimmermans
stephanetimmermans / ubuntu-thunderbird
Created Jun 25, 2014
Install Thunderbird on Ubuntu 14.04
View ubuntu-thunderbird
echo -e "\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | sudo tee -a /etc/apt/sources.list > /dev/null
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
sudo apt-get update
sudo apt-get install thunderbird-mozilla-build