Skip to content

Instantly share code, notes, and snippets.

View digitalgeneralist's full-sized avatar

Benjamin Sernji digitalgeneralist

View GitHub Profile
@digitalgeneralist
digitalgeneralist / firebase.json
Created August 11, 2017 16:53
Hosting React App on Firebase, PageSpeed Tools Insights needs Cache-Control for your js files (min. 1 week)
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [ {
"source" : "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
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
@bradwestfall
bradwestfall / gist:f5a010e96fb0c4d18556
Last active November 20, 2022 14:40
Pull Instagram Images via JavaScript