Skip to content

Instantly share code, notes, and snippets.

@jcaesar
jcaesar / .gitignore
Last active March 2, 2022 10:01
Repro
/target
@jcaesar
jcaesar / playground.rs
Last active October 21, 2020 00:20 — forked from rust-play/playground.rs
Get class path from java class file
fn main() -> anyhow::Result<()> {
println!("{}", get_name(include_bytes!("../Class.class"))?);
Ok(())
}
fn get_name(cf: &[u8]) -> anyhow::Result<String> {
use anyhow::Context;
use classfile_parser::constant_info::ConstantInfo::{Class, Utf8};
use classfile_parser::constant_info::ClassConstant;
@jcaesar
jcaesar / barkdog
Created September 27, 2016 14:29 — forked from anonymous/barkdog
barkdog
#!/bin/bash
set -e -u -x
oldlist=""
declare -A idi
current='' # '' codes for "do nothing with that window"
xprop -spy -root _NET_CLIENT_LIST _NET_ACTIVE_WINDOW |\
while read info; do