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
files: | |
"/etc/httpd/conf.modules.d/11-mpm.conf": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
LoadModule mpm_event_module modules/mod_mpm_event.so | |
"/etc/php.d/20-newrelic.ini": | |
mode: "000755" |
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\Validators; | |
class PasswordValidator | |
{ | |
public function validateLetters($attribute, $value) | |
{ | |
return preg_match('/\pL/', $value); | |
} |
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 | |
if [ ! -d .git ]; then | |
echo "Not a git repository!" | |
exit 1 | |
fi | |
currentBranch=`git status | grep "On branch" | awk '{ print $3 }'` | |
echo "You are on branch:" $currentBranch |
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 | |
if [ -z "$1" ] | |
then | |
echo "No database name supplied, usage:" | |
echo $0 database | |
exit 1 | |
fi | |
DBNAME=$1 |
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
Simple sidebar | |
The beginning | |
============= | |
(set: $money to 500) | |
You came to the lake and have some money with you. Stamina is irrelevant right now. |
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
/** | |
* To install, save this file as overnewser.user.js and drag/drop it into your chrome://extensions page | |
*/ | |
// ==UserScript== | |
// | |
// @name UnderNewser | |
// @description Skip annoying overnewser.com waiting time | |
// @namespace http://www.avramovic.info | |
// @author Nemanja (http://twitter.com/avramator) |