Skip to content

Instantly share code, notes, and snippets.

View exabrial's full-sized avatar

Jonathan S. Fisher exabrial

View GitHub Profile
$ ls /opt/sonatype/sonatype-work/nexus3/db/
OSystem accesslog analytics audit component config model.properties security
$ docker-compose exec nexus java -jar ./lib/support/nexus-orient-console.jar
CONNECT PLOCAL:/opt/sonatype/sonatype-work/nexus3/db/component admin admin
REBUILD INDEX *
REPAIR DATABASE --fix-graph
REPAIR DATABASE --fix-links
REPAIR DATABASE --fix-ridbags
@exabrial
exabrial / gpg-agent.conf
Created August 5, 2019 19:27 — forked from nl5887/gpg-agent.conf
Using GPG Agent on OS-X
launchctl unload -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist
launchctl load -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist
@exabrial
exabrial / gist:5b884941fdf7db89dbc4f10f114f3f57
Created August 4, 2019 03:57 — forked from ktoso/gist:708972
eclipse formatter pre-commit hook
#!/bin/sh
#
# This hook will run the eclipse code formatter before any commit
# to make the source look as it's supposed to look like in the repo.
ECLIPSE_HOME=$HOME/eclipse
STYLE_FILE=$HOME/org.eclipse.jdt.core.prefs
echo "Running pre-commit hook: run-eclipse-formatter---------------------"
echo "Will run eclipse formatter, using: $STYLE_FILE"
echo "Listing folders to run formatter on… "
@exabrial
exabrial / gist:45d1cf0505d2d7859d570064f7f02385
Created June 13, 2019 17:46 — forked from scottburton11/gist:3222152
Audio Compression for Voiceover

About compression

Audio compression is used to reduce the dynamic range of a recording. Dynamic range is the difference between the loudest and softest parts of an audio signal. It was originally used to guard against defects when cutting wax and vinyl phonograph records, but generally became useful as a way of increasing the loudness of an audio recording without achieving distortion.

The goal of most compression applications is to increase the amplitude of the softest parts of a recording, without increasing the amplitude of the loudest parts.

Compressor anatomy

Compressors generally all have the same conceptual parts. However, not all compressors present variable controls for all parts to the user. If you don't see all of your compressor's controls here, there's a chance it either has a fixed value (and no control), or is named something else:

@exabrial
exabrial / PatchJdk18.java
Created October 10, 2018 16:42
JDK 1.8 Doesn't Support PATCH. Here's how to "patch" it at Runtime as long as your security manager is disabled.
public class PatchJdk18 {
public static void fixJdk18() {
try {
Field field = HttpURLConnection.class.getDeclaredField("methods");
setFinalStatic(field, new String[] { "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE", "PATCH", "KITTENS" });
} catch (Exception e) {
throw new RuntimeException(e);
}
}
<html>
<h1>Hello, world</h1>
<p>
It works
</p>
</html>
@exabrial
exabrial / gist:744239a1ecddcf0a9429d2b0c3c36978
Created July 25, 2018 17:16
HealthBridge Privacy Policy
Health Bridge does not, will not, and can not store any of your data in long term storage. Temporal storage such as memory, encrypted temporary files, may be necessary in order to sync information between services. We strive to be a gateway between services, and that's it. You will always own your data, and we will never store it.
We will store authentication tokens for each of the connected services in a secured and encrypted database. These tokens are revokable by the user at any point.
In addition, HealthBridge will use the lastest version of TLS supported to transport any data between services. We will never roll our own cryptography and stick to industry standard encryption practices.
@exabrial
exabrial / README.md
Created May 10, 2018 02:39 — forked from jmruc/README.md
Generating pom.xml from gradle

To generate a pom.xml file just run gradle writeNewPom

If you want to generate it as pom.xml in the root of the project, replace writeTo("$buildDir/newpom.xml") with writeTo("pom.xml")

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets