wget https://github.com/bcicen/ctop/releases/download/v0.7.2/ctop-0.7.2-linux-amd64 -O /usr/local/bin/ctop
chmod +x /usr/local/bin/ctop
hostname -I | awk '{print $1}'
I'm using debian-host
on /etc/hosts inside the docker container
#!/bin/sh | |
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` | |
# Determine if a file list is passed | |
if [ "$#" -eq 1 ] | |
then | |
oIFS=$IFS | |
IFS=' |
#!/bin/bash | |
cd ~/Sites | |
composer create-project shopware/composer-project --no-interaction --stability=dev shopware | |
cd shopware | |
MYSQL_ENV_MYSQL_HOST='mysql' | |
# Setup variables to populate the .env file | |
cp .env.example .env | |
sed -i -e 's*DB_DATABASE=composer*DB_DATABASE=shopware*g' .env | |
sed -i -e 's*DB_USERNAME=root*DB_USERNAME=homestead*g' .env |
#!/bin/sh | |
export PATH=/usr/local/bin:$PATH | |
ROOT=`git rev-parse --show-toplevel` | |
if [ ! -d "$ROOT/vendor" ]; then | |
echo "Run composer install to run checkstyles" | |
exit 1 | |
fi |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
source <(antibody init) | |
PATH="/Users/alcidemar/Library/Python/2.7/bin:${PATH}" | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/alcidemar/.oh-my-zsh | |
#export NVM_DIR="$HOME/.nvm" | |
#. "/usr/local/opt/nvm/nvm.sh" | |
# The shit above slows down the shell by 3 seconds! Load manually when needed | |
alias loadnvm=". /usr/local/opt/nvm/nvm.sh" |
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.
#!/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 |
# 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 |
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.
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' |