find ./ -type f | awk -F . '{print $NF}' | sort --unique
recursively list files by specific extensionfind . -type f -iname "*.css"
recursively delete them
find . -name "*.html" -type f -delete
find ./ -type f | awk -F . '{print $NF}' | sort --unique
recursively list files by specific extensionfind . -type f -iname "*.css"
find . -name "*.html" -type f -delete
sudo apt-get install libapache2-mod-geoip
sudo a2enmod rewrite sudo a2enmod geoip
# if country is PT
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^PT$
RewriteRule ^(.*)$ http://www.site.pt
# else
RewriteEngine on
RewriteRule ^(.*)$ http://www.site/en/
<directory /var/www/site/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</directory>
GeoIPEnable On GeoIPDBFile /usr/local/share/geoip/geoip.dat
Hide PHP on Apache and Apache itself: In httpd.conf ------------- ServerName localhost # ... # Minimize 'Server' header information ServerTokens Prod # Disable server signature on server generated pages ServerSignature Off # ... # Set default file type to PHP DefaultType application/x-httpd-php # ... php.ini ------------ ; ... expose_php = Off ; ...
tar zxvf eclipse-SDK-3.7.2-linux-gtk-x86_64.tar.gz
sudo mv -f eclipse /opt/ cd /opt/ sudo chown -R root:root eclipse sudo chmod -R +r eclipse
sudo touch /usr/bin/eclipse sudo chmod 755 /usr/bin/eclipse sudo nano /usr/bin/eclipse
#!/bin/sh #export MOZILLA_FIVE_HOME="/usr/lib/mozilla/" export ECLIPSE_HOME="/opt/eclipse" $ECLIPSE_HOME/eclipse $*
sudo nano /usr/share/applications/eclipse.desktop
[Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse IDE Exec=eclipse Icon=/opt/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;Application;Development; StartupNotify=true
/opt/eclipse/eclipse -clean &7) The update Site
if you have the following error:
PHP Fatal error: Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165
try this:
mkdir -p /tmp/pear/cache
git svn clone -rN --username username svn://some/repo localreponameCrie seu branch e mude pra ele:
git checkout -b branchnameNão altere o master branch diretamente, ele deve representar a repositório svn, sempre trabalhe nos branches. Você manda seu trabalho pro master apenas na hora de subir as alterações pro svn.
git checkout master git merge --squash minhas_paradasFaça o commit pro git:
git commit -a -m "Funcionalidade tal implementada."E agora pro svn:
git svn dcommitE é isso. Pra manter o seu master branch atualizado em relação ao repositório svn use o rebase do git-svn:
git checkout master git svn rebaseupdate from a svn
git svn fetch
$ rm -rf 'find . -type d -name .svn'or
find . -iname ".svn" -print0 | xargs -0 rm -r
sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd