Skip to content

Instantly share code, notes, and snippets.

@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
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 / 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
@stephanetimmermans
stephanetimmermans / ubuntu-node-js
Last active Dec 3, 2017
Install Node.js on Ubuntu 14.10
View ubuntu-node-js
#https://www.digitalocean.com/community/articles/how-to-install-node-js-on-an-ubuntu-14-04-server
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
npm config set prefix ~/npm
#append to .bashrc
export PATH="$PATH:$HOME/npm/bin"
sudo chown -R `whoami` ~/.npm
@stephanetimmermans
stephanetimmermans / gist:0b1ee3efa0f5889c9678
Last active Jan 27, 2018
TP-LINK TL-WN725N v2 working on Raspberry Pi (Raspbian)
View gist:0b1ee3efa0f5889c9678
#Source: http://www.mendrugox.net/2013/08/tp-link-tl-wn725n-v2-working-on-raspberry-raspbian/
wget http://www.mendrugox.net/downloads/14
unzip 14
rm 14
mv 8188eu.ko /lib/modules/3.10.25+/kernel/drivers/net/wireless
mv rtl8188eufw.bin /lib/firmware/rtlwifi/
depmod -a
modprobe 8188eu
ifconfig
@stephanetimmermans
stephanetimmermans / ubuntu-compass-ruby
Last active Jul 4, 2019
Install Compass+Ruby on Ubuntu 14.04
View ubuntu-compass-ruby
#https://gorails.com/setup/ubuntu/14.04
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default
@stephanetimmermans
stephanetimmermans / MessageDaoJpa.java
Last active Aug 30, 2019
Hibernate Criteria with Spring Data JPA
View MessageDaoJpa.java
@Repository("messageDao")
public class MessageDaoJpa implements MessageDao {
@PersistenceContext
private EntityManager entityManager;
...
public Message get(final String key, final String target) {
Criteria criteria;
@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
@stephanetimmermans
stephanetimmermans / ubuntu-google-chrome
Last active Mar 23, 2020
Install Google Chrome on Ubuntu 14.04
View ubuntu-google-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-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable