Skip to content

Instantly share code, notes, and snippets.

View seanbuscay's full-sized avatar

Sean Buscay seanbuscay

View GitHub Profile
$.url().param('search');
git log --pretty=oneline --abbrev-commit -10
@seanbuscay
seanbuscay / which_conf.sh
Last active September 7, 2018 19:28
Determine which mysql config files were loaded upon start-up.
mysql --help | grep "Default options" -A 1
$ php -i | grep 'Configuration File'
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
# Get apache params
source /etc/apache2/envvars ; apache2 -V
# Get aapche modules
source /etc/apache2/envvars ; apache2 -l
git config --add --global core.filemode false
create database dbname;
use dbname;
source dbname.sql;
@seanbuscay
seanbuscay / style-attribute-removal.txt
Created August 24, 2014 22:57
Regex to remove style attributes with search and replace in most text editors.
style=".*?"