Instantly share code, notes, and snippets.
- Hypi
- London (UK), Łodz (Poland), Valletta (Malta)
- https://hypi.ai
- @zcourts
GitHub allows automated builds usingGitHub Actions. A commonly asked question is how to release artifacts (packaged Java jars) built by Maven and Gradle toThe Central Repository. The GitHub Actions documentation provides only part of the answer.
So, first, configure your Maven project for staging artifacts to The Central Repository, by reading throughConfiguring Your Project for Deployment and following those steps. Please make sure that the maven-gpg-plugin is configured to preventgpg
from using PIN entry programs, as follows:
<configuration> <gpgArguments> <arg>--pinentry-mode</arg> loopback
This is an ad-hoc Java-to-Dart translator originally written on two (admittedly long) evenings.
Seehttp://sma.github.io/stuff/java2dartweb/java2dartweb.html for a demo.
Note: It doesn't support the complete Java grammar specification and cannot translate everything. It only translates syntax and does not attempt to translate Java library classes and methods to Dart equivalents (with the exception ofString.charAt
andStringBuffer.append
). You will have to make changes to the resulting Dart code. It does not support anonymous inner classes.
However, I was able to successfully convert a 7000+ line command line application with only minimal fixes in 30 minutes.
--- | |
components: | |
schemas: | |
account: | |
description: |- | |
This is an object representing a Stripe account. You can retrieve it to see | |
properties on the account like its current e-mail address or if the account is | |
enabled yet to make live charges. | |
Some properties, marked below, are available only to platforms that want to |
importjava.io.IOException; | |
importjava.net.URISyntaxException; | |
importjava.nio.file.Files; | |
importjava.nio.file.Paths; | |
importjava.security.KeyFactory; | |
importjava.security.NoSuchAlgorithmException; | |
importjava.security.PrivateKey; | |
importjava.security.interfaces.RSAPublicKey; | |
importjava.security.spec.InvalidKeySpecException; | |
importjava.security.spec.PKCS8EncodedKeySpec; |
# ATTENTION PLEASE! | |
# NOTE BY @riwazp7 | |
# Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help | |
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz | |
tar -xzf libtool-2.4.2.tar.gz | |
cd libtool-2.4.2 | |
./configure && make && sudo make install | |
# brew install 'https://raw.github.com/simonair/homebrew-dupes/e5177ef4fc82ae5246842e5a544124722c9e975b/ab.rb' |
https://duckduckgo.com/?q=tmux+cheat+sheet&atb=v47-1_x&ia=cheatsheet&iax=1 |
// A Declarative Pipeline is defined within a 'pipeline' block. | |
pipeline { | |
// agent defines where the pipeline will run. | |
agent { | |
// This also could have been 'agent any' - that has the same meaning. | |
label"" | |
// Other possible built-in agent types are 'agent none', for not running the | |
// top-level on any agent (which results in you needing to specify agents on | |
// each stage and do explicit checkouts of scm in those stages), 'docker', |