Skip to content

Instantly share code, notes, and snippets.

View supercid's full-sized avatar

Cid Lopes supercid

View GitHub Profile
@supercid
supercid / enable_xdebug_cli.sh
Created June 6, 2018 11:35
Enable xdebug for command line applications
export XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9002 remote_host=127.0.0.1 remote_connect_back=0"
@supercid
supercid / explodeTags.php
Created June 19, 2018 08:12
Explode tags comma delimited
<?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
supercid / brew_cask.txt
Created December 25, 2018 14:57
brew cask installed
chromedriver
docker-toolbox
filezilla
firefox
java8
kap
sourcetree
upterm
virtualbox
viscosity
@supercid
supercid / brew_packages.txt
Last active December 25, 2018 15:11
mbp15-all brew packages installed
ant
getantibody/tap/antibody
apache-spark
bat
bower
cscope
curl
diff-so-fancy
wagoodman/dive/dive
dnsmasq
{
"Ansi 6 Color" : {
"Green Component" : 0.72156862745098038,
"Blue Component" : 0.71764705882352942,
"Red Component" : 0.75686274509803919
},
"Tags" : [
],
"Ansi 12 Color" : {
@supercid
supercid / git-fav-aliases
Created December 31, 2018 09:45
git most used aliases
gaa='git add --all'
gfo='git fetch origin'
gb='git branch'
gcb='git checkout -b'
gbnm='git branch --no-merged'
glgga='git log --graph --decorate --all'
gss='git status -s'
gup='git pull --rebase'
gupv='git pull --rebase -v'
gwch='git whatchanged -p --abbrev-commit --pretty=medium'

Profiler

This is a simple PHP profiler based on syslog and ticks.

Killer feature is that it doesn't need to be included inside statements but only prepend your scripts.

@supercid
supercid / tmux.conf
Last active March 15, 2019 07:28 — forked from rajanand02/tmux.conf
Tmux configurations with status bar theme
# set prefix to control-f
set -g prefix C-f
#unbind system defined prefix
unbind C-b
# helps in faster key repetition
set -sg escape-time 0
# start session number from 1 rather than 0
@supercid
supercid / osx-for-hackers.sh
Created March 27, 2019 11:40 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx

Terminal Tips


My whole setup is now versioned in a public dotfiles repository. You can either follow this guide and install everything manually, however i do recommend that you fork the repo and tweak with your own preferences.

iTerm