Skip to content

Instantly share code, notes, and snippets.

View ZECTBynmo's full-sized avatar
💻
must go faster

Mike Vegeto ZECTBynmo

💻
must go faster
View GitHub Profile
@ZECTBynmo
ZECTBynmo / install_docker_playlist.yml
Last active October 31, 2015 20:29
Ansible playlist to install docker and set things up
---
- name: Install docker
hosts: all
sudo: yes
tasks:
- name: add docker apt key
apt_key: >
id=2C52609D
url=https://apt.dockerproject.org/gpg
state=present
```
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . _________
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ./ It’s a trap! \
. . . . . . . . . . . . . . . . _,,,--~~~~~~~~--,_ . . . .\ ._________/
. . . . . . . . . . . . . . ,-‘ : : : :::: :::: :: : : : : :º ‘-, . . \/. . . . . . . . . .
. . . . . . . . . . . . .,-‘ :: : : :::: :::: :::: :::: : : :o : ‘-, . . . . . . . . . .
. . . . . . . . . . . ,-‘ :: ::: :: : : :: :::: :::: :: : : : : :O ‘-, . . . . . . . . .
. . . . . . . . . .,-‘ : :: :: :: :: :: : : : : : , : : :º :::: :::: ::’; . . . . . . . .
. . . . . . . . .,-‘ / / : :: :: :: :: : : :::: :::-, ;; ;; ;; ;; ;; ;; ;\ . . . . . . . .
. . . . . . . . /,-‘,’ :: : : : : : : : : :: :: :: : ‘-, ;; ;; ;; ;; ;; ;;| . . . . . . .
#!/usr/bin/env python
# Quick and dirty demonstration of CVE-2014-0160 by
# Jared Stafford (jspenguin@jspenguin.org)
# Modified so that it finds cookies
import sys
import struct
import socket
import time
import select
javascript:(function(){if(document.__hasHiddenVideo==undefined){document.__hasHiddenVideo=false;}if(!document.__hasHiddenVideo){document.__hasHiddenVideo=true;console.log("hiding video");$("%23playback").slideUp();}else{document.__hasHiddenVideo=false;console.log("showing video");$("%23playback").slideDown();}})();
function html5_audio(){
var a = document.createElement('audio');
return !!(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''));
}
var play_html5_audio = false;
if(html5_audio()) play_html5_audio = true;
function play_sound(url){
if(play_html5_audio){
var engine = require("node-core-audio").createNewAudioEngine();
engine.addAudioCallback( function(inputBuffer) {
var outputBuffer = inputBuffer;
for( var iSample=0; iSample<outputBuffer[0].length; ++iSample ) {
outputBuffer[0][iSample] = iSample / outputBuffer[0].length;
}
return outputBuffer;