Skip to content

Instantly share code, notes, and snippets.


Cid Lopes supercid

View GitHub Profile
supercid / explodeTags.php
Created Jun 19, 2018
Explode tags comma delimited
View explodeTags.php
* Overridden product meta data model.
* This model is used as the data source when generating the tagging elements
* on the product page, and when making server-to-server API calls to Nosto.
class My_Nosto_Model_Meta_Product extends Nosto_Tagging_Model_Meta_Product
supercid /
Created Jun 6, 2018
Enable xdebug for command line applications
export XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9002 remote_host= remote_connect_back=0"
supercid / supress.txt
Created May 9, 2018
PHP Storm Inspections
View supress.txt
/** @noinspection PhpUndefinedMethodInspection */
/** @noinspection PhpDeprecationInspection */
supercid / git-ignore-changes-already-committed-file
Created Apr 10, 2018
Git ignore changes to a particular file/path
View git-ignore-changes-already-committed-file
# Recently i've been struggling to ignore my local changes to a .env file that was already committed in a git repo.
# To locally ignore your changes to that particular file/folder and keep tracking in the remote, use this:
git update-index --skip-worktree <path-name>
supercid /
Last active Mar 7, 2018
Shopware install one line
git clone
cd shopware
chmod -R 755 var
chmod -R 755 web
chmod -R 755 files
chmod -R 755 media
chmod -R 755 engine/Shopware/Plugins/Community
cd build/
ant configure
ant build-unit
supercid / .zshrc
Last active Jun 12, 2019
My zshrc config
View .zshrc
export PATH=$HOME/bin:/usr/local/bin:$PATH
source <(antibody init)
# Path to your oh-my-zsh installation.
export ZSH=/Users/alcidemar/.oh-my-zsh
#export NVM_DIR="$HOME/.nvm"
#. "/usr/local/opt/nvm/"
# The shit above slows down the shell by 3 seconds! Load manually when needed
alias loadnvm=". /usr/local/opt/nvm/"

Keybase proof

I hereby claim:

  • I am supercid on github.
  • I am supercid ( on keybase.
  • I have a public key ASDfn2eux4enGBYnftuNim9XsHvKVPtOOrMp0hDbpzcCjwo

To claim this, I am signing this object:

supercid /
Created Aug 8, 2017 — forked from stefansundin/
Git pre-commit check to stop accidental commits to master and develop branches. There is also a variant with a core.whitespace check.
# This gist contains pre-commit hooks to prevent you from commiting bad code or to the wrong branch.
# There are four variants that I have built:
# - pre-commit: stops commits to "master" and "develop" branches.
# - pre-commit-2: also includes a core.whitespace check.
# - pre-commit-3: the core.whitespace check and an EOF-newline-check.
# - pre-commit-4: only the core.whitespace check.
# Set desired version like this before installing:
# FILE=pre-commit
supercid / Run in LOCAL terminal...
Created Jul 17, 2017 — forked from jswartwood/Run in LOCAL terminal...
Automatic Git deploys on Dreamhost
View Run in LOCAL terminal...
# Replace any brackets with real values
# Try to ssh in to DREAMHOST (ensure it no longer asks for a PW); you may want to restart Terminal
ssh [user]@[host]
cd ~
mkdir [mydomain_com].git
cd [mydomain_com].git
git init --bare
vi hooks/post-receive
# Enter the code from the "post-receive" file (in this gist); save + quit