ubuntu 12.04 14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev| # As the Kivy docs ( http://kivy.org/docs/guide/other-frameworks.html ) state: | |
| # install_twisted_rector must be called before importing and using the reactor. | |
| from kivy.support import install_twisted_reactor | |
| install_twisted_reactor() | |
| from autobahn.twisted.websocket import WebSocketClientProtocol, \ | |
| WebSocketClientFactory | |
| class MyKivyClientProtocol(WebSocketClientProtocol): |
| #!/usr/bin/python | |
| #Install SleekXMPP & xmpppy Modules | |
| #This program is not for children -(18) | |
| #This program is only for educational purposes only. | |
| #Don't Attack people facebook account's it's illegal ! | |
| #If you want to HaCk into someone's account, you must have the permission of the user. | |
| #usage:Facebook-brute-force.py [wordlist file] | |
| #Coded By Hossam Youssef <hossam.mox@gmail.com> ^_^ | |
| var engine = new QWeb2.Engine("templates.xml") | |
| engine.debug = true; | |
| var def = $.Deferred(); | |
| engine.add_template('templates.xml', function(err) { | |
| if (err) { | |
| def.reject(err); | |
| } else { | |
| def.resolve(); | |
| console.log(engine.render('login-box')); |
| import requests | |
| import json | |
| URL_BASE = 'https://rest.developer.yodlee.com/services/srest/restserver/v1.0' | |
| # assumes you've signed up for dev access, and already done the one-time linking of bank accounts | |
| # to user accounts via the Yodlee website | |
| # cobrand login | |
| payload = { 'cobrandLogin': 'sbCob<account>', 'cobrandPassword': '<something>' } |
| <?php | |
| class SecureSessionHandler extends SessionHandler { | |
| protected $key, $name, $cookie; | |
| public function __construct($key, $name = 'MY_SESSION', $cookie = []) | |
| { | |
| $this->key = $key; | |
| $this->name = $name; |
| <?php | |
| //Setup Items | |
| $order_items = array(); | |
| $order_items[] = array( | |
| "Offer" => array( | |
| "Header" => array( | |
| "ID" => "FC-Money", | |
| ), | |
| ), |
| <?php | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
| */ | |
| class VideoStream | |
| { | |
| private $path = ""; |
ubuntu 12.04 14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev| # install sysbench | |
| $ apt-get install sysbench | |
| # CPU benchmark, 1 thread | |
| $ sysbench --test=cpu --cpu-max-prime=20000 run | |
| # CPU benchmark, 64 threads | |
| $ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=64 run | |
| # Disk benchmark, random read. See .fio files in this gist |
| function getTrilateration(position1, position2, position3) { | |
| var xa = position1.x; | |
| var ya = position1.y; | |
| var xb = position2.x; | |
| var yb = position2.y; | |
| var xc = position3.x; | |
| var yc = position3.y; | |
| var ra = position1.distance; | |
| var rb = position2.distance; | |
| var rc = position3.distance; |