Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| $(document).ready(function() { | |
| $('div').on('transitionend MSTransitionEnd webkitTransitionEnd oTransitionEnd', function(event) { | |
| // Do stuff after transition | |
| }); | |
| }); |
Install SleepWatcher using Homebrew:
sudo chown -R $(whoami) /usr/local
brew update
brew install sleepwatcher
Start the SleepWatcher service:
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Versions | |
| CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |
| { | |
| "repositories": [ | |
| { | |
| "type": "path", | |
| "url": "../relative/project/path" | |
| } | |
| ], | |
| "require": { | |
| "${project}": "dev-${branch}" | |
| } |
| -- PLANNR-7016: Duplicate EDI Statement Numbers | |
| -- https://github.com/PlannrCrm/plannr/pull/4593 | |
| -- | |
| -- Both queries below apply to provider_statements and bank_statements. | |
| -- Substitute the table name as needed. | |
| -- ============================================================ | |
| -- 1. Check whether any duplicate (firm_id, number) pairs exist | |
| -- Used in shouldRun() on the unique constraint migrations. |
| Community Bonus Pack | |
| -------------------- | |
| Homepage Download Links: https://web.archive.org/web/20150707182232/http://cbp.beyondunreal.com/download | |
| CBP 1 - 4 Installer, Zip, PS3 : http://www.mapraider.com/profiles/CommunityBonusPack/maps | |
| CBP 1 Installer, Zip, PS3: http://www.mapraider.com/maps/unreal-tournament-3/capture-the-flag/4322/Community-Bonus-Pack-3-Volume-1 | |
| CBP 1 Installer: http://www.fileplanet.com/188272/180000/fileinfo/Unreal-Tournament-3---Community-Bonus-Pack-3:-Volume-1 | |
| CBP 2 Installer, Zip, PS3: http://www.mapraider.com/maps/unreal-tournament-3/capture-the-flag/4343/Community-Bonus-Pack-3-Volume-2 |
| # Check for suspicious directories | |
| Test-Path "$env:APPDATA\Bluetooth" | |
| Test-Path "C:\ProgramData\USOShared" | |
| # Check for suspicious services | |
| Get-Service | Where-Object {$_.Name -like "*Bluetooth*"} | |
| # Check registry run keys | |
| Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" | |
| Get-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" |
| <?php | |
| use App\Models\Movie; | |
| use App\Models\User; | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Support\Facades\Schema; | |
| return new class extends Migration | |
| { |
| <?php | |
| namespace App\Models; | |
| // use Illuminate\Contracts\Auth\MustVerifyEmail; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Foundation\Auth\User as Authenticatable; | |
| use Illuminate\Notifications\Notifiable; | |
| use Spatie\Image\Enums\Fit; | |
| use Spatie\MediaLibrary\HasMedia; |