Skip to content

Instantly share code, notes, and snippets.

@RyanThompson
RyanThompson / system.log
Created December 18, 2017 22:16
system.log
System.log - it's happened twice within this log:
Dec 18 16:09:17 Ryans-MacBook-Pro bootlog[0]: BOOT_TIME 1513634957 0
Dec 18 16:09:19 Ryans-MacBook-Pro syslogd[45]: Configuration Notice:
ASL Module "com.apple.cdscheduler" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Dec 18 16:09:19 Ryans-MacBook-Pro syslogd[45]: Configuration Notice:
ASL Module "com.apple.install" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
Dec 18 16:09:19 Ryans-MacBook-Pro syslogd[45]: Configuration Notice:
@RyanThompson
RyanThompson / test.css
Last active August 28, 2020 04:51
A simple CSS file for testing.
.test{color:#fff}
@RyanThompson
RyanThompson / ImportPosts.php
Created December 8, 2018 16:13
Importing Block-Powered Posts
<?php namespace Crawford\CrawfordTheme\Console;
use Anomaly\BlocksModule\Block\Contract\BlockRepositoryInterface;
use Anomaly\PostsModule\Category\Contract\CategoryRepositoryInterface;
use Anomaly\PostsModule\Post\Contract\PostRepositoryInterface;
use Anomaly\PostsModule\Type\Contract\TypeRepositoryInterface;
use Anomaly\Streams\Platform\Model\Posts\PostsDefaultPostsEntryModel;
use Anomaly\WysiwygBlockExtension\Block\BlockModel;
use Carbon\Carbon;
use Goutte\Client;
"post-update-cmd": [
"chown www-data:www-data . -R",
"find storage -type d -exec chmod 755 {} \\;",
"find storage -type f -exec chmod 644 {} \\;",
"chmod gu+w -R storage bootstrap/cache public/app"
]
@RyanThompson
RyanThompson / lineup.md
Last active August 31, 2017 17:30
Private Addon Lineup
$composerProcess = new Process('THE COMMAND');
$composerProcess->run(function ($type, $buffer) {
// $type is sketchy so use preg_match on the string to color / handle errors.
echo $buffer;
});
@RyanThompson
RyanThompson / spoof.sh
Created August 1, 2017 15:55
Spoof MAC Address
# Get new MAC address.
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/./0/2; s/.$//'
# Assign new MAC address.
sudo ifconfig en0 ether {$MAC}
@RyanThompson
RyanThompson / coding-standards-example.php
Last active June 22, 2016 18:52
An example of the coding standards by AnomalyLabs.
<?php namespace Acme;
/**
* Class FooBar
*
* @link http://anomaly.is/foo-bar
* @author AnomalyLabs, Inc. <hello@anomaly.is>
* @author Ryan Thompson <ryan@anomaly.is>
* @package Acme
*/

PyroCMS Docs

Prologue

  • Welcome
  • Glossary
  • Overview
  • Contributing
  • API Documentation
@RyanThompson
RyanThompson / b2tob3.md
Last active April 15, 2016 15:34
Migrating Beta2 to Beta3
  • First install a clean copy of PyroCMS Beta3 for reference.
  • Next update the composer.json file of your B2 install with that of the B3 install.
  • Mark your B2 install as INSTALLED=false.
  • composer update to bring in all the new goodies.
  • Add placeholder, warning, instructions to streams_fields_translations table.
  • Mark all streams in streams_streams as trashable=1 according to fresh install's table.
  • Add deleted_at (DATETIME) to all stream entry tables where the stream is marked trashable above.
  • Rename the stream groups to menus in streams_streams.
  • Rename the table navigation_groups to navigation_menus.
  • Rename the column group_id to menu_id in navigation_links.