Skip to content

Instantly share code, notes, and snippets.

View karlkaebnick's full-sized avatar

Karl Kaebnick karlkaebnick

View GitHub Profile
@karlkaebnick
karlkaebnick / php_debugger_install_howto.md
Last active December 9, 2019 18:00
steps to install php debugger

Note: see https://xdebug.org/docs/install for installation notes

  • Update your system modules:
    sudo apt-get update; sudo apt-get dist-upgrade
  • Install pecl:
    sudo apt install php-pear
  • Install Xdebug:
    sudo pecl install xdebug
  • add
    zend_extension=/usr/lib/php/20180731/xdebug.so
@karlkaebnick
karlkaebnick / cleanup_branches.sh.md
Created January 9, 2020 18:40
Shell script to delete old git branches
#!/usr/bin/env bash

# Run the following 2 lines by hand - edit each output file to make sure there is nothing you want to keep

# git branch --all --sort=committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' > branch_info.txt

# cat branch_info.txt | sed -e "s/^  origin\///" -e "s/ .*//" > delete_me.txt