Skip to content

Instantly share code, notes, and snippets.

View Krato's full-sized avatar
🗺️
Working!

Eric Lagarda Krato

🗺️
Working!
View GitHub Profile
@thesafaraliyev
thesafaraliyev / .env
Last active October 5, 2023 14:07
Laravel with Localstack S3 and SQS setup
FILESYSTEM_DRIVER=s3
QUEUE_CONNECTION=sqs
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=bucket1
AWS_ENDPOINT=http://localhost:4566/
AWS_USE_PATH_STYLE_ENDPOINT=true
SQS_QUEUE=queue1
SQS_PREFIX=http://localhost:4566/000000000000/
@Krato
Krato / Laravel Nova snippets.md
Last active November 25, 2020 23:02
A set of snippets I use in Laravel Nova

A set of snippets I use in Laravel Nova

Snippets

Vue,js devtools (Only with manual installation)

cd ./nova 
yarn
mv webpack.mix.js.dist webpack.mix.js
@alairock
alairock / Stripe.php
Last active August 29, 2020 19:37
Get a Stripe token in PHP/Laravel. Helpful when testing.
<?php
Route::get('/stripetoken', function()
{
$client = new \GuzzleHttp\Client();
$pubKey = 'pk_test_xxxxxxxxxxxxx';
$cardNumber = "4242424242424242";
$cvc = "123";
$expMonth = "11";
$expYear = "2018";
@vjandrea
vjandrea / phpversion.sh
Last active June 19, 2023 20:44
Change php cli version in plesk
#!/bin/sh
printf "Switching php to version 5.6 with symlinks.\n"
printf "Press any key to continue...\n"
read CONTINUE
printf "Creating backups..."
# Backup original binaries
@cferdinandi
cferdinandi / foreach.js
Last active October 1, 2020 08:01
A simple forEach() implementation for Arrays, Objects and NodeLists. Forked from ForEach.js by Todd Motto. https://github.com/toddmotto/foreach
/**
* A simple forEach() implementation for Arrays, Objects and NodeLists
* @private
* @param {Array|Object|NodeList} collection Collection of items to iterate
* @param {Function} callback Callback function for each iteration
* @param {Array|Object|NodeList} scope Object/NodeList/Array that forEach is iterating over (aka `this`)
*/
var forEach = function (collection, callback, scope) {
if (Object.prototype.toString.call(collection) === '[object Object]') {
for (var prop in collection) {
@achoukah
achoukah / blank-html-page.html
Last active April 11, 2024 19:41
html blank page
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description" content="Webpage description goes here" />
<meta charset="utf-8">
<title>Change_me</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="">
<link rel="stylesheet" href="css/style.css">