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
| Public Shared Function GetNumbers(ByVal texto As String) As String | |
| Try | |
| Return System.Text.RegularExpressions.Regex.Replace(texto, "[^\d]", String.Empty) | |
| Catch ex As Exception | |
| Throw | |
| End Try | |
| End Function |
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
| Protected Function RetornaValor(ByVal valor As Object, Optional ByVal retornoPadrao As String = "") As String | |
| If IsDBNull(valor) Then | |
| Return retornoPadrao | |
| Else | |
| Return valor | |
| End If | |
| End Function | |
| 'ou |
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
| Public Function ImportaXLS(ByVal arquivoXLS As String) As Boolean | |
| '------------------------------------------------------ | |
| '-Função lê arquivo do excel e depois grava na tabela-- | |
| '------------------------------------------------------ | |
| Dim dsDados As DataSet | |
| Dim daAdaptador As System.Data.OleDb.OleDbDataAdapter | |
| Dim sql As String | |
| Dim conexao As String | |
| Dim conn As OleDb.OleDbConnection | |
| Dim tabela As String |
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
| defaults write com.apple.finder AppleShowAllFiles TRUE | |
| killall Finder |
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
| * { background-color: rgba(255,0,0,.2); } | |
| * * { background-color: rgba(0,255,0,.2); } | |
| * * * { background-color: rgba(0,0,255,.2); } | |
| * * * * { background-color: rgba(255,0,255,.2); } | |
| * * * * * { background-color: rgba(0,255,255,.2); } | |
| * * * * * * { background-color: rgba(255,255,0,.2); } |
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
| ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; |
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
| using MongoDB.Bson; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Linq; | |
| using System; | |
| using System.Collections.Generic; | |
| namespace Your.Namespace | |
| { | |
| public class ObjectIdConverter : JsonConverter | |
| { |
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
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory=$true)] | |
| [string[]]$EIPs | |
| ) | |
| try { | |
| $ErrorActionPreference = "Stop" | |
| Start-Transcript -Path c:\cfn\log\Set-EIP.ps1.txt -Append |
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
| /* | |
| Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| This file is licensed under the Apache License, Version 2.0 (the "License"). | |
| You may not use this file except in compliance with the License. A copy of | |
| the License is located at | |
| http://aws.amazon.com/apache2.0/ | |
| This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
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
| for z in $(aws route53 list-hosted-zones|jq '.[] | .[] | .Id' | sed 's!/hostedzone/!!' | sed 's/"//g'); do | |
| echo $z; | |
| aws route53 list-resource-record-sets --hosted-zone-id $z >> recordsFile; | |
| done |
OlderNewer