Si assume che il disco da sostituituire sia /dev/sda mentre il disco buono sia /dev/sdb.
Innanzi tutto, se non ancora stato fatto, è necessario marcare come fallito e poi rimuovere il disco /dev/sda/ dall'array RAID.
| #!/bin/bash | |
| mkdir /tmp/findtest | |
| mkdir /tmp/findtest/.git | |
| mkdir /tmp/findtest/.foo | |
| touch /tmp/findtest/.foo/.bar | |
| touch /tmp/findtest/.bar | |
| touch /tmp/findtest/test.py | |
| mkdir /tmp/findtest/foo | |
| touch /tmp/findtest/foo/bar.tmp | |
| touch /tmp/findtest/test.php |
| <?php | |
| $sinceDate = '11/01/2012'; // Change to fit your needs | |
| $testCommand = 'phpunit src/Symfony/Component/Finder'; // Change to fit your needs | |
| $revlist = array(); | |
| exec("git log --since=$sinceDate --branches=master --reverse --pretty=%H | cat", $revlist); | |
| foreach ($revlist as $commit) { |
| $form->add( | |
| $bundle_key, | |
| 'choice', | |
| array( | |
| 'label' => 'Bundle languages ' .$bundle_key, | |
| 'choices' => array( | |
| '' => 'not defined', | |
| 'it' => 'it', | |
| 'en' => 'en', | |
| ), |
| <?php | |
| namespace Charlie\RecruitmentBundle\Tests\Functional; | |
| use Charlie\FixtureBundle\Test\FixtureWebTestCase; | |
| /** | |
| * Created by JetBrains PhpStorm. | |
| * User: ftassi | |
| * Date: 17/01/13 |
| /** | |
| * @param $sourceFile | |
| * @param $destinationFilePath | |
| * @throws \RuntimeException | |
| * @throws \Exception | |
| */ | |
| private function doConvert($sourceFile, $destinationFilePath) | |
| { | |
| $output = array(); | |
| exec("unoconv --output=\"" . $destinationFilePath . "\" \"" . $sourceFile . "\"", $output); |
| /** | |
| * Recupera la entity da utilizzare per memorizzare l'intervista | |
| * | |
| * @param $interviewId | |
| * @param \Doctrine\Common\Persistence\ObjectManager $em | |
| * @return object | |
| */ | |
| public function findEntity($interviewId, ObjectManager $em) | |
| { | |
| $repositoryMap = array( |
| /** | |
| * Recupera la entity da utilizzare per memorizzare l'intervista | |
| * | |
| * @param $interviewId | |
| * @param \Doctrine\Common\Persistence\ObjectManager $em | |
| * @return object | |
| */ | |
| public function findEntity($interviewId, ObjectManager $em) | |
| { | |
| $repositoryMap = array( |
| $body = array( | |
| 'aps' => array( | |
| 'alert' => $message, | |
| 'badge' => 1, | |
| 'sound' => 'default' | |
| ) | |
| ); | |
| if (!is_null($section)) { | |
| $body['section'] = $section; |
| #!/bin/bash | |
| # Script that resizes and crop an image and then sets as background for iTerm | |
| # First, check to see if we have the correct terminal! | |
| if [ "$(tty)" == 'not a tty' ] || [ "$TERM_PROGRAM" != "iTerm.app" ] ; then | |
| exit $? | |
| fi | |
| # Console dimensions |