Skip to content

Instantly share code, notes, and snippets.

View cmiles74's full-sized avatar

Christopher Miles cmiles74

View GitHub Profile
@cmiles74
cmiles74 / poly
Last active October 24, 2021 17:08
Polylith Script, Linux
#!/bin/sh
ARGS=""
while [ "$1" != "" ] ; do
ARGS="$ARGS $1"
shift
done
exec "java" $JVM_OPTS "-jar" "/usr/local/polylith/poly-0.2.13-alpha.jar" $ARGS
2020-06-15 04:31:58,854 INFO [scheduleWorkerFactory] c.w.n.p.c.BaseWnosJaxbPlugin [PerformICISSubmission.ja
va:123] ...The method name (getPretreatmentPerformanceSummaryData) does not equal the method we were plann
ing to invoke (setPermitReissuanceData), skipping...
/Exception
...skipping
2020-06-15 04:31:59,360 INFO [scheduleWorkerFactory] c.w.n.p.c.BaseWnosJaxbPlugin [PerformICISSubmission.ja
va:84] ...Found the UnpermittedFacilityData class for operation UNPERMITTED_FACILITY_SUBMISSION
2020-06-15 04:31:59,366 INFO [scheduleWorkerFactory] c.w.n.p.c.BaseWnosJaxbPlugin [PerformICISSubmission.ja
va:93] ...Found 0 records in the database.
2020-06-15 04:31:59,912 WARN [scheduleWorkerFactory] o.h.e.j.s.SqlExceptionHelper [SqlExceptionHelper.java:
@cmiles74
cmiles74 / output.txt
Created June 12, 2020 19:52
Janet Compile Output on Windows
PS C:\Users\cmiles\source\repos\test-project> jpm build
generating executable c source...
compile error: unknown symbol reader on line 4, column 21 while compiling testproject.janet
error: expected integer key in range [0, 5), got nil
in <anonymous> [C:\Program Files\Janet-1.9.1\bin\\jpm.janet] on line 594, column 19
in do-rule [C:\Program Files\Janet-1.9.1\bin\\jpm.janet] on line 248, column 24
in do-rule [C:\Program Files\Janet-1.9.1\bin\\jpm.janet] (tailcall) on line 246, column 44
PS C:\Users\cmiles\source\repos\test-project> jpm build
generating executable c source...
compiling and linking build\testproject.exe...
@cmiles74
cmiles74 / really-slow-query.sql
Last active November 20, 2018 22:50
really-slow-query.sql
# <5m45s
select * from VW_RPT_PARAMETER_LIMITS where PERMIT_NUMBER = 'GA0025623'
@cmiles74
cmiles74 / configuration.nix
Created December 20, 2017 23:36
Nix Configuration
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
nixpkgs.config = {
# Allow proprietary packages
@cmiles74
cmiles74 / builder.sh
Last active December 15, 2017 22:29
Snapd Nix Package
source $stdenv/setup
version="2.29.4"
_gourl=github.com/snapcore/snapd
srcdir=$PWD/$name
mkdir -p $out
export GOPATH=$PWD/$name/go
mkdir -p $GOPATH
mkdir -p "$(dirname "$GOPATH/src/${_gourl}")"
@cmiles74
cmiles74 / aclocal.m4
Created December 15, 2017 22:26
Snapd Aclocal.m4
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])
# _AM_AUTOCONF_VERSION(VERSION)
# -----------------------------
# aclocal traces this macro to find the Autoconf version.
# This is a private macro too. Using m4_define simplifies
# the logic in aclocal, which can simply ignore this definition.
m4_define([_AM_AUTOCONF_VERSION], [])
@cmiles74
cmiles74 / sample.conf
Created December 15, 2017 17:51
Combined?
<VirtualHost *:80>
ServerName wiki.windsorsolutions.biz
ServerAdmin admin@windsorsolutions.com
ServerAlias wiki.windsorsolutions.biz
Redirect permanent / https://wiki.windsorsolutions.biz/login.action
</VirtualHost>
<VirtualHost *:80>
ServerName jira.windsorsolutions.biz
ServerAdmin admin@windsorsolutions.com
@cmiles74
cmiles74 / nexus.conf
Created December 15, 2017 17:21
Example Proxy for Java App
<VirtualHost *:80>
ServerName nexus.nervestaple.com
ServerAdmin twitch@nervestaple.com
ProxyPreserveHost On
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
ErrorLog ${APACHE_LOG_DIR}/nexus-error.log
CustomLog ${APACHE_LOG_DIR}/nexus-access.log combined
@cmiles74
cmiles74 / smiley-face.sql
Created November 30, 2017 21:19
The Index We Were Looking For
select
STUDENT.FirstName || ' ' || STUDENT.LastName AS student,
FACULTY.FirstName || ' ' || FACULTY.LastName AS faculty
FROM STUDENT
JOIN FACULTY ON STUDENT.AcademicAdvisorID = FACULTY.FacultyID
WHERE FACULTY.FacultyID = 437143;
----
Plan hash value: 1633013143