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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: gx-java-app | |
labels: | |
app: gx-java-app | |
spec: | |
ports: | |
- port: 8080 | |
selector: |
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
# from https://gist.github.com/jchandra74/5b0c94385175c7a8d1cb39bc5157365e | |
function ccode { Set-Location c:\code } | |
# Helper function to set location to the User Profile directory | |
function cuserprofile { Set-Location ~ } | |
Set-Alias ~ cuserprofile -Option AllScope | |
# Ensure posh-git is loaded | |
Import-Module -Name posh-git |
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
public static (string airline, string number) Parse(string flightNumber) | |
{ | |
string airline = "", number = ""; | |
flightNumber = flightNumber.Trim().Replace(" ", ""); | |
for (int i = 0; i < flightNumber.Length; i++) | |
{ | |
char c = flightNumber[i]; | |
if (c > 64 && string.IsNullOrEmpty(number)) | |
airline += c; |
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
param( | |
[Parameter(Mandatory = $true)] | |
[string]$folder, | |
[Parameter(Mandatory = $false)] | |
[switch]$batch, | |
[Parameter(Mandatory = $false)] | |
[string]$sqlInstance=".\SQL2016" |
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
$cert = (New-SelfSignedCertificate -DnsName localhost -CertStoreLocation cert:Localmachine\My).Thumbprint | |
New-WebBinding -Name "Default Web Site" -IP "*" -Port 443 -Protocol https | |
Get-Item cert:\LocalMachine\MY\$cert | New-Item IIS:\SslBindings\0.0.0.0!443 |
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
# escape=` | |
FROM microsoft/dotnet-framework:4.7.2-runtime | |
LABEL MAINTAINER="Seba Gómez <[email protected]>" | |
# GeneXus | |
COPY GeneXus/ c:/GeneXus | |
RUN C:/GeneXus/Genexus.com /install && ` | |
powershell -Command "Copy-Item C:/Users/ContainerAdministrator/AppData/Roaming/GeneXus C:/Windows/SysWOW64/config/systemprofile/AppData/Roaming -Recurse" |
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
powershell -Command "docker rmi $(docker images -q -f dangling=true)" |
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
docker run --rm -p 1533:1433 -e ACCEPT_EULA=Y -e MSSQL_SA_PASSWORD=dbPassword! -e MSSQL_PID=Developer -d --name sqlserver microsoft/mssql-server-linux:2017-GA |
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
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
choco install 7zip /y | |
choco install docker-for-windows /y | |
choco install dotpeek /y | |
choco install git /y | |
choco install git-desktop /y | |
choco install googlechrome /y | |
choco install brave /y | |
choco install mousewithoutborders /y |
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
const int NOT_FOUND = -1; | |
static int Find(int[] arr, int num) | |
{ | |
if (arr.Length == 0) | |
return NOT_FOUND; | |
if (arr.Length == 1) | |
return arr[0] == num ? 0 : NOT_FOUND; | |
int m = arr.Length / 2; |
NewerOlder