Skip to content

Instantly share code, notes, and snippets.

@aknackd
aknackd / README.md
Last active May 18, 2022 09:46
Laravel Dusk for Selenium using Docker

Configuring Laravel Dusk for Selenium using Docker

Start Docker containers

First, we need to run a Selenium Hub and a Firefox Selenium node:

$ docker run -d --name hub -p 4444:4444 selenium/hub
$ docker run -d --name fx --link hub:hub selenium/node-firefox
@aknackd
aknackd / Application.php
Last active October 28, 2016 16:16
Laravel 5.3 helpers
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Traits\HasAppModelTrait;
class Application extends Model
{
use HasAppModelTrait;
@aknackd
aknackd / install-arch.sh
Last active March 5, 2020 14:37
Install Arch Linux on UEFI system with an encrypted LVM
##
## Parts taken from
## https://gist.github.com/mattiaslundberg/8620837
## https://gist.github.com/binaerbaum/535884a7f5b8a8697557
##
## Prefixes:
## archiso> - While booted in the Arch ISO
## chroot> - During setup after `arch-chroot`
## sh> - In shell, after setup has been completed (and Arch ISO unmounted)