Skip to content

Instantly share code, notes, and snippets.

@vitriolix
vitriolix / log.js
Last active November 24, 2020 21:35
A time stamped log function with an allow list, block list and solo list that filters log messages based on an optional tag param. Future: optional color, optional spacing, solo list
export var blockList = []
export var allowList = []
// export var soloList = ['foo']
// TODO
// - prepend the name of the arguments that it is printing out?
// - optional color
// - optional spacing
// - solo list
@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;
}

Keybase proof

I hereby claim:

  • I am vitriolix on github.
  • I am vitriolix (https://keybase.io/vitriolix) on keybase.
  • I have a public key whose fingerprint is C1A7 94D8 9F78 4699 6245 B7CA F272 6EBB 38D2 C97C

To claim this, I am signing this object: