===============
This shit is awesome. It's hot, so nut up pansy.
Don't like it that way? Leave out some peppers and spices.
Green bell pepper is for color, substitute another red or yellow for a sweeter taste.
Like different beans? Add them shits too, get wild with Emeril.
Want this to be even better? Cook/mix everything the night before, put in the fridge. Then cook it all day.
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
# TODO: ensure present | |
# Whitenoise generation | |
alias brownnoise='play -qn -t sl -r48000 -c2 - synth -1 brownnoise tremolo .1 20 < /dev/zero &' | |
alias pinknoise='play -qn -t sl -r48000 -c2 - synth -1 pinknoise tremolo .1 30 < /dev/zero &' | |
alias whitenoise='play -qn -t sl -r48000 -c2 - synth -1 whitenoise tremolo .1 40 < /dev/zero &' | |
alias noises='play --no-show-progress -c 2 --null synth brownnoise band -n 2 300 tremolo .1 20 reverb 10 bass -10 treble -1 vol 10dB < /dev/zero & play --no-show-progress -c 2 --null synth brownnoise band -n 2 300 tremolo .1 20 reverb 10 bass -10 treble -1 vol 10dB < /dev/zero & play --no-show-progress -c 2 --null synth brownnoise band -n 2 300 tremolo .1 20 reverb 10 bass -10 treble -1 vol 10dB < /dev/zero & play --no-show-progress -c 2 --null synth brownnoise band -n 2 300 tremolo .1 20 reverb 10 bass -10 treble -1 vol 10dB < /dev/zero &' |
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 retry(fxn, **kwargs): | |
num_retries = 3 | |
backoff_factor = 0.3 | |
# status_forcelist = (500, 502, 503, 504) | |
for i in range(num_retries): | |
try: | |
return fxn(kwags) | |
except RetryError as err: | |
if i >= 1 and i < num_retries - 1: # and err.code in status_forcelist: | |
sleep(backoff_factor * 2**(i - 1)) |
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
$ irb | |
~> Console extensions: wirble hirb ap rails2 rails3 pm interactive_editor | |
>> require 'samlr' | |
=> true | |
>> response = Samlr::Tools::ResponseBuilder.build({destination: 'foo_url', in_response_to: Samlr::Tools::uuid, name_id: '123456', not_on_or_after: Samlr::Tools::Timestamp.stamp(Time.now + 600), not_before: Samlr::Tools::Timestamp.stamp(Time.now - 600), audience: 'bar_peeps', attributes: { 'attr1' => 'attr1_val', 'attr2' => 'attr2_val'}}) | |
=> "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<samlp:Response Destination=\"foo_url\" ID=\"samlr-97bd62c0-5e1a-11e5-ae2e-44fb42fffe0e\" InResponseTo=\"samlr-97b1ca00-5e1a-11e5-ae2e-44fb42fffe0e\" IssueInstant=\"2015-09-18T15:33:21Z\" Version=\"2.0\" xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\" xmlns:samlp=\"urn:oasis:names:tc:SAML:2.0:protocol\"><saml:Issuer>ResponseBuilder IdP</saml:Issuer><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"/><SignatureMethod Algorithm |
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
-module(evan_sets). | |
-compile(export_all). | |
create(Set, Element) -> | |
sets:add_element(Element, Set). | |
read(Set, Element) -> | |
case sets:is_element(Element, Set) of | |
true -> |
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
#!/usr/bin/env ruby | |
require 'benchmark' | |
require 'digest' | |
require 'xxhash' | |
md5 = Digest::MD5.new | |
sha1 = Digest::SHA1.new | |
rmd160 = Digest::RMD160.new | |
sha256 = Digest::SHA256.new |
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
# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208 | |
# Configuration name mysql-gazelle generated for [email protected] at 2012-07-26 16:25:45 | |
[mysql] | |
# CLIENT # | |
port = 3306 | |
socket = /usr/local/var/run/mysqld/mysqld.sock | |
[mysqld] |