Skip to content

Instantly share code, notes, and snippets.

@aminemat
aminemat / xdebug-cli.snippet
Last active May 24, 2019 06:32
enable xdebug in php-cli
export XDEBUG_CONFIG="idekey=PHPSTORM"
export PHP_IDE_CONFIG="serverName=cli"
;in php.ini
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=HOST_IP
xdebug.remote_port=9000
@aminemat
aminemat / guake-autorenaming-off.txt
Created January 25, 2016 15:11
Disable tab auto-renaming in Guake terminal
gconftool-2 --set /apps/guake/general/use_vte_titles --type boolean false
;/etc/fstab
//<IP>/media /mnt/nas cifs user,uid=1000,gid=100,rw,suid,credentials=<PATH_TO_CREDS_FILE>,file_mode=0777,dir_mode=0777 0 0
;uid and gis have to be the same in both the server and client
;change uid and gid in /etc/passwd
sudo find /home -uid OLD_UID -exec chown -h NEW_UID {} +
sudo find /home -gid OLD_GID -exec chgrp -h NEW_GID {} +
;mounting on mac
sudo mount -t nfs -o resvport,rw devbox.dev:SERVER_FOLDER CLIENT_FOLDER

Keybase proof

I hereby claim:

  • I am aminemat on github.
  • I am aminemat (https://keybase.io/aminemat) on keybase.
  • I have a public key ASBnX3X1oNXGpcF2xxfHmXdznERc4J4uQwEzghVd40_kvwo

To claim this, I am signing this object:

{
"data":{
"objects":[
{
"id":"52fdfc07-2182-654f-163f-5f0f9a621d72",
"name":"text bloc",
"thumbnail_url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYUAAADICAYAAAAHkv1OAAAgAElEQVR4Xu19B3hdV5Xur957l6xmuclFrnLvvdtxAglxSIC8gSEwzNDCMMDMezzgDRAeM/BomQklidPj3nuTe7dlW26y5Sqr9y6971/XV76yVa6kW6W1v89RpHvOPvv8e9/171X2Wi5lZeVNdfUN6Ki5u7u1eUl9fX1Htzvt525urb93T35np50sHXiPQcDd3b3Dd2lo6FhuddiJE19gDkb1Zsh2Uwg83N3gUlBY1OTn5+vE0OjQFQFFQBFQBCyBQHl5pZKCJYDUPhQBRUAR6AkIKCn0hFnUd1AEFAFFwEIIKClYCEjtRhFQBBSBnoCAkkJPmEV9B0VAEVAELISAkoKFgNRuFAFFQBHoCQgoKfSEWdR3UAQUAUXAQggoKVgISO1GEVAEFIGegICSQk+YRX0HRUARUAQshICSgoWA1G4UAUVAEegJCCgp9IRZ1HdQBBQBRcBCCCgpWAhI7UYRUAQUgZ6AgJJCT5hFfQdFQBFQBCyEgJKChYDUbhQBRUAR6AkIKCn0hFnUd1AEFAFFwEIIKClYCEjtRhFQBBSBnoCAkkJPmEV9B0VAEVAELISAkoKFgNRuFAFFQBHoCQgoKfSEWdR3UAQUAUXAQghUVVVr5TULYandKAKKgCLg9AgoKTj9FOoLKAKKgCJgOQSUFCyHpfakCCgCioDTI1BWVqHmI6efRX0BRUARUAQshIDVSCG/oAj5BcUoKChqd6i8prWWX9j2fW3dw37ae15791kIT4fpJjws2GZjCQsLafNZ7Y0jPLTt+9hhe/canzloQLLN3
{
"data": {
"icons": [
{
"id": "52fdfc07-2182-654f-163f-5f0f9a621d72",
"name": "check",
"thumbnail_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAA0klEQVQoU32RsRXCMAxEzzNQwQAwgNcIjBEGoIIKmnQMQChgBswOVCxADzRkBvHOTmIBNtc50ZfuJCO2FOwWgB0jq0cDbI7A9QYMBzAeonIggb0D3MUDrDOyPoj/kAIJzLfAs+kBjDhJRPxo1Yk/kAHYO0AUO7aevdXZKkxnVr6VIqTBrqAsgHL6s59PqHZAfQ5FDO2q5EIjxEzMpvV3ErMwE8VCO4nvxCmM3F/Sh9addaMvMB43ZUVbVmCAMt69Xb2cU4Vw3GIpuS31O+lu2E57A1p9enQ/fAxaAAAAAElFTkSuQmCC",
"content": "CskCCAESGWNrYXBraDdnNDAwN2wzZzV4NXUzbGNtNGEiqQIK4AGt7Hu34ivev4ZuFK5mZt4//Knx0k1iYD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADeLBglCAyqvzGThz8SX9G/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