Skip to content

Instantly share code, notes, and snippets.

@vitriolix
vitriolix / cheatsheets.md
Last active March 24, 2024 07:07 — forked from FlorianHeigl/cheatsheets.md
Printable Cheat Sheets for Software

A collection of links to useful cheat sheets.

Only what's properly printable can get in. It should also be small enough to fit on a few pages.

Pleae contribute any you remember you've seen and liked. It would be wonderful if we can get these to be something more commonly made.

Search Engines

https://cdn-cybersecurity.att.com/blog-content/GoogleHackingCheatSheet.pdf (nicely put together!)

@vitriolix
vitriolix / ExifUtil.java
Last active September 11, 2015 22:41 — forked from T-Spoon/ExifUtil.java
Update to ExifUtils.java - Don't use Reflection & use constants instead of magic numbers. Split logic that gets the transposition matrix from the bitmap rotation method so they can each be used independantly
public class ExifUtils {
public static @Nullable Matrix getExifTranspositionMatrix(@NonNull String src) {
Matrix matrix = null;
try {
ExifInterface ei = new ExifInterface(src);
int orientation = ei.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);
if (orientation == 1) {
return null;
}