Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

View zcourts's full-sized avatar

Courtney Robinson zcourts

CEO@hypi-universe - PhD studying correctness in distributed systems & generally jack of all trades
View GitHub Profile

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
@zcourts
zcourts /README.md
CreatedJuly 24, 2021 06:06— forked fromsma/README.md
This is an ad-hoc Java-to-Dart translator written in three days. This is version 2 which some bug fixes.

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.

@zcourts
zcourts /stripe.openapi.yaml
CreatedJune 14, 2021 15:24
Some OpenAPI specs for testing with
This file has been truncated, but you canview the full file.
---
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
@zcourts
zcourts /00_README.md
CreatedMay 12, 2021 10:54— forked frommd5/00_README.md
Demonstration Docker config for Wordpress on PHP-FPM behind Nginx

Proof of concept setup for Wordpress running under PHP-FPM with an Nginx frontend

Build a copy of this image:

git clone git://github.com/d9206eacb5a0ff5d6be0.git docker-nginx-fpmcd docker-nginx-fpmdocker build -t nginx-fpm .
@zcourts
zcourts /ParseRSAKeys.java
CreatedMarch 1, 2021 04:55— forked fromdestan/ParseRSAKeys.java
Parse RSA public and private key pair from string in Java
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'
@zcourts
zcourts /tmux cheat sheet
Last activeJuly 18, 2025 17:18
tmux cheat sheet image from DuckDuckGo UI
https://duckduckgo.com/?q=tmux+cheat+sheet&atb=v47-1_x&ia=cheatsheet&iax=1
@zcourts
zcourts /Jenkinsfile
CreatedAugust 17, 2019 21:50— forked fromabayer/Jenkinsfile
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
// 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',
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp