README
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.
Usage
Make sure the files that end in .sh
are executable.
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.
One or two paragraph introduction on the objective of this library.
If you are unsure of our project and just want to play around, you can get things set up quickly by:
# Gettting the state of the machine, ie Is it poweroff or running
vagrant status --machine-readable | awk -F',' '$3 == "state" { print $4 }'
Can be used in a script like so
//+------------------------------------------------------------------+ | |
//| 1_Min_Micro_Trading.mq4 | | |
//| StarLimit Software Corps., | | |
//| starlimit04@yahoo.com | | |
//+------------------------------------------------------------------+ | |
#property copyright "StarLimit Software Corps.," | |
#property link "starlimit04@yahoo.com" | |
#property indicator_chart_window |
#!/bin/bash | |
# Monitors for signals from gnome-screensaver and activates or deactivates | |
# bitcoin miners accordingly. | |
# Params to the mining programs are all hardcoded. Change 'em manually. Leave the "&"s. | |
dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver',member='ActiveChanged'" | \ | |
while read line; do | |
case "$line" in |
//+------------------------------------------------------------------+ | |
//| LiveAlligator.mq4 | | |
//| Copyright © 2011, MetaQuotes Software Corp. | | |
//| http://www.mql4.com/ru/users/rustein | | |
//-------------------------------------------------------------------+ | |
// Trend Detection function | |
#define BULL 1 | |
#define BEAR 2 | |
// Input variables |
#!/bin/sh | |
baseurl=http://mygitlaburl | |
usermail=adminuser@mymailserver | |
userpass=adminpassword | |
repo_access=2 #0=denied 1=read 2=read&write | |
project_access=2 #0=deined 1=read 2=report 3=admin | |
# login | |
curl -s -I -c cookies.txt -d "utf8=✓&user[email]=$usermail&user[password]=$userpass&commit=Sign+in" $baseurl/users/sign_in |
<?php | |
use JMS\DiExtraBundle\Annotation as DI; | |
use Symfony\Component\HttpKernel\Event\FilterResponseEvent; | |
/** @DI\Service */ | |
class QSAListener | |
{ | |
private $blacklist; |
<?php | |
namespace Application\Sonata\UserBundle\Tests\Functional; | |
use IC\Bundle\Base\TestBundle\Test\WebTestCase; | |
class LoginTest extends WebTestCase | |
{ | |
/** | |
* {@inheritdoc} |
<?php | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <fabien@symfony.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |