Skip to content

Instantly share code, notes, and snippets.


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 / .bashrc
Last active Aug 29, 2015
bashrc file
View .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 / install vagrant
Last active Aug 29, 2015
Installing Vagrant on Ubuntu 14.04
View install vagrant
  • 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 / Install java
Last active Aug 29, 2015
Installing Java on Ubuntu 14.04
View Install java

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 / Install golang
Last active Aug 10, 2018
Installing Golang on ubuntu 14.04
View Install golang

First install gvm

  • install curl
sudo apt-get install curl
  • install git latest version
sudo add-apt-repository ppa:git-core/ppa
hawkup / Install cassandra
Last active Feb 15, 2017
Installing Cassandra on Ubuntu 14.04
View Install cassandra


  • java


  • Add DataStax community repository to the /etc/apt/sources.list.d/cassandra.sources.list
echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
hawkup / install haskell on
Last active Aug 12, 2017
Install Haskell on Ubuntu 14.04
View install haskell on
  • download haskell platform
  • install haskell
cd /
sudo /usr/local/haskell/ghc-7.8.3-x86_64/bin/activate-hs 
hawkup / Install scala on
Last active Aug 29, 2015
Install Scala on Ubuntu 14.04
View Install scala on
  • download unzip file
  • unzip file
tar xvf scala-2.11.6.tgz -C /usr/local/share
hawkup / Install Docker on
Last active Mar 28, 2018
Install Docker on Ubuntu 14.04
View Install Docker on


sudo apt-get update


  • get latest docker package
wget -qO- | sh
hawkup / Install Clojure on
Last active Jun 21, 2017
Install Clojure on Ubuntu 14.04
View Install Clojure on


  • Java


  • download clojure
View .gitconfig
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"
You can’t perform that action at this time.