Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def phase(differential, max, offset) | |
absolute = (differential * max + offset) % max | |
relative = absolute - max / 2 | |
relative < 0 ? -relative : relative | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vulnerable | |
$ irb -ropenssl | |
2.1.1 :001 > OpenSSL::OPENSSL_VERSION | |
=> "OpenSSL 1.0.1f 6 Jan 2014" | |
# Not vulnerable | |
$ irb -ropenssl | |
2.1.1 :001 > OpenSSL::OPENSSL_VERSION | |
=> "OpenSSL 1.0.1g 7 Apr 2014" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please select what kind of key you want: | |
(1) RSA and RSA (default) | |
(2) DSA and Elgamal | |
(3) DSA (sign only) | |
(4) RSA (sign only) | |
Your selection? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate libc; | |
extern crate rand; | |
use std::os; | |
use std::cast::transmute; | |
use std::raw::Slice; | |
use std::intrinsics; | |
use libc::types::common::c95::c_void; | |
use libc::funcs::posix88::mman::{mmap, mlock, munmap}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m=255 | |
r=(0..256) | |
j=0 | |
Sk=r.to_a.map{|i|j=(j+S[i]+K[i%16])&m} | |
St=[] | |
i=j=0 | |
r.each{|i| | |
i&=m | |
j=(j+S[i])&m | |
S[i],S[j]=S[j],S[i] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in_thread do | |
with_fx :reverb do | |
loop do | |
use_synth :tb303 | |
play_pattern_timed chord(:E3, :m7), 0.25 | |
end | |
end | |
end | |
in_thread do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v2 | |
mQENBFS2LA0BCACy/N3h9D5bK5Q5Ym4qOLoYc/qD4ttJ/icXtrvy3K5Kp2x8rwTm | |
fum6R4yaia2yeSeMvR0UZAIkOz2Pf5gyBc1x0A1UIyAxnkWTndL7GjxNP/bMoumY | |
otG3wCqf+QQPAqj5/X0k6jhVARRjRJaRaNQrj7mdboD2SJSxrIr0pw1JpBCWaAc+ | |
ySuLwhaV1BjIxnS3sPztaWEgKth0ipjwlcOHskSJ1kAbjrnjicnw/D18EY9JBzJ4 | |
yxj7i0JcTvK4F0we4l3MJ2kFjPLhk6pV4t3oTHZV7yUApTUnugPmDDiLH5YRjlEw | |
nxvHtOzGDM2CODn5PqX2nQ3T10srLMHNM8ErABEBAAG0IFRvbnkgQXJjaWVyaSA8 | |
YmFzY3VsZUBnbWFpbC5jb20+iQE/BBMBAgApBQJUtiwNAhsDBQkSzAMABwsJCAcD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'redis' | |
require 'timeout' | |
redis = Redis.new | |
redis.set('chunky', 'bacon') | |
res_a = nil | |
res_b = nil | |
count = 0 | |
outer_count = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> o = Object.new | |
=> #<Object:0x1110cdc> | |
>> class << o | |
>> FOO = 'bar' | |
>> end | |
=> "bar" | |
>> class << o; self; end::FOO | |
=> "bar" |
OlderNewer