View servers.cmd
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 | |
:: WEMP Runner | |
:: rhz <rmrhz@tfwno.gf> | |
SETLOCAL | |
:: Server Runner | |
SET "root=%CD:~0,3%" | |
SET "dev=dev\" |
View composer.json
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
{ | |
"require": { | |
"vlucas/phpdotenv": "^2.5@dev", | |
"jeremykendall/php-domain-parser": "~2.0" | |
} | |
} |
View Request.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
<?php | |
namespace App\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
abstract class Request extends FormRequest | |
{ | |
/** | |
* Validation rules |
View labs.dev.conf
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
server { | |
listen 80; | |
server_name ~^(?<subdomain>.*)\.labs.dev$; | |
root "/srv/labs/$subdomain/public"; | |
index index.php; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} |
View foo.html
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
<div field='field_name'> | |
<span class='editable' data-field='field_name'>bar</span> | |
</div> |
View Controller.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
<?php | |
use Phalcon\Mvc\View; | |
class Controller extends \Phalcon\Mvc\Controller | |
{ | |
/** | |
* | |
* @return \Phalcon\Http\Response | |
*/ |
View Repository.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
<?php | |
class Repository | |
{ | |
/** | |
* Mass assignment based on fillable, hidden, and guarded attributes | |
* | |
* @param obj $model | |
* @param arr $insertArray |
View nginx.sh
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
# Install Nginx | |
echo "Installing Nginx.." | |
sleep 2 | |
cat <<EOF > /etc/yum.repos.d/nginx.repo | |
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/centos/6/\$basearch/ | |
gpgcheck=0 | |
enabled=1 | |
EOF |
View dl.rb
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
require 'open-uri' | |
urls = [ | |
'http://example.com/image.jpg', | |
'http://example.com/image2.jpg' | |
] | |
urls.each do |url| | |
open(url, :http_basic_authentication => [user, pass]) {|f| | |
File.open(File.basename(url),"wb") do |file| |
View spammer.rb
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
require 'curb' | |
x = 500 | |
i = 0 | |
while x > i do | |
# Creates a random string | |
o = [('a'..'z'), ('A'..'Z')].map { |i| i.to_a }.flatten | |
string = (0...10).map { o[rand(o.length)] }.join |
NewerOlder