On mac:
- Download the latest release.
- Extract the binary and place it in
/usr/local/bin.
| # This config will host your main [Laravel] GUI application at /, and any additional [Lumen] webservices at /api/v1 and /api/v2... | |
| # This also works perfectly for all static file content in all projects | |
| # This is full of debug comments so you can see how to print debug output to browser! Took me hours to nail this perfect config. | |
| # Example: | |
| # http://example.com - Main Laravel site as usual | |
| # http://example.com/about - Main Laravel site about page as usual | |
| # http://example.com/robots.txt - Main Laravel site static content as usual | |
| # http://example.com/api/v1 - Lumen v1 api default / route | |
| # http://example.com/api/v1/ - Lumen v1 api default / route |
| @servers(['production' => 'productionserver', 'local'=> 'vagrant@127.0.0.1 -p 2222']) | |
| {{-- Configuration section --}} | |
| @setup | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Git Config | |
| |-------------------------------------------------------------------------- | |
| | |
| void LCD_write(uint8_t d) { | |
| // ILI9341 reads data pins when WR rises from LOW to HIGH (A1 pin on arduino) | |
| PORTC = PORTC & B11111101; // WR 0 | |
| // data pins of ILI9341 connected to two arduino ports | |
| PORTD = (PORTD & B00000011) | ((d) & B11111100); | |
| PORTB = (PORTB & B11111100) | ((d) & B00000011); | |
| PORTC = PORTC | B00000010; // WR 1 | |
| } |
| # http://askubuntu.com/questions/505446/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer | |
| # http://askubuntu.com/questions/660023/how-to-install-ubuntu-14-04-64-bit-with-a-dual-boot-raid-1-partition-on-an-uefi%5D | |
| sudo -s | |
| apt-get -y install mdadm | |
| apt-get -y install grub-efi-amd64 | |
| sgdisk -z /dev/sda | |
| sgdisk -z /dev/sdb | |
| sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/sda | |
| sgdisk -n 2:0:+8G -t 2:fd00 -c 2:"Linux RAID" /dev/sda |
On mac:
/usr/local/bin.| <?php | |
| namespace FinalClass; | |
| require_once __DIR__ . '/vendor/autoload.php'; | |
| use PHPUnit\Framework\TestCase; | |
| final class Foo | |
| { | |
| protected $bar; |
| // moving 71b8026 from features/project-part-2 to features/project-part-1 | |
| git checkout features/project-part-2 | |
| git revert 71b8026 | |
| // for sanity check can run git diff to between branched for particular file(s) | |
| git difftool features/project-part-2..features/project-part-1 -- ./website/app/controllers/ExampleController.php | |
| git push origin features/project-part-2 | |
| git checkout features/project-part-1 | |
| git cherry-pick 71b8026 |
| <?php | |
| namespace Minitest; | |
| abstract class AbstractFoo | |
| { | |
| protected function bar() | |
| { | |
| return $this->baz(); | |
| } |
| <?php //origin: http://www.if-not-true-then-false.com/2012/php-pdo-sqlite3-example/ | |
| // Kludges | |
| const SQLITE3_TEXT = PDO::PARAM_STR; | |
| const SQLITE3_INTEGER = PDO::PARAM_INT; | |
| // Set default timezone | |
| date_default_timezone_set('UTC'); | |
| try { |
| pulic function setUp() | |
| { | |
| $this->syncer = $this->createMock(SyncUtilityInterface::class); | |
| $this->jobs = $this->createMock(JobsDispatcherInterface::class); | |
| $this->jobs_preparer = new PrepareSyncJobs( | |
| $this->syncer, | |
| $this->jobs | |
| ); | |
| } |