These are the default files that I will usually start with when setting up a symfony2 project to use vagrant and puppet. I'm putting this readme file here for future updates.
Make sure the files that end in .sh are executable.
| var bitcoin = require('bitcoinjs-lib') // 1.4.x ? | |
| var privKeys = [ | |
| 'L2ALJznyt2croGHs8duBK2TZMB3Bc5ZpFZQSmR5QQUMPDDcUWeTw', // n2t8F1D41xy6f3d2B6DtjXRRsn8dgUzQ6C | |
| 'L3gM5giJqPAJcWyD8eKv94d4QgqyzqrYeAA9DnuJe23FszsnqD1w', // mjgF67B4pyEHuGTLU5jS333EasUrZBaxMB | |
| 'KwdYxYAbxntKvrMQtDHAamPT1pyuYkDRfAwESBqCGRdz9abQo3dW', // mwzPpNMFwLoJPXw2ez8mz6RrdYGaqZDind | |
| 'L5LTWMRBt27dHde1mnvV1RzW1mxQuQBxpm2TvNHsMaNvAQKqKov2', // mt7K2ChnJSp96k93HYdC8B9oqUmqLyESpL | |
| 'L4qQgxEbKJFJKans2UxFRzXisS7o3oBkyJGirAUgTxS9CfTo9Cd4', // mmvbfVqYrXdy1i4x9UzWc4PtgN7VjMNjeY | |
| ] |
| <?php | |
| namespace Gnugat\Ripozi\Test; | |
| use Symfony\Bundle\FrameworkBundle\Console\Application; | |
| use Symfony\Component\Console\Input\ArrayInput; | |
| use Symfony\Component\Console\Output\NullOutput; | |
| /** | |
| * Assumes that the application kernel is named AppKernel and has been loaded |
| var $ = require('NodObjC'); | |
| $.import('Cocoa'); | |
| var installNSBundleHook = function() { | |
| var cls = $.NSBundle; | |
| if (cls) { | |
| var bundleIdentifier = cls.getInstanceMethod('bundleIdentifier'); | |
| bundleIdentifier.setImplementation(function(val) { |
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| run: | |
| casperjs index.js && convert *.jpg video.mpeg && gify video.mpeg out.gif && rm *.jpg video.mpeg |
| <?php | |
| require_once 'vendor/autoload.php'; | |
| $class = $argv[1]; | |
| $class = str_replace('/', '\\', $class); | |
| $refl = new ReflectionClass($class); |
I found understanding Rust types really confusing, so I wrote up a small tutorial for myself in an attempt to understand some of them. This is by no means exhaustive. There is a types section in the manual, but it has nowhere near enough examples.
I'm not talking about managed pointers (@) at all. A lot of the difficulty with Rust types is that the language is constantly changing, so this will likely be out of date soon.
First, a few preliminaries: it's easier to play with types if you have a REPL and can interactively check the types of objects. This isn't really possible in Rust, but there are workarounds.
| $(document).ajaxComplete(function(event, XMLHttpRequest){ | |
| var token = XMLHttpRequest.getResponseHeader('x-debug-token'), | |
| protocol = window.location.protocol, | |
| hostname = window.location.hostname; | |
| if(token) { | |
| $.get(protocol+'//'+hostname+'/_wdt/'+token, function(data){ |
| <?php | |
| namespace Collections; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| use Symfony\Component\PropertyAccess\PropertyAccess; | |
| class ExtendedArrayCollection extends ArrayCollection | |
| { | |
| /** |