Skip to content

Instantly share code, notes, and snippets.

View seanbuscay's full-sized avatar

Sean Buscay seanbuscay

View GitHub Profile
create database dbname;
use dbname;
source dbname.sql;
git config --add --global core.filemode false
# Get apache params
source /etc/apache2/envvars ; apache2 -V
# Get aapche modules
source /etc/apache2/envvars ; apache2 -l
$ php -i | grep 'Configuration File'
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
@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
git log --pretty=oneline --abbrev-commit -10
$.url().param('search');
cat /dev/null > largefile.txt
sudo dseditgroup -o edit -a `whoami` -t user _www