Skip to content

Instantly share code, notes, and snippets.

View milindsingh's full-sized avatar
:octocat:
building innovative products

Milind Singh milindsingh

:octocat:
building innovative products
View GitHub Profile
@milindsingh
milindsingh / bb8-from-starwars-with-svg-gsap.markdown
Created February 12, 2021 20:44
BB8 from Starwars ⚾️ – with SVG & GSAP

BB8 from Starwars ⚾️ – with SVG & GSAP

Droids 🤖

I'm not a blockbuster kind of guy, but I just can't resist when it comes to Starwars. It's such a captivating saga. The divine Force that connects us all, the inner battle against evil, and of course the little companion droids. BB8 is such a well designed character. While recognising some reused features from R2D2's lovable personality, we also so see a reinvented droid with his own quirky style and functionality.

Making a BB8 graphic (SVG) and bringing him to life (GSAP) was my way of getting some quality time and getting to know the little guy.

@milindsingh
milindsingh / commands.sh
Last active December 21, 2020 15:59
Magento 2 Commands
# kill all consumers
pgrep -u "$(whoami)" -f "[q]ueue:consumers:start" | tee /dev/stderr | awk '{print $1}' | xargs -r kill
# top 15 process
ps aux | awk '{print $2, $4, $11, $12, $13, $14}' | sort -k2r | head -n 15
@milindsingh
milindsingh / mysql-docker.sh
Created January 14, 2020 17:17 — 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
@milindsingh
milindsingh / WebsiteAndStoreCreator.php
Created February 20, 2019 09:23 — forked from 0-Sony/WebsiteAndStoreCreator.php
Magento 2 : Create Programmatically Website/Store/StoreGroup
<?php
/**
* This file is part of Namespace for Magento.
*
* @license All rights reserved
* @author Phuong LE <phuong.le@agence-soon.fr> <@>
* @category Namespace
* @package Namespace_Core
* @copyright Copyright (c) 2016 Agence Soon (http://www.agence-soon.fr)
*/
@milindsingh
milindsingh / install_lamp_18.sh
Last active February 18, 2019 08:41 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 18.04 - PHP development (php 7.2, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 18.04 dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2