Skip to content

Instantly share code, notes, and snippets.

View jpinho's full-sized avatar

João Pinho jpinho

View GitHub Profile
@jpinho
jpinho / docker-aliases.sh
Created February 5, 2025 12:44 — forked from jgrodziski/docker-aliases.sh
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
@jpinho
jpinho / RegisterAccountLoadingButton.svelte
Created March 4, 2021 19:35
Loading button example in Svelte using named slots
<script>
import LoadingButton from '@/components/elements/LoadingButton.svelte';
</script>
<LoadingButton
ariaErrorAlert={"There was an error creating your account"}
ariaLoadingAlert={
authState === AuthState.CreatingUser
? "Registering account, please wait..."
: authState === AuthState.FulfillingPurchase
$ dotnet new console -o trelloCli

Welcome to .NET Core!
---------------------
Learn more about .NET Core: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Telemetry
---------

Keybase proof

I hereby claim:

  • I am jpinho on github.
  • I am jpepinho (https://keybase.io/jpepinho) on keybase.
  • I have a public key ASCDUXOhSJQ4CvD5usiIzr2PM0bvO5BCxCtfV-Kk70Da2go

To claim this, I am signing this object:

@jpinho
jpinho / vbasic-call-java.vb
Created July 20, 2017 00:11
Calling Java from VB6 Code
Dim cmd As String
cmd = "C:\\Java\\bin\\java.exe -Xmx1024m -Xms256m -jar """ & java-program-of-some-sort.jar" & """" & _
" --xml """ & someXmlFile & """" & _
" --xsd """ & someXsdFile & ".xsd" & """ > """ & outputFile & """"
Dim WshShell As Object
Dim oExec As Object
Dim output As String
Dim errOut As String
Set WshShell = CreateObject("WScript.Shell")
@jpinho
jpinho / HttpContentObfuscator
Created February 17, 2017 23:53
A class that provides obfuscation capabilities over an HttpRequest data, typically useful for logging.
package org.corp.component.web.utils;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.TextNode;
import com.jayway.jsonpath.Configuration;
import com.jayway.jsonpath.DocumentContext;
import com.jayway.jsonpath.JsonPath;
import com.jayway.jsonpath.spi.json.JacksonJsonNodeJsonProvider;
import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider;
import lombok.Getter;