Skip to content

Instantly share code, notes, and snippets.

View activedecay's full-sized avatar

chunk activedecay

View GitHub Profile
@activedecay
activedecay / some_hp.js
Last active August 29, 2015 14:04
HP ILO steals window.opener
<!--
This is a bit of code from HP that proves they are crooks.
They stole the window.opener by changing its location
and then closed the window that it intended to launch.
Why?
-->
<script language="JavaScript" type="text/javascript">
//--- create the new location string with
//--- cpqlogin.php and the original query string
@activedecay
activedecay / Iterators.java
Created March 13, 2017 20:23
why aren't itardators itardabtable? oh cuz java.
public static <T> Iterable<T> in(final Iterator<T> iterator) {
assert iterator != null;
class SingleUseIterable implements Iterable<T> {
private boolean used = false;
@Override
public Iterator<T> iterator() {
if (used) {
throw new IllegalStateException("SingleUseIterable already invoked");
ANTLR 2 License
We reserve no legal rights to the ANTLR--it is fully in the public domain. An
individual or company may do whatever they wish with source code distributed
with ANTLR or the code generated by ANTLR, including the incorporation of
ANTLR, or its output, into commerical software.
We encourage users to develop software with ANTLR. However, we do ask that
credit is given to us for developing ANTLR. By "credit", we mean that if you
use ANTLR or incorporate any source code into one of your programs (commercial
The MIT License
Copyright (c) 2010, InfraDNA, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Copyright (c) 2013 Matt Bertolini
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1
1. Definitions.
1.1. "Contributor" means each individual or entity that creates or
contributes to the creation of Modifications.
1.2. "Contributor Version" means the combination of the Original Software,
prior Modifications used by a Contributor (if any), and the Modifications
COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 1.
Definitions.
1.1. Contributor means each individual or entity that creates or contributes to
the creation of Modifications.
1.2. Contributor Version means the combination of the Original Software, prior
Modifications used by a Contributor (if any), and the Modifications made by
Please note this should be read in the same way as the MIT license.
Please also note this licensing model is made possible through funding from
donations and the sale of support contracts.
License
Copyright (c) 2000 - 2017 The Legion of the Bouncy Castle Inc. (https://
www.bouncycastle.org)
Eclipse Public License - v 1.0
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
1. DEFINITIONS
"Contribution" means:
COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
- 1. Definitions.
- 1.1. "Contributor" means each individual or entity that creates or
contributes to the creation of Modifications.
- 1.2. "Contributor Version" means the combination of the Original
Software, prior Modifications used by a Contributor (if any), and the