sudo pear upgrade PEAR
sudo pecl install xhprof-0.9.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = Problem solver | |
description = The module that will solve all your drupal problems. | |
package = Problems | |
version = 1.x | |
core = 7.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/JeffreyWay/Laravel-Guard | |
# ruby 1.9.1 is the minimum req for this. Gem will still be verison 1.8.11 | |
sudo apt-get install ruby1.9.1 | |
ruby -v | |
gem -v | |
# php unit and PHP_Codecoverage | |
sudo pear channel-discover pear.phpunit.de | |
sudo pear channel-discover components.ez.no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hail Dries, full of cache. | |
Our Site is with thee. | |
Blessed art thou among developers, | |
and blessed is the code of thy fingers, | |
Drupal. | |
Holy Dries, Father of open source cms, | |
pray for us site builders, | |
now and at the hour of our launch. | |
Amen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pvponline": { | |
"type": "xpath", | |
"xpath": "div[contains(@class, 'comic')]" | |
}, | |
"oatmeal": { | |
"type": "xpath", | |
"xpath": "div[@id='comic']", | |
"cleanup": [ | |
"div[@id='content_footer2']" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Parse the following json to get the id. | |
# curl https://www.cloudflare.com/api_json.html -d 'a=rec_load_all' -d 'tkn=[API_KEY]' -d 'email=[EMAIL]' -d 'z=[ZONE]' | |
# add this to /etc/crontab - */5 * * * * root /root/cloudflare_ddns.sh | |
NEW_IP=`dig +short myip.opendns.com @resolver1.opendns.com` | |
CURRENT_IP=`cat /var/tmp/current_ip.txt` | |
echo "New Ip = ${NEW_IP}" |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +tallsam is my blockchain ID. https://onename.com/tallsam |
- For your local dev, create a
Dockerfile
that is based on your production image and simply installxdebug
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 \