Skip to content

Instantly share code, notes, and snippets.

View ismailakbudak's full-sized avatar

Ismail Akbudak ismailakbudak

View GitHub Profile
@ismailakbudak
ismailakbudak / ubuntu-laravel.sh
Last active August 29, 2015 14:19
Laravel tools installation
#!/bin/bash
## Fancy echo
fancy_echo() {
printf "\n%b\n" "$1"
}
## Install php5
fancy_echo "Installing php5"
@ismailakbudak
ismailakbudak / ubuntu-rails.sh
Last active August 29, 2015 14:19
Ubuntu install ruby on rails environment
#!/bin/bash
## Exit trap
trap 'ret=$?; test $ret -ne 0 && printf "failed\n\n" >&2; exit $ret' EXIT
set -e
## Fancy echo
fancy_echo() {
printf "\n%b\n" "$1"
@ismailakbudak
ismailakbudak / ubuntu-tool.sh
Last active August 29, 2015 14:19
Install tools
#!/bin/bash
## Fancy echo
fancy_echo() {
printf "\n%b\n" "$1"
}
## Debian-Ubuntu package update
fancy_echo "Updating system packages ..."
sudo apt-get update
#!/bin/bash
# Yorum satırı
# İlk satırdaki komut ise yorum değildir.
# Bu satırın anlamı bu scripti bash shell de çalıştır.
# Terminali temizle komutu
clear
#!/bin/bash
# Bu kodları çalıştırmak için bu dosyayı name.sh olarak kayıt edip bulunduğu dizine gidin ve
# terminalden şu kodu çalıştırın
# sh name.sh /directory/subdirectory
# dosya isminden sonraki /directory/subdirectory yedeği oluşturulacak dizini belirtir
# Terminali temizle
clear