This file contains hidden or 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/python | |
| # Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
| # The author disclaims copyright to this source code. | |
| import sys | |
| import struct | |
| import socket | |
| import time | |
| import select |
This file contains hidden or 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
| <?php | |
| use Doctrine\Common\DataFixtures\Executor\ORMExecutor; | |
| use Doctrine\Common\DataFixtures\FixtureInterface; | |
| use Doctrine\Common\DataFixtures\Purger\ORMPurger; | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader; | |
| use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | |
| abstract class FixtureAwareTestCase extends KernelTestCase |
This file contains hidden or 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
| ;; A nock interpreter | |
| (defun tar (a f) | |
| (labels ((fas (b a) | |
| (declare (integer b)) | |
| (cond | |
| ((= b 1) a) | |
| ((= b 2) (car a)) | |
| ((= b 3) (cdr a)) | |
| ((evenp b) (car (fas (/ b 2) a))) | |
| ((oddp b) (cdr (fas (/ (1- (the integer b)) 2) a)))))) |
This file contains hidden or 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
| #!/bin/bash | |
| # ssh-multi | |
| # D.Kovalov | |
| # Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
| # a script to ssh multiple servers over multiple tmux panes | |
| starttmux() { | |
| if [ -z "$HOSTS" ]; then |
This file contains hidden or 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
| #!/bin/bash | |
| ## ./services-action.sh restart => To restart all the services | |
| ## ./services-action.sh restart postfix => To restart specific service (postfix in this case) | |
| initPath="/etc/init.d/" | |
| services="apache2,mysql,amavis,postfix,courier-authdaemon,courier-imap,courier-imap-ssl,courier-pop,courier-pop-ssl" | |
| export IFS="," | |
| if [ $# -lt 1 ]; then |