Advanced Search
Search Results
110 total results found
React
Ruby on rails
PostgreSQL
NestJS
.NET
DevOps
Python - Books
Django for beginners - Learn Web Development http://cloud.juannavas.xyz/index.php/s/bDMiyTeoDczfrYy Lightweight Django - Using REST, Websockets & Backbone [Elman & Lavin 2014-11-13] http://cloud.juannavas.xyz/index.php/s/CwW3oBxy8KHr8yD Flask Web D...
Regex
Email - General Email Regex (RFC 5322 Official Standard) (?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\...
Laravel - homestead
https://www.youtube.com/watch?v=rs2Hzx4qBm8 composer create-project --prefer-dist laravel/laravel revalTest cd revalTest composer require laravel/homestead --dev vendor/bin/homestead make vagrant up vagrant ssh
PHP - Format Datetime
https://stackoverflow.com/questions/33854482/php-carbon-get-today-date-by-formating-date $timestamp = strtotime($withdraw->timestamp); $newDate = date('Y-m-d H:i:s', $timestamp); $dt = Carbon::now() var_dump($dt->toDateTimeString() == $dt); ...
PHP - Instalar composer
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer chmod +x /usr/local/bin/composer
SSH Config
ssh-keygen -t rsa -b 4096 -C "[email protected]" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa #linux sudo apt-get install xclip xclip -sel clip < ~/.ssh/id_rsa.pub # Mac pbcopy < ~/.ssh/id_rsa.pub # ssh-copy-id root@host
Django - templates
https://github.com/geex-arts/django-jet
Install MySQL
sudo apt-get install mysql-server # Allow remote access sudo ufw allow mysql # Start the MySQL service systemctl start mysql # Launch at reboot systemctl enable mysql # to mysql shell /usr/bin/mysql -u root -p
Instalar Node.js
sudo apt-get install curl software-properties-common curl -sL https://deb.nodesource.com/setup_12.x | sudo bash - sudo apt-get install nodejs # Yarn curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.co...
Configuración para react router en nginx
# En el archivo /etc/nginx/conf.d/default.conf # dentro de server {} # debe estar: location / { root /usr/share/nginx/html; index index.html index.htm; try_files $uri /index.html; }
Instalar Gitea en Ubuntu
Fuente https://www.vultr.com/docs/how-to-install-gitea-on-ubuntu-18-04 Prerequisitos Instancia Ubuntu 18.04 con al menos 2 CPU cores y 1 GB RAM Non-root user with sudo privileges. Nginx Git MariaDB Crear usuario git que usará Gitea sudo adduser \ ...
Django - React
https://scotch.io/tutorials/build-a-to-do-application-using-django-and-react
Ejemplos de Dockerfile
Para deploy de node.js app FROM node:10 # Create app directory WORKDIR /usr/src/app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copied # where available (npm@5+) COPY package*.json ./ RUN ...
Comandos NGINX
service nginx start
Nginx config laravel
location / { try_files $uri $uri/ /index.php?$query_string; } # pass PHP scripts to FastCGI server # location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index...
Linux firewall security
sudo apt-get install ufw sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow 22/tcp sudo ufw allow 443/tcp sudo ufw enable sudo ufw status sudo ufw reload sudo ufw disable #Fail2ban sudo apt-get update sudo apt-get instal...
CMS Node.js
https://keystonejs.com/ https://strapi.io/ https://apostrophecms.org/
MySQL - Instalar mysqldump
sudo apt-get install mysql-client # mysqldump path /usr/bin/mysqldump
Instalar redis-docker
docker run --name redis -p 6379:6379 -d redis # dentro del contenedor configurar password #para entrar al contenedor docker exec -ti redis /bin/bash # luego redis-cli CONFIG SET requirepass "yourpassword" AUTH yourpassword
Install redis
sudo apt-get install redis-server sudo systemctl enable redis-server.service #test redis-cli redis-cli 127.0.0.1:6379> ping PONG 127.0.0.1:6379>