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 | |
clear | |
echo "Installing the MUST! Updates" | |
apt-get -y update && apt-get -y install python-software-properties htop software-properties-common python g++ make build-essential cmake bison coreutils ubuntu-dev-tools libcurl4-openssl-dev autopoint re2c dnsutils libperl-dev libxml2-dev libxslt-dev vim vim-nox fontconfig | |
clear | |
echo "Installing for Ruby on Rails" | |
apt-get -y install curl ruby git-core libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 xml-core libxml2-dev libxslt1-dev autoconf libgdbm-dev automake libtool pkg-config libffi-dev | |
clear | |
echo "Installing PHP5" |
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
//////////////////////////////////////////// | |
// Assuming the URL is | |
// [http://example.com/request?abc=def] | |
// Will return in browser is a json | |
// { "abc": "def" } | |
// However when you try this, | |
// [http://example.com/request?capture=cat] | |
// This will return a text saying, | |
// "cat" | |
//////////////////////////////////////////// |
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
@mixin margin($size, $position: false) { | |
@if $position == false { | |
margin: $size !important; | |
} | |
@else { | |
margin-#{$position}: $size !important; | |
} | |
} | |
.no-margin { |
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
@mixin padding($size, $position: false) { | |
@if $position == false { | |
padding: $size !important; | |
} | |
@else { | |
padding-#{$position}: $size !important; | |
} | |
} | |
.no-padding { |
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
@mixin border($size, $position: false) { | |
@if $position == false { | |
border: $size !important; | |
} | |
@else { | |
border-#{$position}: $size !important; | |
} | |
} | |
.no-border { |
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 lang="en" @yield('html-attr')> | |
<head @yield('head-attr')> | |
@yield('head-pre') | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>@yield('title', config('app.title'))</title> | |
@yield('head') |
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 | |
apt-get install -y --force-yes php5.6-cli php5.6-dev \ | |
php5.6-pgsql php5.6-sqlite3 php5.6-gd \ | |
php5.6-curl php5.6-memcached \ | |
php5.6-imap php5.6-mysql php5.6-mbstring \ | |
php5.6-xml php5.6-zip php5.6-bcmath php5.6-soap \ | |
php5.6-intl php5.6-readline | |
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
@echo off | |
title Add Hosts | |
set arg1=%1 | |
set arg2=%2 | |
IF "%1"=="" goto empty | |
IF "%2"=="" goto empty | |
echo %arg1% %arg2% |
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
@echo off | |
title Add hosts | |
set /p ip=Enter IP: | |
set /p url=Enter URL: | |
echo %ip% : %url% | |
echo %ip% %url% >> %WINDIR%\System32\drivers\etc\hosts | |
goto commonexit |
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 | |
namespace App\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
class UserRequest extends FormRequest | |
{ | |
protected $base_rules = [ | |
'name' => 'required|string|max:255', |
OlderNewer