Skip to content

Instantly share code, notes, and snippets.

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

Ronny Zapata ronnysuero

🏠
Working from home
View GitHub Profile
set SERVEROUTPUT on size 100000;
DECLARE
VARIABE NUMBER;
BEGIN
VARIABE := IMPORTAR_PAISES_PKG.GUARDAR_PAISES( 26, 1, 'PRUEBA PARAM 1', 'PRUEBA PARAM 2', 1, 1 );
dbms_output.put_line(VARIABE);
END;
@ronnysuero
ronnysuero / .htaccess
Created January 26, 2016 16:44 — forked from keithics/.htaccess
Laravel and Shared hosting - Hostgator and without virtual host
AddHandler application/x-httpd-php53 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /public_html/DOMAIN.COM/public
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
@ronnysuero
ronnysuero / git lg
Last active January 26, 2019 15:25
git color
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@ronnysuero
ronnysuero / .gitconfig
Created July 17, 2017 15:08 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
/*
ELMAH - Error Logging Modules and Handlers for ASP.NET
Copyright (c) 2004-9 Atif Aziz. All rights reserved.
Author(s):
Atif Aziz, http://www.raboof.com
Phil Haacked, http://haacked.com
@ronnysuero
ronnysuero / rowtable.sql
Last active October 25, 2018 17:32
Total Rows By Table Sql Server
WITH UnUsedTables (
TableName
,TotalRowCount
,CreatedDate
,LastModifiedDate
)
AS (
SELECT DBTable.NAME AS TableName
,PS.row_count AS TotalRowCount
,DBTable.create_date AS CreatedDate
@ronnysuero
ronnysuero / ElmahSqlServer.sql
Last active December 26, 2018 18:48
ElmahCore Sql Server
/*
ELMAH - Error Logging Modules and Handlers for ASP.NET
Copyright (c) 2004-9 Atif Aziz. All rights reserved.
Author(s):
Atif Aziz, http://www.raboof.com
Phil Haacked, http://haacked.com
@ronnysuero
ronnysuero / ElmahMySql.sql
Created December 26, 2018 18:50
ElmahMySql
-- ELMAH - Error Logging Modules and Handlers for ASP.NET
-- Copyright (c) 2004-9 Atif Aziz. All rights reserved.
--
-- Author(s):
--
-- Nick Berardi, http://www.coderjournal.com
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@ronnysuero
ronnysuero / gist:9d6d924f78f854921451f4a25df59c6f
Last active August 6, 2019 14:03
Diferentes appsettings.json en netcore
-- Colocar esta seccion en Program.cs
public static IWebHostBuilder CreateWebHostBuilder(string[] args)
{
return WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.ConfigureAppConfiguration((hostingContext, config) =>
{
config.AddJsonFile($"appsettings.release.json", true, true)
.AddJsonFile($"appsettings.test.json", true, true)
.AddJsonFile($"appsettings.json", true, true);