I hereby claim:
- I am robbplo on github.
- I am robbin (https://keybase.io/robbin) on keybase.
- I have a public key ASAVGVxCyiCWGKbI1sGIgevz13Z5DeyGHOMI8GfTFusVQwo
To claim this, I am signing this object:
#!/bin/bash | |
export BIT_RECORD=1 | |
if [[ -z $1 ]]; then | |
echo "usage: bit-record [filename]" | |
echo "e.g. bit-record video.mp4" | |
exit 1 | |
fi |
function opendb | |
[ ! -f .env ] && { echo "No .env file found."; exit 1; } | |
set DB_CONNECTION (grep DB_CONNECTION .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
set DB_HOST (grep DB_HOST .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
set DB_PORT (grep DB_PORT .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
set DB_DATABASE (grep DB_DATABASE .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
set DB_USERNAME (grep DB_USERNAME .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
set DB_PASSWORD (grep DB_PASSWORD .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) |
function xdebug | |
set iniFileLocation "/usr/local/etc/php/7.4/conf.d/ext-debug.ini"; | |
set currentLine (cat $iniFileLocation | grep xdebug.so) | |
if string match -r \#zend_extension $currentLine | |
sed -i -e 's/^#zend_extension/zend_extension/g' $iniFileLocation | |
echo "xdebug is now active"; | |
else | |
sed -i -e 's/^zend_extension/#zend_extension/g' $iniFileLocation |
I hereby claim:
To claim this, I am signing this object: