Skip to content

Instantly share code, notes, and snippets.

Working from home

Francis Gonzales FraGoTe

Working from home
View GitHub Profile
FraGoTe / pu2s3.php
Created Jun 6, 2022 — forked from vaibhavpandeyvpz/pu2s3.php
Upload files from public (or any) disk to AWS S3 in Laravel without using any external tools.
View pu2s3.php
use Illuminate\Support\Facades\Storage;
$public = Storage::disk('public');
$s3 = Storage::disk('s3');
$files = $public->files(null, true);
foreach ($files as $file) {
FraGoTe /
Created Aug 18, 2020 — forked from spalladino/
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
FraGoTe / 0_reuse_code.js
Created Jan 3, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Video.php
class Application_Model_DbTable_Video extends Zend_Db_Table_Abstract
protected $_name = 'VIDEO';
protected $_sequence = 'VIDEO_SEQ';
protected function
editableFieldsOf(array $data) {