du -h --max-depth=1 | sort -hr
https://serverfault.com/a/857188
$ANDROID_HOME/tools/bin/sdkmanager --licenses
al crear un nuevo usuario ftp si el servidor no responde ejecutar:
service iptables stop
apt-get install proftpd
DED4-0A88-3A11-F9FDE
ssh-keygen -R server-name
ssh-keygen -R server.ip.addre.ss
ssh-keygen -R 202.54.1.5
ssh-keygen -R server1.example.com
ssh-keygen -t rsa
- (opción 1)
ssh-copy-id user@123.45.56.78
- Opción 2
cat ~/.ssh/id_rsa.pub | ssh root@desarrollo.cron.cl "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
tar -zcvf nombre-archivo.tar.gz nombre-directorio
npm install --global npm@latest
chmod g+rwx /root /root/.config /root/.config/configstore
ln [opción] [archivo o directorio de origen] [archivo o directorio destino]
Ejemplo:
ln -s /var/www/html/chile chile.cron.cl
<VirtualHost desarrollo.cron.cl>
DocumentRoot /var/www/html
ServerName desarrollo.cron.cl
ServerAlias desarrollo.cron.cl
</VirtualHost>
nano /etc/php5/apache2/php.ini
sudo /etc/init.d/apache2 restart
sudo service apache2 restart
Ver archivos que cambiaron desde hace 7 dias con las extenciones .php .css .js .styl .json .coffee .png .jpg .jpeg
git log --since={7.days.ago} --name-only --pretty=format:'' | sort -u | grep -E '\.(php|css|js|styl|json|coffee|png|jpg|jpeg)$'
git remote add origin git@github.com:sergiohidalgo/aaaaa.git
git push -u origin master
git fetch git://repository.domine/repo.git master:new_branch
copia desde el master de repo
hacia new_branch del repositorio donde se ejecuto el comando.
git checkout .
header("HTTP/1.1 301 Moved Permanently");
header("Location: /option-a");
exit();
header("HTTP/1.1 403 Forbidden");
header("Location: /");
exit();