Skip to content

Instantly share code, notes, and snippets.

View ziadoz's full-sized avatar

Jamie York ziadoz

View GitHub Profile
@ziadoz
ziadoz / index.html
Created January 26, 2024 17:46
HTML/CSS/JS Transition Height Slide
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
div.filters {
background: #999;
display: grid;
@ziadoz
ziadoz / index.html
Last active January 25, 2024 23:45
Select Date Dropdown / Input
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<style>
div.date-input:has(input:disabled) {
@ziadoz
ziadoz / enc-dec.sh
Created January 11, 2024 17:38
Bash/ZSH Encrypt/Decrypt File Aliases
#!/usr/bin/env bash
# @see: https://superuser.com/questions/370388/simple-built-in-way-to-encrypt-and-decrypt-a-file-on-a-mac-via-command-line
# @see: https://askubuntu.com/questions/1093591/how-should-i-change-encryption-according-to-warning-deprecated-key-derivat
alias decrypt="openssl enc -d -aes-256-cbc -md sha512 -pbkdf2 -iter 1000000 -in $1 -out $2"
alias encrypt="openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 1000000 -salt -in $1 -out $2"
@ziadoz
ziadoz / composer.json
Created January 11, 2024 17:33
Scrape Twitter using PHP and Symfony Panther
{
"require-dev": {
"symfony/panther": "^2.1",
"dbrekelmans/bdi": "^1.1"
}
}
@ziadoz
ziadoz / readme.MD
Created January 8, 2024 12:19
Laravel - Feature Flag Packages

Feature Flag Laravel Packages

Disable auto-discovery of the package in your composer.json file:

"extra": {
    "laravel": {
        "dont-discover": [
            "package-namespace/package-name"
 ]
@ziadoz
ziadoz / dedupe.txt
Created January 7, 2024 20:59
macOS - De-duplicate Photos
fdupes
------
https://superuser.com/questions/481456/finding-and-removing-duplicate-files-in-osx-with-a-script
https://bbs.archlinux.org/viewtopic.php?id=265148
https://askubuntu.com/questions/177346/how-to-delete-duplicate-files-with-fdupes
https://superuser.com/questions/386199/how-to-remove-duplicated-files-in-a-directory/691551#691551
fdupes -r /Volumes/files/Photos
@ziadoz
ziadoz / ExampleTest.php
Created January 3, 2024 17:29
Laravel Dusk - Disable Bootstrap 4 CSS Transitions
<?php
namespace Tests\Browser;
use Tests\DuskTestCase;
class ModalTest extends DuskTestCase
{
public function test_modal(): void
{
@ziadoz
ziadoz / BrowsingFailed.php
Last active March 18, 2024 17:43
Laravel Dusk Events
<?php
use Laravel\Dusk\Browser;
use Exception;
class BrowsingFailed
{
/**
* @param array $browsers array<\Laravel\Dusk\Browse>
*/
@ziadoz
ziadoz / readme.md
Created December 22, 2023 21:48
macOS - Restore Missing Finder Progress Window