Skip to content

Instantly share code, notes, and snippets.

Giancarlos Salas giansalex

Block or report user

Report or block giansalex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am giansalex on github.
  • I am giansalex (https://keybase.io/giansalex) on keybase.
  • I have a public key ASA557wjx9Zy1Gd1nmi4v6PI3tsmhg6MSOpIuChAHC3t0wo

To claim this, I am signing this object:

@giansalex
giansalex / trama-soap-greenter.xml
Created Oct 7, 2019
Ejemplo de trama XML enviada por el cliente SOAP (greenter) al consultar el estado del CDR
View trama-soap-greenter.xml
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://service.sunat.gob.pe" xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<SOAP-ENV:Header>
<ns2:Security>
<ns2:UsernameToken>
<ns2:Username>20000000001MODDATOS</ns2:Username>
<o:Password xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">moddatos</o:Password>
</ns2:UsernameToken>
</ns2:Security>
</SOAP-ENV:Header>
@giansalex
giansalex / create-ssl-dns.ps1
Created Sep 10, 2019
Create SSL Certificate LetsEncrypt with DNS Recorde Validation
View create-ssl-dns.ps1
docker run -t --rm -v "${pwd}":/appc certbot/certbot certonly --manual --preferred-challenges=dns --email admin@domain.com --agree-tos --config-dir /appc/config --logs-dir /appc/logs --work-dir /appc/workdir -d *.domain.com
@giansalex
giansalex / .bashrc
Last active Sep 9, 2019
Git Commands Alias
View .bashrc
alias gs='git status'
alias ga='git add'
alias gl='git pull'
alias gp='git push'
alias gc='git clone'
alias gck='git checkout'
alias ga='git add'
alias grh='git reset HEAD~1'
alias gm='git merge'
alias gcm='git commit -m '
@giansalex
giansalex / phpserver.reg
Created Feb 28, 2019
PHP Server from directory (Windows context menu)
View phpserver.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\PHP Server]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\PHP Server\command]
@="C:\\xampp\\php\\php.exe -S 127.0.0.1:8000 -t %1"
@giansalex
giansalex / myproject.csproj
Created Jan 26, 2019
ConnectionString ASP.NET MVC for Teams
View myproject.csproj
<Target Name="BeforeBuild">
<Copy SourceFiles="$(ProjectDir)\database.default.config" DestinationFiles="$(ProjectDir)\database.config" Condition="!Exists('$(ProjectDir)\database.config')" />
</Target>
View database.config
<?xml version="1.0" encoding="UTF-8"?>
<connectionStrings>
<add name="default" connectionString="Data Source=.;Initial Catalog=DB_A;" providerName="System.Data.SqlClient" />
</connectionStrings>
View web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<connectionStrings configSource="database.config" />
</configuration>
View prest.md

Install

go get -u github.com/prest/prest

Run

PREST_PG_USER=postgres \
PREST_PG_PASS=123456 \
PREST_PG_DATABASE=postgres \
@giansalex
giansalex / README.md
Last active Jan 3, 2020
Sonarqube Docker Compose
View README.md

SonarQube Docker

  • Create a directory for project
  • Copy docker-compose.yml
  • Create /extensions in project directory.
  • Run docker-compose up -d
You can’t perform that action at this time.