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

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 Feb 15, 2017
Installing Cassandra on Ubuntu 14.04
View Install cassandra ubuntu.md

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 Aug 12, 2017
Install Haskell on Ubuntu 14.04
View install haskell on ubuntu.md
  • 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 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
@hawkup
hawkup / Install Docker on Ubuntu.md
Last active Mar 28, 2018
Install Docker on Ubuntu 14.04
View Install Docker on Ubuntu.md

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 Jun 21, 2017
Install Clojure on Ubuntu 14.04
View Install Clojure on Ubuntu.md

Prerequisite

  • Java

Installation

  • download clojure
wget http://repo1.maven.org/maven2/org/clojure/clojure/1.6.0/clojure-1.6.0.zip
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"
You can’t perform that action at this time.