Skip to content

Instantly share code, notes, and snippets.

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

Kenrique Ortega kenriortega

🏠
Working from home
View GitHub Profile
@kenriortega
kenriortega / setupiisforsslperfectforwardsecrecy_v17.ps1
Created January 31, 2023 19:41 — forked from jbratu/setupiisforsslperfectforwardsecrecy_v17.ps1
Great powershell script for tightening HTTPS security on IIS and disabling insecure protocols and ciphers. Very useful on core installations.
# Copyright 2019, Alexander Hass
# https://www.hass.de/content/setup-microsoft-windows-or-iis-ssl-perfect-forward-secrecy-and-tls-12
#
# After running this script the computer only supports:
# - TLS 1.2
#
# Version 3.0.1, see CHANGELOG.txt for changes.
Write-Host 'Configuring IIS with SSL/TLS Deployment Best Practices...'
Write-Host '--------------------------------------------------------------------------------'
@kenriortega
kenriortega / dotnet-core.yml
Created September 13, 2022 00:49 — forked from brianmed/dotnet-core.yml
Github Actions Pipeline for dotnet core deploying into DigitalOcean
name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
@kenriortega
kenriortega / n8n configuration files
Created September 9, 2022 12:36 — forked from khpraful/n8n configuration files
n8n configuration files for kubernetes deployment
n8n configuration files for kubernetes deployment
@kenriortega
kenriortega / elasticsearch.fsx
Created April 12, 2022 22:02 — forked from mjul/elasticsearch.fsx
Elasticsearch in F# example
// paket add nuget NEST
#I "../../packages"
#r "Elasticsearch.Net/lib/net46/Elasticsearch.Net.dll"
#r "NEST/lib/net46/Nest.dll"
open System
//open Elasticsearch.Net
open Nest
@kenriortega
kenriortega / .block
Last active March 28, 2022 11:48 — forked from Berzeg/.block
Electrocardiogram
license: gpl-3.0
height: 300
package query_builder
import (
"strings"
"strconv"
"html/template"
"fmt"
)
type DynamicQueryBuilder string
@kenriortega
kenriortega / README.md
Created March 11, 2022 02:43 — forked from goliatone/README.md
Postgres TRIGGER to call NOTIFY with a JSON payload

This TRIGGER function calls PosgreSQL's NOTIFY command with a JSON payload. You can listen for these calls and then send the JSON payload to a message queue (like AMQP/RabbitMQ) or trigger other actions.

Create the trigger with notify_trigger.sql.

When declaring the trigger, supply the column names you want the JSON payload to contain as arguments to the function (see create_triggers.sql)

The payload returns a JSON object:

@kenriortega
kenriortega / lambda-vpc.yml
Created February 26, 2022 01:00 — forked from ultimagriever/lambda-vpc.yml
SAM Template with VPC
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
InternetGateway:
@kenriortega
kenriortega / gist:87c8d1be0c2372670bf5d07717dbcaca
Created January 13, 2022 14:36 — forked from technoweenie/gist:1072829
.netrc file so you can push/pull to https git repos without entering your creds all the time
machine github.com
login technoweenie
password SECRET
machine api.github.com
login technoweenie
password SECRET