Skip to content

Instantly share code, notes, and snippets.

View ZephiroRB's full-sized avatar
🏠
Working from home

Carlos Montalvo ZephiroRB

🏠
Working from home
View GitHub Profile
SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
Developer - 22222-00000-00000-00000-00000
Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B
Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89
Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC
https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/
@ZephiroRB
ZephiroRB / bug_or_problem.md
Created August 4, 2022 22:07
Bug or problem

Describe the bug

A clear and concise description of what the bug is.

Environment URL

Where is this occurring and more details about the environment url.

Relevant Queries or Mutations

If applicable, add queries or mutations that cause problems

Relevant screenshots

@ZephiroRB
ZephiroRB / patch.cs
Created March 1, 2022 16:47
Soporte para Resolvers
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";
@ZephiroRB
ZephiroRB / commit_conventional.md
Created January 4, 2022 04:55
Commit Conventional

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

@ZephiroRB
ZephiroRB / init.sh
Last active July 7, 2021 02:13
Rancher
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/
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;
}
@ZephiroRB
ZephiroRB / miration.rb
Last active May 8, 2020 00:04
Generate Migrate or Model with Polymorphic relationships
#migration
rails g migration AddConditionableToConditionalObjetives conditionable:references:\{polymorphic\}
#migration
rails g model ConditionalObjetive conditionable:references:\{polymorphic\}
#generate
class AddConditionableToConditionalObjetives < ActiveRecord::Migration
@ZephiroRB
ZephiroRB / sublime_hq_patches.md
Created February 27, 2020 02:31
Sublime HQ Patching Guide

Sublime Text 3

Sublime Text 3 (Build 3211)

Windows 32-bit

Reggable using Junk
Pre-Regged
<?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.
@ZephiroRB
ZephiroRB / nginx.conf
Created August 1, 2019 03:02 — forked from mfuzailzubari/nginx.conf
NGINX RTMP Configurations
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