| Pre-Regged |
|---|
This file contains hidden or 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
| List<String> animals = new ArrayList<>(); | |
| // Adding new elements to the ArrayList | |
| animals.add("Lion"); | |
| animals.add("Tiger"); | |
| animals.add("Cat"); | |
| animals.add("Dog"); | |
| animals.add("Cuy"); |
This file contains hidden or 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
| worker_processes auto; | |
| events { | |
| # Allows up to 1024 connections, can be adjusted | |
| worker_connections 1024; | |
| } | |
| # RTMP configuration | |
| rtmp { | |
| server { | |
| listen 1935; # Listen on standard RTMP port |
This file contains hidden or 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
| <?php | |
| /* | |
| Created by: craig@123marbella.com 16/03/2014 | |
| Name of script: Create WordPress Admin User | |
| Description: This script will create an admin user in wordpress | |
| Usage: Create a new file in the root of the hosting account and drop this code into it then execute the script through the browser. |
This file contains hidden or 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
| #migration | |
| rails g migration AddConditionableToConditionalObjetives conditionable:references:\{polymorphic\} | |
| #migration | |
| rails g model ConditionalObjetive conditionable:references:\{polymorphic\} | |
| #generate | |
| class AddConditionableToConditionalObjetives < ActiveRecord::Migration |
This file contains hidden or 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
| user www-data; | |
| worker_processes 4;#nproc lscpu | |
| pid /run/nginx.pid; | |
| include /etc/nginx/modules-enabled/*.conf; | |
| events { | |
| worker_connections 1024; #ulimit -n | |
| multi_accept on; | |
| use epoll; | |
| } |
This file contains hidden or 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
| apt update | |
| apt-get remove docker docker-engine docker.io | |
| apt install docker.io | |
| systemctl status docker | |
| docker run -d --restart=unless-stopped -p 8080:80 -p 8443:443 --privileged rancher/rancher:latest --acme-domain rancher.carlosmto.com | |
| docker ps | |
| #https://rancher.com/docs/rancher/v2.5/en/quick-start-guide/workload/quickstart-deploy-workload-ingress/ |
feat: Agrega una nueva feature para el usuario, está feature puede ser un cambio en el comportamiento esperado de la aplicación
fix: Arregla un bug
docs: Documentación
style: Formato en el código
refactor: Reescribe estructura pero no cambia el comportamiento
This file contains hidden or 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
| builder.Services.AddDbContextFactory<TemplateContext>(opt => { | |
| var dbHost = Environment.GetEnvironmentVariable("DB_HOST"); | |
| var dbPort = Environment.GetEnvironmentVariable("DB_PORT"); | |
| var dbUser = Environment.GetEnvironmentVariable("DATABASE_USER"); | |
| var dbPassword = Environment.GetEnvironmentVariable("DATABASE_PASSWORD"); | |
| var dbName = Environment.GetEnvironmentVariable("DB_NAME"); | |
| var connectionString = $"Server={dbHost};port={dbPort};user id={dbUser};password={dbPassword};database={dbName};pooling=true"; |