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 Tests\Unit; | |
use Tests\TestCase; | |
class GoogleMailRepositoryTest extends TestCase | |
{ | |
public function testFindsMessage() | |
{ |
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 Tests\Unit; | |
use Mockery; | |
use Carbon\Carbon; | |
use Tests\TestCase; | |
use App\ScheduleProcessor; | |
use App\Contracts\MailMessage; | |
use Illuminate\Support\Collection; |
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
-- Get the addon namespace | |
local ADDON_NAME, private = ... | |
local deferframe = CreateFrame('Frame') | |
deferframe.queue = {} | |
local function runDeferred(thing) | |
local thing_t = type(thing) | |
if thing_t == 'string' and private[thing] then | |
private[thing](private) |
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 Symfony\CS\Config\Config; | |
use Symfony\CS\FixerInterface; | |
use Symfony\CS\Finder\DefaultFinder; | |
$fixers = [ | |
// 'psr0', // [PSR-0] Classes must be in a path that matches their namespace, be at least one namespace deep, and the class name should match the file name. | |
'encoding', // [PSR-1] PHP code MUST use only UTF-8 without BOM (remove BOM). |
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/php | |
<?php | |
echo PHP_EOL; | |
// output a little introduction | |
echo '>> Starting unit tests' . PHP_EOL; | |
// get the name for this project; probably the topmost folder name | |
$projectName = basename(getcwd()); |
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 | |
# Take ownership | |
find /mnt/{Movie-Drive/Movies,Tv-Drive/Tv-Shows}/ \( ! -user mymedia -o ! -group mymedia \) -exec chown mymedia:mymedia {} \+ | |
# Set correct permission | |
find /mnt/{Movie-Drive/Movies,Tv-Drive/Tv-Shows}/ -type d ! -perm 775 -exec chmod 775 {} \+ | |
find /mnt/{Movie-Drive/Movies,Tv-Drive/Tv-Shows}/ -type f ! -perm 664 -exec chmod 664 {} \+ | |
# Secure files |
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 | |
#================================================================================ | |
# virtualhost | |
# | |
# A fancy little script to setup a new virtualhost in Ubuntu based upon the | |
# excellent virtualhost (V1.04) script by Patrick Gibson <[email protected]> for OS X. | |
# | |
# This script has been tested on Ubuntu 7.10 (Gutsy Gibbon) with Apache2(!) and | |
# probably works on Debian as well, but this has not been tested (yet). If you use | |
# this script on other Linux distributions and can confirm it to work I would like to hear |
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 | |
SETLOCAL | |
::Minecraft backup script | |
::You need to install 7-Zip first. It can be found here: http://www.7-zip.org/ | |
::Please check the path section first before running! | |
::--------------------------------------------------------------------------------------------------------------------------------------------------------- | |
::Path section | |
::Set this variable to your Minecraft path. It should be ok for every Windows 7 OS. |
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 | |
/** | |
* Blizzard to Wowhead converter | |
* | |
* Converts Blizzard's talent string and class id into Wowhead's (shorter) talent string | |
* | |
* @author Gizzmo <[email protected]> | |
* | |
* @param string|int $class Blizzard's class id or class name |