Skip to content

Instantly share code, notes, and snippets.

View suciu's full-sized avatar
🎯
Focusing

Suciu Daniel suciu

🎯
Focusing
View GitHub Profile
@suciu
suciu / file.liquid
Created July 21, 2020 12:39 — forked from veganista/file.liquid
Debugging Objects in Shopify Templates
<script>console.log({{ product | json }});</script>
@suciu
suciu / mysql-docker.sh
Created November 5, 2018 11:07 — forked from spalladino/mysql-docker.sh
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
@suciu
suciu / README-Template.md
Created February 27, 2018 12:15 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@suciu
suciu / CsvResponse.php
Created January 30, 2018 13:48 — forked from mathewbyrne/CsvResponse.php
A small Symfony 2 class for returning a response as a CSV file. Based on the Symfony JsonResponse class.
<?php
namespace Jb\AdminBundle\Http;
use Symfony\Component\HttpFoundation\Response;
class CsvResponse extends Response
{
protected $data;