This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
## store the arguments given to the script | |
read oldrev newrev refname | |
# The deployed directory (the running site) | |
DEPLOYDIR=/var/www/html/ | |
# Repository Directory | |
REPODIR=$HOME/repo.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@servers(['web' => 'deploy-ex']) | |
@setup | |
$repo = '[email protected]:Servers-for-Hackers/deploy-ex.git'; | |
$release_dir = '/var/www/releases'; | |
$app_dir = '/var/www/app'; | |
$release = 'release_' . date('YmdHis'); | |
@endsetup | |
@macro('deploy', ['on' => 'web']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo ">>> Starting Install Script" | |
# Update | |
sudo apt-get update | |
# Install MySQL without prompt | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install monaco font | |
curl -kL https://raw.github.com/cstrap/monaco-font/master/install-font-ubuntu.sh | bash | |
# Add elementary update repository | |
sudo apt-add-repository ppa:versable/elementary-update | |
# Add Moca Repository | |
sudo add-apt-repository ppa:moka/stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<meta charset="utf-8"> | |
<!-- | |
Created using JS Bin | |
http://jsbin.com | |
Copyright (c) 2015 by anonymous (http://jsbin.com/tusafajege/1/edit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ini contoh file PHP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPONAME=$1 | |
REPODIR=$2 | |
### Setup A New Git Repository | |
mkdir $REPONAME | |
chown -R git:developers $REPODIR | |
chmod g+rws $REPODIR | |
cd $REPODIR | |
git init --bare |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install git-core cmake g++ libmysqlclient-dev \ | |
libxml2-dev libmcrypt-dev libicu-dev openssl build-essential binutils-dev \ | |
libcap-dev libgd2-xpm-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev \ | |
autoconf automake libtool libcurl4-openssl-dev \ | |
wget memcached libreadline-dev libncurses-dev libmemcached-dev libbz2-dev \ | |
libc-client2007e-dev php5-mcrypt php5-imagick libgoogle-perftools-dev \ | |
libcloog-ppl0 libelf-dev libdwarf-dev subversion python-software-properties \ | |
libmagickwand-dev libxslt1-dev ocaml-native-compilers libevent-dev | |
# Update GCC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository -y ppa:elementary-os/stable | |
sudo apt-get update | |
sudo apt-get install elementary-desktop | |
# To get over the wallpaper bug, open a terminal and paste the below oneliner: | |
gsettings set org.gnome.settings-daemon.plugins.background active true | |
# Also, if you want a closer look to Elementary OS, you should install plank, from ricotz PPA: | |
sudo add-apt-repository ppa:ricotz/docky | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
trait ModelTrait { | |
/** | |
* Get the very last record. | |
* | |
* @return static|null |