- install cygwin with rsync component
- vagrant init
- vagrant up inside vagrant dir
- vagrant rsync-auto to watch files (somehow it won't autosync :/ )
- vagrant ssh
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 | |
| import glob | |
| import os | |
| import shutil | |
| def main(): | |
| filename = 'syncglobal.php' | |
| path = '/home/*/public_html/wp-content' | |
| for dirpath in glob.glob(path): |
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/local/bin/python3.4 | |
| import math | |
| import time | |
| def worker(): | |
| x = 0 |
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/local/bin/python3.4 | |
| import string | |
| import os | |
| import re | |
| import sys | |
| import atexit | |
| import base64 | |
| if os.name=='nt': | |
| from ctypes import windll |
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/env python | |
| import csv | |
| import sys | |
| import urllib2 | |
| import time | |
| import socket | |
| import threading | |
| import os | |
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
| /** | |
| * Reads all Form Result and check if it matches the values in the sheet called Answers | |
| * After a successful evaluation, results sheet is created | |
| */ | |
| // SETTINGS | |
| var QUESTION_COLUMN_START = 2; | |
| var QUESTION_COUNT = 16; | |
| // NO NEED TO EDIT BEYON THIS POINT, OR SO I THOUGHT... |
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 | |
| #ver. 2 | |
| ##this script will check mysql and apache | |
| ##if that service is not running | |
| ##it will start the service and send | |
| ##an email to you | |
| ##set your email address | |
| EMAIL="xxxxxxxxxxxx" |
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 namespace Arcanys\TrainingBundle\EventListener; | |
| use Doctrine\Common\EventSubscriber; | |
| use Doctrine\ORM\Event\LifecycleEventArgs; | |
| use Doctrine\ORM\Events; | |
| use Arcanys\TrainingBundle\Entity\Task; | |
| class TaskEventListener implements EventSubscriber{ | |
| public function getSubscribedEvents() |
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 namespace Application\Sonata\MediaBundle\Resizer; | |
| use Imagine\Image\ImagineInterface; | |
| use Imagine\Image\Box; | |
| use Gaufrette\File; | |
| use Sonata\MediaBundle\Model\MediaInterface; | |
| use Sonata\MediaBundle\Resizer\ResizerInterface; | |
| use Imagine\Image\ImageInterface; | |
| use Imagine\Image\Point; | |
| use Imagine\Exception\InvalidArgumentException; |