Skip to content

Instantly share code, notes, and snippets.

<?php
$graph = <<<EOT
Task Number, Time, Depends
1, 5, "2, 4, 8, 9, 10"
2, 8, "13"
3, 3, "13"
4, 8, "13"
5, 1, "6, 8, 9, 10"
6, 5, "11"
#!/bin/bash
# Script for placing sudoers.d files with syntax-checking
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports
@popadko
popadko / gist:364e61a2b474e1ca568a
Last active February 24, 2016 16:10
Multiple form on one page
<?php
class EmailSubjectController extends Controller
{
/**
* Lists all EmailSubject entities.
*
*/
public function indexAction()
{