Skip to content

Instantly share code, notes, and snippets.

hawkup

Block or report user

Report or block hawkup

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hawkup
hawkup / .bashrc
Last active Aug 29, 2015
bashrc file
View .bashrc
#http://serverfault.com/questions/3743/what-useful-things-can-one-add-to-ones-bashrc
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
@hawkup
hawkup / Install java ubuntu.md
Last active Aug 29, 2015
Installing Java on Ubuntu 14.04
View Install java ubuntu.md

Install Java use PPA

  • install for apt-add-repository command
sudo apt-get install python-software-properties
  • then install java
sudo apt-add-repository ppa:webupd8team/java
@hawkup
hawkup / install vagrant ubuntu.md
Last active Aug 29, 2015
Installing Vagrant on Ubuntu 14.04
View install vagrant ubuntu.md
  • uninstall older vagrant
sudo rm -rf /opt/vagrant
sudo rm -rf /usr/bin/vagrant
sudo rm -rf ~/.vagrant.d
  • install VirtualBox
sudo apt-get install virtualbox
@hawkup
hawkup / Install scala on ubuntu.md
Last active Aug 29, 2015
Install Scala on Ubuntu 14.04
View Install scala on ubuntu.md
  • download unzip file
wget http://downloads.typesafe.com/scala/2.11.6/scala-2.11.6.tgz
  • unzip file
tar xvf scala-2.11.6.tgz -C /usr/local/share
View .gitconfig
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
@hawkup
hawkup / use jshint jscs and csslint on ubuntu .md
Created May 4, 2015
use jshint jscs and csslint on ubuntu
View use jshint jscs and csslint on ubuntu .md

requisite

  • nodejs

installation

  • jshint
sudo npm install -g jshint
  • jscs
View vagrant.md

Initial vagrant

vagrant init hashicorp/precise64

box command

  • add
vagrant box add ADDRESS
@hawkup
hawkup / shell_script_install_environment.sh
Last active Aug 29, 2015
shell script install environment
View shell_script_install_environment.sh
#!/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 Aug 29, 2015
Installation Grails on Ubuntu 14.04
View installation_grails.md

#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 / update or install latest nodejs on Ubuntu 14.04.md
Last active Aug 29, 2015
update or install latest nodejs on Ubuntu 14.04
View update or install latest nodejs on Ubuntu 14.04.md

check latest nvm version from this

https://github.com/creationix/nvm

install latest version

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
You can’t perform that action at this time.