Skip to content

Instantly share code, notes, and snippets.

View joakime's full-sized avatar

Joakim Erdfelt joakime

  • Webtide, LLC
  • McAllen, TX
View GitHub Profile
@joakime
joakime / sig.c
Created January 21, 2024 22:55
Old school geeky email signature
/* joakim@erdfelt.com GCS v* w++ N+ */ main(){char h[81],*k,x,y,c,i;float a,
b,t,d,e,f,g,z;z=25;for(i=50;i--;){printf("\x1b[2J");g=z/40;f=z/17;z*=.8;for(d=
.285+z,y=49;y--;d-=f){for(k=h,e=1.1586+z,x=79;x--;e-=g){for(c=180,b=a=0;--c&&b
*b+a*a<4;t=b,b=b*b-a*a-e,a=2*t*a+d);*k++=c?c&1?99:88:32;h[79]=0x0;}puts(h);}}}
foo-project]$ tree -F
./
├── foo-child/
│   ├── pom.xml
│   └── src/
│   └── main/
│   └── java/
└── pom.xml
### Keybase proof
I hereby claim:
* I am joakime on github.
* I am joakime (https://keybase.io/joakime) on keybase.
* I have a public key whose fingerprint is 94B4 F5A0 49E5 A9BA 9DEB EAD4 6955 55F7 03DD EB3B
To claim this, I am signing this object:
{
"SPDXID": "SPDXRef-DOCUMENT",
"spdxVersion": "SPDX-2.3",
"creationInfo": {
"created": "2023-08-10T15:25:45Z",
"creators": [
"Tool: GitHub.com-Dependency-Graph"
]
},
"name": "com.github.eclipse/jetty.project",
package collection;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class SetUnionDemo
[
{
"jmhVersion" : "1.35",
"benchmark" : "org.eclipse.jetty.util.URIUtilIsRegNameBenchmark.testURIUtilIsRegName",
"mode" : "thrpt",
"threads" : 1,
"forks" : 1,
"jvm" : "/home/joakim/java/jvm/jdk-11.0.15+10/bin/java",
"jvmArgs" : [
"-javaagent:/home/joakim/.local/share/JetBrains/Toolbox/apps/IDEA-C/ch-0/222.4345.14/lib/idea_rt.jar=42537:/home/joakim/.local/share/JetBrains/Toolbox/apps/IDEA-C/ch-0/222.4345.14/bin",
@joakime
joakime / JrtDemo.java
Created August 4, 2022 22:02
Walk all of JRT with Java NIO FileSystem
package fs;
import java.io.IOException;
import java.net.URI;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
@joakime
joakime / A.java
Created April 28, 2022 15:09
Huge Class File Example
class A {{
int a;
try {a=0;} finally {
try {a=0;} finally {
try {a=0;} finally {
try {a=0;} finally {
try {a=0;} finally {
try {a=0;} finally {
try {a=0;} finally {
try {a=0;} finally {
@joakime
joakime / big-class.sh
Last active December 3, 2021 00:57
Example of a small java source to big class file
# The raw file size
$ ls -l
total 4
-rw-rw-r-- 1 joakim joakim 564 Nov 11 16:01 A.java
# The java source contents
$ cat A.java
class A {{
int a;
try {a=0;} finally {
@joakime
joakime / git_objectid_size.log
Last active November 10, 2021 21:40
How to see what the largest object ids are in a branch.
[joakim@hyperion tmp]$ git clone git@github.com:eclipse/jetty.project.git
Cloning into 'jetty.project'...
remote: Enumerating objects: 760026, done.
remote: Counting objects: 100% (15474/15474), done.
remote: Compressing objects: 100% (6625/6625), done.
remote: Total 760026 (delta 5693), reused 14847 (delta 5266), pack-reused 744552
Receiving objects: 100% (760026/760026), 228.80 MiB | 37.67 MiB/s, done.
Resolving deltas: 100% (307533/307533), done.
[joakim@hyperion tmp]$ git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | tail -n 10
fatal: not a git repository (or any parent up to mount point /)