Skip to content

Instantly share code, notes, and snippets.

@hawkup
hawkup / .bashrc
Last active August 29, 2015 14:15
bashrc file
#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 vagrant ubuntu.md
Last active August 29, 2015 14:19
Installing Vagrant on Ubuntu 14.04
  • 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 java ubuntu.md
Last active August 29, 2015 14:19
Installing Java on Ubuntu 14.04

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 golang ubuntu.md
Last active August 10, 2018 03:56
Installing Golang on ubuntu 14.04

First install gvm

  • install curl
sudo apt-get install curl
  • install git latest version
sudo add-apt-repository ppa:git-core/ppa
@hawkup
hawkup / Install cassandra ubuntu.md
Last active February 15, 2017 14:14
Installing Cassandra on Ubuntu 14.04

prerequisite

  • java

Install

  • Add DataStax community repository to the /etc/apt/sources.list.d/cassandra.sources.list
echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
@hawkup
hawkup / install haskell on ubuntu.md
Last active August 12, 2017 05:29
Install Haskell on Ubuntu 14.04
  • download haskell platform
wget https://www.haskell.org/platform/download/2014.2.0.0/haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz
  • install haskell
cd /
sudo tar xvf PATH_DOWNLOADED_ZIP_FILE
sudo /usr/local/haskell/ghc-7.8.3-x86_64/bin/activate-hs 
@hawkup
hawkup / Install scala on ubuntu.md
Last active August 29, 2015 14:19
Install Scala on Ubuntu 14.04
  • 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
@hawkup
hawkup / Install Docker on Ubuntu.md
Last active March 28, 2018 19:45
Install Docker on Ubuntu 14.04

Prerequisites

sudo apt-get update

Install

  • get latest docker package
wget -qO- https://get.docker.com/ | sh
@hawkup
hawkup / Install Clojure on Ubuntu.md
Last active June 21, 2017 18:19
Install Clojure on Ubuntu 14.04

Prerequisite

  • Java

Installation

  • download clojure
wget http://repo1.maven.org/maven2/org/clojure/clojure/1.6.0/clojure-1.6.0.zip
@hawkup
hawkup / .gitconfig
Created April 26, 2015 17:30
~/.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"