Skip to content

Instantly share code, notes, and snippets.

View FraGoTe's full-sized avatar
Working from home

Francis Gonzales FraGoTe

Working from home
  • Lima, Perú
  • 14:09 (UTC -05:00)
View GitHub Profile
FraGoTe / pu2s3.php
Created June 6, 2022 15:33 — forked from vaibhavpandeyvpz/pu2s3.php
Upload files from public (or any) disk to AWS S3 in Laravel without using any external tools.
use Illuminate\Support\Facades\Storage;
$public = Storage::disk('public');
$s3 = Storage::disk('s3');
$files = $public->files(null, true);
foreach ($files as $file) {
FraGoTe /
Created August 18, 2020 22:42 — 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 January 3, 2016 22:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
FraGoTe / Video.php
Last active August 29, 2015 14:11 — forked from HarryR/Video.php
class Application_Model_DbTable_Video extends Zend_Db_Table_Abstract
protected $_name = 'VIDEO';
protected $_sequence = 'VIDEO_SEQ';
protected function
editableFieldsOf(array $data) {