Skip to content

Instantly share code, notes, and snippets.

@hawkup
hawkup / docker.md
Last active March 15, 2016 05:48
Docker Ubuntu 14.04
  • Install docker recommend to use docker toolbox (OSX) easy to update

remove all container

docker rm $(docker ps -aq)

if u found this message when remove all container

/var/run/docker.sock: permission denied
@hawkup
hawkup / use jshint jscs and csslint on ubuntu .md
Created May 4, 2015 23:06
use jshint jscs and csslint on ubuntu

requisite

  • nodejs

installation

  • jshint
sudo npm install -g jshint
  • jscs
@hawkup
hawkup / Install Phalcon on Ubuntu 14.04.md
Last active May 6, 2017 06:26
Install Phalcon on Ubuntu 14.04

Installation

  • install php5-dev
sudo apt-get install php5-dev
  • install PCRE libraries
sudo apt-get install libpcre3-dev
@hawkup
hawkup / install pathpicker on ubuntu 14.04.sh
Created May 12, 2015 17:35
install pathpicker on ubuntu 14.04
#!/bin/bash
#install PathPicker
# source http://github.com/facebook/PathPicker
cd /usr/local/
git clone https://github.com/facebook/PathPicker.git
cd PathPicker/
ln -s /usr/local/PathPicker/fpp /usr/local/bin/fpp
fpp --help
@hawkup
hawkup / vagrant.md
Last active August 29, 2015 14:21
Vagrant

Initial vagrant

vagrant init hashicorp/precise64

box command

  • add
vagrant box add ADDRESS
@hawkup
hawkup / shell_script_install_environment.sh
Last active August 29, 2015 14:22
shell script install environment
#!/bin/bash
sudo apt-get update
sudo apt-get install git
wget -qO- https://get.docker.com/ | sh
sudo apt-get install nodejs
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
@hawkup
hawkup / installation_grails.md
Last active August 29, 2015 14:22
Installation Grails on Ubuntu 14.04

#Prerequisite

  • JDK

#Installation

  1. Download grails

    wget https://github.com/grails/grails-core/releases/download/v3.0.1/grails-3.0.1.zip
    
@hawkup
hawkup / installation_gvm.md
Last active February 28, 2017 11:31
installation GVM on Ubuntu 14.04

#Prerequisite

  • If you installed gvm and want to new install remove /home/{username}/.gvm folder and remove the line
#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
[[ -s "~/.gvm/bin/gvm-init.sh" && ! $(which gvm-init.sh) ]] && source "~/.gvm/bin/gvm-init.sh"

reference: http://stackoverflow.com/questions/14878271/how-to-uninstall-gvm

#Installation

@hawkup
hawkup / PHP_Mysql_Apache2_Phpmyadmin_ubuntu.md
Last active August 29, 2015 14:23
Install PHP Mysql Apache2 and Phpmyadmin on ubuntu 14.04

Apache2

sudo apt-get update
sudo apt-get install -y apache2
  • if you can not start apache2 service and get this message
apache2: Could not determine the server's fully qualified domain name, 
using 127.0.0.1 for ServerName
@hawkup
hawkup / install redis on ubuntu.md
Last active August 29, 2015 14:23
Install Redis On Ubuntu 14.04
sudo apt-get update
sudo apt-get install redis-server

file config located

/etc/redis/redis.conf