Last active
January 16, 2020 16:00
-
-
Save danhanfry/30c6dd5c798c2d5249c046ba7dc72149 to your computer and use it in GitHub Desktop.
Notas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copiar Directorios | |
cp -a directorioA directorioB | |
cp -a -r -n directorioA directorioB | |
# Resetear Git | |
git fetch origin | |
git reset --hard origin/master | |
# Cambiar grupo y administrador Directorios | |
chown -R grupo directorio | |
chown -R :grupo directorio | |
# Borrar directorio y archivos | |
rm -rfv directorio | |
unzip vendor.zip | |
sudo chown -R www-data:www-data | |
/etc/init.d/httpd restart | |
/scripts/rebuildhttpdconf | |
find /etc -type f -printf "%Cm-%CY %p\\n" | grep "^03-2018" | |
/var/cpanel/userdata | |
https://www.servint.net/university/article/the-tech-bench-changing-a-document-root-in-cpanel/ | |
DNS resolver | |
/etc/sysconfig/network-scripts | |
git fetch origin | |
git reset --hard origin/master | |
Puppetter | |
yum -y install libX11 libXcomposite libXcursor libXdamage libXext libXi libXtst cups-libs libXScrnSaver libXrandr alsa-lib pango atk at-spi2-atk gtk3 | |
Instalar node | |
https://tecadmin.net/install-latest-nodejs-npm-on-ubuntu/ | |
# Otorgar privilegios en postgres | |
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO node_admin_pg; | |
# Ruta Vesta | |
/usr/local/vesta/data/templates/web/nginx/php-fpm | |
WSL crear variable | |
echo 'alias explorer="explorer.exe ."' >> ~/.bashrc | |
source ~/.bashrc | |
# Ppara poder conectar un ubuntu wsl al postgress local usa modifica pg_hba.conf | |
Paypal | |
https://developer.paypal.com/demo/checkout/#/pattern/server | |
# Crear certificado Comodin nginx | |
https://medium.com/@utkarsh_verma/how-to-obtain-a-wildcard-ssl-certificate-from-lets-encrypt-and-setup-nginx-to-use-wildcard-cfb050c8b33f | |
----------- Todo lo que no esta configurado se envia a html default | |
server { | |
listen IP:80 default_server; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name localhost; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
} | |
server { | |
listen IP:443 ssl default_server; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name localhost; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
ssl_certificate /etc/nginx/ssl/nginx.crt; | |
ssl_certificate_key /etc/nginx/ssl/nginx.key; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment