Skip to content

Instantly share code, notes, and snippets.

rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/
@mpaz-redstage
mpaz-redstage / samba_server.txt
Created July 9, 2019 19:37
Error samba server
Re: unable to start samba and system-config-samba on linux mint 18 mate
Post by altair4 » Sun Jul 10, 2016 1:32 pm
You can't see the shares or you can't see the D5758 box itself?
If it's the box you can't see:
Edit smb.conf:
CODE: SELECT ALL
@mpaz-redstage
mpaz-redstage / gist:a5d9b582612e8ee2ca806a690c6cd1f4
Created April 24, 2019 02:56
windows switcher linux ubuntu
https://ulauncher.io/
https://github.com/beajeanm/ulauncher-windows-switcher
@mpaz-redstage
mpaz-redstage / local_tunel.txt
Created April 23, 2019 20:45
local tunel using subdomain
https://github.com/localtunnel/localtunnel
lt --port 80 --subdomain mauricio
@mpaz-redstage
mpaz-redstage / tips_magento2.txt
Last active August 21, 2019 18:39
anotations redstage 2
//search url magento 2
select * from core_config_data where value like '%http%'
update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url';
update core_config_data set value = 'http://domainname/' where path = 'web/secure/base_url';
https://docs.nexcess.net/article/how-to-change-magento-base-urls.html
//clean cache and update everything
rm -rf var/view_preprocessed/* var/cache/* var/page_cache/* var/tmp/* var/generation/* pub/static/frontend/* var/generation/* var/di/* pub/static/*
php bin/magento c:f && php bin/magento c:c && php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento indexer:reindex && php bin/magento setup:static-content:deploy -f