Skip to content

Instantly share code, notes, and snippets.

View tallsam's full-sized avatar

yeehah tallsam

View GitHub Profile
@tallsam
tallsam / README.md
Created December 1, 2016 04:43 — forked from jehaby/README.md
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
    && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@tallsam
tallsam / Minimal Raspbian.md
Last active March 12, 2016 09:11 — forked from yeokm1/Minimal Raspbian.md
Set of commands to strip down the default Raspbian installation as of 20 September 2014
rm -rf python_games
rm -rf Desktop

sudo apt-get --auto-remove --purge remove aptitude aptitude-common aspell aspell-en cifs-utils dbus dbus-x11 dconf-gsettings-backend:armhf dconf-service debconf-i18n debian-reference-common debian-reference-en desktop-base desktop-file-utils dictionaries-common dillo esound-common ed fbset firmware-atheros firmware-brcm80211 firmware-libertas firmware-ralink firmware-realtek fontconfig fontconfig-config fonts-droid fonts-freefont-ttf galculator gconf-service gconf2 gconf2-common gdb gdbserver gettext-base ghostscript gir1.2-glib-2.0 glib-networking:armhf glib-networking-common glib-networking-services gnome-icon-theme gnome-themes-standard-data gpicview groff-base gsettings-desktop-schemas gsfonts gsfonts-x11 gtk2-engines:armhf gvfs:armhf gvfs-backends gvfs-common gvfs-daemons gvfs-fuse gvfs-libs:armhf hicolor-icon-theme idle idle-python2.7 idle-python3.2 idle3 jackd jackd2 java-common krb5-locales leafpad lightdm lightdm-gtk-greeter lua5.1 luajit lxappearance lxde 
#!/bin/bash
while :
do
clear
date +"%A %B %d, %Y at %T"
lines=`tput lines`
lines=`expr $lines - 5`
git --no-pager log --graph --decorate --pretty=oneline --abbrev-commit --color --all $* | head -n $lines
sleep 1
@tallsam
tallsam / xhprof_quick_and_dirty.md
Last active December 12, 2015 07:18 — forked from msonnabaum/xhprof_quick_and_dirty.md
setup xhprof on ubuntu 12.10 / apache

Install XHProf

Pear

sudo pear upgrade PEAR
sudo pecl install xhprof-0.9.2

From source

@tallsam
tallsam / problem_solver.info
Created May 23, 2012 06:15 — forked from nigelheap/problem_solver.info
problem_solver module
name = Problem solver
description = The module that will solve all your drupal problems.
package = Problems
version = 1.x
core = 7.x