Skip to content

Instantly share code, notes, and snippets.

View oreoshake's full-sized avatar
:octocat:
I used to make it easier to develop this site securely

Neil Matatall oreoshake

:octocat:
I used to make it easier to develop this site securely
View GitHub Profile
<img id="asdf" src="asdf">
<script>
$('#asdf').error(function(e) {
alert("FAIL")
});
</script>
@oreoshake
oreoshake / fxml
Created January 9, 2015 21:02
aquafx tab pane issue
<BorderPane fx:id="root_pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="800" minWidth="1000" prefHeight="800.0" prefWidth="1024.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<center>
<TabPane fx:id="tab_pane" tabClosingPolicy="ALL_TABS" BorderPane.alignment="CENTER" />
</center>
</BorderPane>
@oreoshake
oreoshake / gist:13dfef90d3bd7dd9b1d6
Last active August 29, 2015 14:15
referrers and stuff

For testing: http://referrerrerr.herokuapp.com/

Firefox

  • 35: doesn't respect the referrer meta tag at all (defaulting to no-referrer-when-downgrade behavior)
  • 36: respects no-referrer, origin, no-referrer-when-downgrade, unsafe-url and defaults to origin
  • 37: respects ^^^ and 'origin-when-crossorigin'

Chrome

  • <= 39: ???
  • 40: respects no-referrer, origin, no-referrer-when-downgrade, unsafe-url and defaults to no-referrer
mdnew: neilmatatall: you're working on that, right?
neilmatatall mdnew: i already finished
mdnew neilmatatall: poor t<3
mdnew neilmatatall: we're going to put that on your grave
mdnew "Here lies Nigel. He already finished"
mdnew your parents will be so confused
neilmatatall mdnew: so you're going to outlive me?
mdnew neilmatatall: not sure about that, but I'll get C&E to do it
neilmatatall mdnew: that's true, C-dawg has a motivation to bury me
@oreoshake
oreoshake / gist:1242941
Created September 26, 2011 18:22
Why i hate java
[java (master $=)]$ mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.128s
[INFO] Finished at: Mon Sep 26 11:11:35 PDT 2011
[INFO] Final Memory: 2M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install
[16:07] < jason> "Host hosting.realpractice.com not found: 3(NXDOMAIN)"
[16:07] < jason> Nope, somethings busted.
[16:08] < jason> One of your DNS servers has been updated with the right data, the other one not.
[16:11] < jason> Oh, huh. Yeah, I'm getting different answeres from different places.
[16:11] < jason> Without researching it at all, I'm going to go ahead and blame IPv6.
[16:12] < neil> jason: which DNS server is outdated? or how did you find it? dig+whois not helpful
[16:13] < jason> I was using dig. On a single box, I was getting correct resolution on one host but not on the other.
[16:14] < jason> But then testing the same NS from two different boxes, I was also getting different results.
[16:15] < jason> Possibly they're actually different NS's, doing unicast.
[16:15] < jason> Er, anycast.
Bryan Pan
u gonna get the new iphone
1:47
Neil Matatall
haha that's funny
1:47
Bryan Pan
lol why
[programmatic_crypto (master $=)]$ git push -f sf master
Password:
Counting objects: 20, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 2.04 KiB, done.
Total 12 (delta 4), reused 0 (delta 0)
remote: error: denying non-fast-forward refs/heads/master (you should pull first)
To ssh://oreoshake@git.code.sf.net/p/passw3rdruby/code
! [remote rejected] master -> master (non-fast-forward)
Indian
it says there is no text currenlty
1:36
curryhousebot
i am able to get to the docs
1:36
Indian
the first link
require 'rubygems'
require 'parallel'
require 'benchmark'
# require 'jruby-prof'
############ TEH SETUPZ #############
threads = Parallel.processor_count
n = ARGV[0].to_i
s = (0...10).map{ ('a'..'z').to_a[rand(26)] }.join * n