Skip to content

Instantly share code, notes, and snippets.

View sfloess's full-sized avatar
💭
while(true);

Scot P. Floess sfloess

💭
while(true);
View GitHub Profile
@sfloess
sfloess / Splunk.md
Last active September 15, 2022 08:59
Splunk Tips and Tricks

Splunk

Helpful tips and tricks for Splunk.

Quickies

  • Replace backslash: eval var=replace(<var>, "\\\\", <replacement>)

Formatting

Splunk uses the | ("or bar") as a means to break up statements. Instead of using one long string of statements, consider deliminating | [statement] on seperate lines.

@sfloess
sfloess / JBoss.md
Last active February 24, 2022 18:17
JBoss Tips and Tricks

JBoss

Helpful tips and tricks for JBoss.

Miscellaneous

  • Set JAVA_OPTS: /etc/default/jboss-eap.conf

Properties

  • Modified Accented Characters on REST calls: if your REST calls containing accented characters are being modified, add the following to your standalone-full.xml:
@sfloess
sfloess / Maven.md
Last active October 30, 2021 17:16
Maven Tips and Tricks

Maven

Helpful tips and tricks for Maven.

Quickies

  • Execute a java app: mvn exec:java -Dexec.mainClass=[fully qualified name of class]
  • Update properties: mvn -U versions:update-properties
  • PKIX path building failed: mvn -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true ...
  • Proxies
    • http: -Dhttp.proxyHost=<host> -Dhttp.proxyPort=<port>
    • https: -Dhttps.proxyHost=<host> -Dhttps.proxyPort=<port>
@sfloess
sfloess / Raspbian.md
Last active July 14, 2019 02:26
Raspbian Tips and Tricks

Raspbian

Helpful tips and tricks for Raspbian.

Upgrading to Buster

To upgrade your existing Raspbian OS from Stretch to Buster, perform the following:

  1. apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC 648ACFD622F3D138
  2. grep -rl stretch /etc/apt/ | sudo xargs sed -i 's/stretch/buster/g'
  3. apt update -y && apt dist-upgrade -y
  4. reboot
@sfloess
sfloess / Debian.md
Last active March 26, 2024 17:03
Debian Tips and Tricks
@sfloess
sfloess / Java.md
Last active May 12, 2022 16:39
Java Tips and Tricks
@sfloess
sfloess / My ELK Setup.md
Last active August 20, 2019 14:18
My ELK Setup

ELK

I'm a huge fan of Splunk and wanted similar logging functionality at home. Therefore, all baremetal/VMs/chroot'd environments send rsyslog's to admin-ap via /etc/rsyslog.d/50-default.conf:

*.* @192.168.168.2:514

rsyslogd on admin-ap

This setup is required so that all clients send their logs to one server who forwards to Logstash server v5.6.16.

@sfloess
sfloess / My Network.md
Last active November 1, 2020 19:16
My Network
@sfloess
sfloess / My Hardware.md
Last active April 17, 2021 18:27
My Hardware

My Hardware

My hardware at home.

Routers

den-ap

Serves as administrative server.

Tech spec:

@sfloess
sfloess / My Virtual Machines.md
Last active November 13, 2020 16:45
My Virtual Machines