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
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2022-12-22 12:34:38" build="220807"> | |
<value name="Language" type="string" data="en"/> | |
<value name="StartType" type="hex" data="02"/> | |
<value name="CmdLine" type="string" data=""/> | |
<value name="StartTasksFile" type="string" data=""/> | |
<value name="StartTasksName" type="string" data="{Shells::PowerShell Core}"/> | |
<value name="StartFarFolders" type="hex" data="00"/> |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "os", | |
"style": "diamond", |
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
Import-Module posh-git | |
Import-Module -Name Terminal-Icons | |
oh-my-posh --init --shell pwsh --config ~/scoop/apps/oh-my-posh/current/themes/gmay.omp.json | Invoke-Expression |
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
SmtpClient client = new SmtpClient("mysmtpserver"); | |
client.UseDefaultCredentials = false; | |
client.Credentials = new NetworkCredential("username", "password"); | |
MailMessage mailMessage = new MailMessage(); | |
mailMessage.From = new MailAddress("whoever@me.com"); | |
mailMessage.To.Add("receiver@me.com"); | |
mailMessage.Body = "body"; | |
mailMessage.Subject = "subject"; | |
client.Send(mailMessage); |
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
/* VIA CHOCO INSTALL: | |
* choco install msaccess2010-redist-x64 | |
* VIA NUGET INSTALL: | |
* dotnet add package System.Data.Odbc | |
* dotnet add package Dapper | |
* */ | |
using Dapper; | |
using System; | |
using System.Data.Odbc; |
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
# Base image | |
FROM php:7 | |
# Install dependencies | |
RUN apt-get update -y && apt-get install -y openssl zip unzip git | |
# Get & Install Composer in path | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN docker-php-ext-install pdo mbstring |
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
## Base image | |
FROM nginx:1.13.3-alpine | |
## Remove default nginx website | |
RUN rm -rf /usr/share/nginx/html/* | |
## overrides nginx defaults | |
COPY ./nginx-custom.conf /etc/nginx/conf.d/default.conf | |
## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder | |
COPY /dist /usr/share/nginx/html | |
CMD ["nginx", "-g", "daemon off;"] |
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
using Microsoft.Owin; | |
using Microsoft.Owin.Security.OAuth; | |
using Owin; | |
using System; | |
[assembly: OwinStartupAttribute(typeof(PortalProveedores.API.Startup))] | |
namespace PortalProveedores.API | |
{ | |
public partial class Startup | |
{ |
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
using System.Web.Http; | |
using Newtonsoft.Json.Serialization; | |
namespace PROYECTO.API | |
{ | |
public static class WebApiConfig | |
{ | |
public static void Register(HttpConfiguration config) | |
{ | |
//HABILITA CORS PARA TODA LA WEBAPI |