Skip to content

Instantly share code, notes, and snippets.

View sffej's full-sized avatar
💭
Is it done yet?

FNCS sffej

💭
Is it done yet?
  • Pacific NorthWest
View GitHub Profile
@sffej
sffej / init.el
Created October 23, 2022 19:30 — forked from Gavinok/init.el
A minimal emacs configuration using evil mode and use-package
;;; Startup
;;; PACKAGE LIST
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
;;; BOOTSTRAP USE-PACKAGE
(package-initialize)
(setq use-package-always-ensure t)
(unless (package-installed-p 'use-package)
@sffej
sffej / Debuggable.java
Created December 30, 2021 01:35 — forked from shelajev/Debuggable.java
Java 8 cheat sheet code
public interface Debuggable {
default String debug() {
StringBuilder sb = new StringBuilder(this.getClass().getName());
sb.append(" [ ");
Field[] fields = this.getClass().getDeclaredFields();
for(Field f: fields) {
f.setAccessible(true);
try {
sb.append(f.getName() + " = " + f.get(this));
sb.append(", ");
@sffej
sffej / 20211210-TLP-WHITE_LOG4J.md
Created December 13, 2021 17:18 — forked from SwitHak/20211210-TLP-WHITE_LOG4J.md
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-12 2204 UTC

Security Advisories / Bulletins linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great ressources

@sffej
sffej / HTML5 Stub
Created April 1, 2021 02:11 — forked from joshuapowell/HTML5 Stub
A generic & empty HTML5 page structure.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="author" content="" />
<meta name="copyright" content="" />
<meta name="robots" content="index, follow" />
##############################
## Java
##############################
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
@sffej
sffej / JavaFXTrayIconSample.java
Created September 15, 2020 18:35 — forked from jewelsea/JavaFXTrayIconSample.java
Demonstrate using the System Tray (AWT) to control a JavaFX application.
import javafx.application.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.stage.*;
import javax.imageio.ImageIO;
import java.io.IOException;
@sffej
sffej / pom.xml
Created June 24, 2020 18:01 — forked from timmolderez/pom.xml
Adding dependencies to local .jar files in pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>
@sffej
sffej / HelloWorld.java
Created July 1, 2019 20:26 — forked from jorgeatorres/HelloWorld.java
obfuscated HelloWorld java program
public class HelloWorld {public static void main(String[] args){
int[][] t = new int[][]{{202,1026,1100,396,324,1080,192,609,555,888,72,432},
{3,9,8,5},{2,2,5,9},{4,6,1,9,2,11},{4,6,1,9,3,2,11,7,0,5,10},{2,1,5,9},{1,9,2,5},{0,2,10,5,1,6,3,11,8,4},{10,4,2,6},
{1,10,2,3,5,9,7,4,11,6},{7,0,3,6},{2,9,10,1},{7,1,10,6},{12,0,-0}};do{while(t[13][1]+1<t[t[13][0]].length){
t[13][2]=t[0][t[t[13][0]][t[13][1]]];t[0][t[t[13][0]][t[13][1]]]=t[0][t[t[13][0]][++t[13][1]]];t[0][t[t[13][0]][t[13][1]++]]=t[13][2];}
}while(!(--t[13][0]<=(int)Math.sin(Math.PI))&&((t[13][1]=0)<1));
while(t[4][2]<=t[9][5]+3)System.out.print((char)(t[0][t[4][2]-1]/t[4][2]++));}}
@sffej
sffej / EDI_Formatter
Created June 25, 2019 03:27 — forked from bhattisatish/EDI_Formatter
EDI Custom Plugin for Notepad++
<NotepadPlus>
<UserLang name="X12" ext="">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">000000</Keywords>
<Keywords name="Folder+"></Keywords>
@sffej
sffej / JDBCKerberosTest.java
Created March 4, 2019 23:54 — forked from guyinacube/JDBCKerberosTest.java
SQL JDBC Driver connectivity test for Kerberos
import java.sql.*;
import java.util.logging.*;
import java.io.IOException;
public class JDBCKerberosTest{
public static void main(String[] args) {
//Logger logger = Logger.getLogger("com.microsoft.sqlserver.jdbc");