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
    
  
  
    
  | package main | |
| import ( | |
| "crypto/tls" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" | |
| "net/textproto" | 
  
    
      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
    
  
  
    
  | gci xmls | % { [xml]$x = gc $_; $c = $x.Comprobante; New-Object PSObject -Property @{Folio=$c.Folio;Serie=$c.Serie;RfcEmisor=$c.Emisor.Rfc;RfcReceptor=$c.Receptor.Rfc;UUID=$c.Complemento.TimbreFiscalDigital.UUID;FormaPago=$c.FormaPago;Total=$c.Total;Fecha=$c.Fecha;Tipo=$c.TipoDeComprobante}} | export-csv -Path cfdis.csv | 
  
    
      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
    
  
  
    
  | Get-ChildItem *.xml | ForEach-Object { | |
| [xml]$x = (Get-Content $_) | |
| $c = $x.Comprobante | |
| New-Object -TypeName PSObject -Property @{ | |
| Emisor = $c.Emisor.Rfc | |
| Receptor = $c.Receptor.Rfc | |
| Cliente = $c.Receptor.Nombre | |
| Total = $c.Total | |
| FormaPago = $c.FormaPago | |
| Moneda = $c.Moneda | 
  
    
      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
    
  
  
    
  | SELECT LOC.c_CodigoPostal, | |
| LOC.InicioVigencia, | |
| LOC.FinVigencia, | |
| TZ.TimeZoneName, | |
| TZ.SystemTimeZoneId, | |
| RHH.* | |
| FROM ( | |
| SELECT CP.c_CodigoPostal, | |
| CP.c_Estado, | |
| CP.c_Municipio, | 
  
    
      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
    
  
  
    
  | openssl pkey -in privateKey.key -pubout -outform pem | sha256sum | |
| openssl x509 -in certificate.crt -pubkey -noout -outform pem | sha256sum | 
  
    
      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
    
  
  
    
  | // Replace T with the desired type | |
| func fmap(input []*T, f func(*T) *T) []*T { | |
| result := make([]*T, len(input)) | |
| for i, v := range input { | |
| result[i] = f(v) | |
| } | |
| return result | |
| } | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| sudo killall -HUP mDNSResponder | 
  
    
      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
    
  
  
    
  | package main | |
| import ( | |
| "fmt" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/secretsmanager" | |
| ) | 
  
    
      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
    
  
  
    
  | rem Run in elevated command prompt | |
| netsh http add urlacl url=http://+:8050/metrics user=sacosta | 
  
    
      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
    
  
  
    
  | LOCAL_PORT=2266 | |
| TARGET_PRIVATE_IP=172.100.6.108 | |
| TARGET_SSH_PORT=22 | |
| TARGET_SSH_KEY=~/.ssh/desarrollo_key.pem | |
| TARGET_USER=ec2-user | |
| PASSTHROUGH_PUBLIC_IP=54.68.190.33 | |
| PASSTHROUGH_SSH_PORT=2224 | |
| PASSTHROUGH_SSH_KEY=~/.ssh/rc-oregon-keypair.pem | 
NewerOlder