Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Francis Gonzales FraGoTe

🏠
Working from home
View GitHub Profile
@FraGoTe
FraGoTe / mysql-docker.sh
Created Aug 18, 2020 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
View mysql-docker.sh
# 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
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
<?php
class Application_Model_DbTable_Video extends Zend_Db_Table_Abstract
{
protected $_name = 'VIDEO';
protected $_sequence = 'VIDEO_SEQ';
protected function
editableFieldsOf(array $data) {